*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3d7bb9d9
DE
12011-11-23 Doug Evans <dje@google.com>
2
3 * dwarf2read.c (dw2_lookup_symtab): Add comment.
4 (dw2_expand_symtabs_with_filename): Ditto.
5 (dw2_expand_symtabs_matching): Ditto.
6 (dw2_map_symbol_filenames): Ditto.
7
1fbf5ada
JB
82011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
9
10 * ada-lang.c (assign_aggregate): Minor reformatting.
11
d984108d
JB
122011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
13
14 * ada-lang.c (assign_aggregate): Remove declaration of local
15 variable `i' which is shadowing another variable with the same
16 name declared in the outer scope.
17
18af8284
JB
182011-11-23 Joel Brobecker <brobecker@adacore.com>
19
20 * ada-lang.c (get_base_type): Renames base_type. Adjust all
21 calls throughout this file.
22
1fc7b5d7
JB
232011-11-23 Joel Brobecker <brobecker@adacore.com>
24
25 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
26 FormatMessage.
27
36dfb11c
TT
282011-11-22 Tom Tromey <tromey@redhat.com>
29
30 PR mi/8444:
31 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
32 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
33 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
34 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
35 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
36 (print_it_catch_syscall, print_it_catch_exec)
37 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
38 (bpstat_print): Add 'kind' argument. Handle
39 TARGET_WAITKIND_LOADED.
40 * infrun.c (normal_stop): Update for bpstat_print change. Don't
41 handle TARGET_WAITKIND_LOADED here.
42 * breakpoint.h (bpstat_print): Update.
43
5bd6aa83
TT
442011-11-22 Tom Tromey <tromey@redhat.com>
45
46 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
47
f5afdc18
TT
482011-11-22 Tom Tromey <tromey@redhat.com>
49
50 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
51 Use static_assert to check the size of
52 async_reason_string_lookup.
53 * common/gdb_assert.h (static_assert): New macro.
54
a3769e0c
AM
552011-11-22 Alan Modra <amodra@gmail.com>
56
57 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
58 destination calculation. Don't expect >> to sign extend. Don't
59 add a break if branch lands inside the sequence anywhere.
60
56767571
KS
612011-11-21 Keith Seitz <keiths@redhat.com>
62
63 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
64 -var-evaluate-expression of an enumeration and fix expected result.
65 * gdb.mi/mi2-varvdisplay.exp: Likewise.
66
8443c207
KY
672011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
68
69 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
70 the case where osdata->items is empty. Rename column names to a
71 canonical form to avoid problems with unusual column names.
72
97643830
YQ
732011-11-21 Yao Qi <yao@codesourcery.com>
74
75 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
76
f196051f
SS
772011-11-20 Stan Shebs <stan@codesourcery.com>
78
79 * NEWS: Mention tracepoint additions.
80 * breakpoint.h (struct tracepoint): New field traceframe_usage.
81 * breakpoint.c (print_one_breakpoint_location): Identify
82 tracepoints as such when reporting hit counts, report
83 trace buffer usage.
84 (create_tracepoint_from_upload): Copy status info.
85 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
86 add fields user_name, notes, start_time, stop_time.
87 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
88 * tracepoint.c (trace_user): New global.
89 (trace_notes): New global.
90 (trace_stop_notes): New global.
91 (start_tracing): Add argument and trace note handling.
92 (stop_tracing): Ditto.
93 (trace_start_command): Add notes argument.
94 (trace_stop_command): Ditto.
95 (trace_status_command): Report additional status info.
96 (trace_status_mi): Similarly.
97 (trace_save): Update, record tracepoint status.
98 (set_disconnected_tracing): Call target method directly.
99 (send_disconnected_tracing_value): Remove.
100 (set_trace_user): New function.
101 (set_trace_notes): New function.
102 (set_trace_stop_notes): New function.
103 (parse_trace_status): Handle additional status.
104 (parse_tracepoint_status): New function.
105 (parse_tracepoint_definition): Call it.
106 (tfile_get_tracepoint_status): New function.
107 (init_tfile_ops): Use it.
108 (_initialize_tracepoint): Add new setshows.
109 * target.h (struct target_ops): New methods to_get_tracepoint_status
110 and to_set_trace_notes.
111 (target_get_tracepoint_status): New macro.
112 (target_set_trace_notes): New macro.
113 * target.c (update_current_target): Add new methods.
114 * remote.c (remote_get_tracepoint_status): New function.
115 (remote_set_trace_notes): New function.
116 (init_remote_ops): Add them.
117 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
118 (mi_cmd_trace_stop): Ditto.
119
3623dc3a
SD
1202011-11-20 Sanjoy Das <sdas@igalia.com>
121
122 * jit.c: Include regcache.h.
123 (jit_gdbarch_data, jit_frame_unwind): New static variables.
124 (jit_unwind_reg_set_impl, free_reg_value_impl)
125 (jit_unwind_reg_get_impl, jit_frame_sniffer)
126 (jit_frame_unwind_stop_reason, jit_frame_this_id)
127 (jit_frame_prev_register, jit_dealloc_cache)
128 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
129 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
130 jit_prepend_unwinder.
131 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
132
1825a88d
SD
1332011-11-20 Sanjoy Das <sdas@igalia.com>
134
135 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
136 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
137 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
138 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
139 (finalize_symtab, jit_object_close_impl)
140 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
141 (free_objfile_data): New functions.
142 (_initialize_jit): Register jit_objfile_data with a proper cleanup
143 function.
144
784c47ee
SD
1452011-11-20 Sanjoy Das <sdas@igalia.com>
146
147 * jit.c: Include gdb-dlfcn.h.
148 (loaded_jit_reader, reader_init_fn_sym): New static variables.
149 (jit_reader_load, jit_reader_load_command)
150 (jit_reader_unload_command): New functions.
151 (_initialize_jit): Add commands "jit-reader-load" and
152 "jit-reader-unload".
153
a2d08b9e
SD
1542011-11-20 Sanjoy Das <sdas@igalia.com>
155
156 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
157 * config.in: Add new #define HAVE_LIBDL.
158 * configure.ac: Add check for -ldl.
159 * configure: Re-generated by autoconf.
160 * gdb-dlfcn.c: New file.
161 * gdb-dlfcn.h: New file.
162
b8e0a31c
SD
1632011-11-20 Sanjoy Das <sdas@igalia.com>
164
165 * config.in: Add new #defines: JIT_READER_DIR and
166 JIT_READER_DIR_RELOCATABLE.
167 * configure.ac: New GDB directory entry for jit-reader-dir.
168 * configure: Re-generated by autoconf.
169 * jit.c: New static variable: const char *jit_reader_dir.
170 (_initialize_jit): Relocate jit_reader_dir.
171
f997c383
SD
1722011-11-20 Sanjoy Das <sdas@igalia.com>
173
174 * Makefile.in: Add jit-reader.h as a header. Have it installed in
175 $(includedir)/gdb.
176 * configure.ac: Generate a correct value for TARGET_PTR for
177 jit-reader.h. Tell configure to generate jit-reader.h from
178 jit-reader.in.
179 * configure: Re-generated by autoconf.
180 * jit-reader.in: New file.
181 * jit.c: Include jit-reader.h.
182
dc8c0494
SD
1832011-11-20 Sanjoy Das <sdas@igalia.com>
184
185 * MAINTAINERS (Write After Approval): Add myself to the list.
186
01efb936
UW
1872011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
188
189 * findvar.c (read_frame_register_value): Respect value_offset
190 of the register value. Remove big-endian special case.
191
732f3f12
TT
1922011-11-18 Tom Tromey <tromey@redhat.com>
193
194 PR build/7196:
195 * remote.c (putpkt_for_catch_errors): New function.
196 (remote_kill): Use it.
197
bfccc43c
YQ
1982011-11-18 Yao Qi <yao@codesourcery.com>
199
200 * breakpoint.c (create_breakpoint): Produce query message according to
201 breakpoint's type.
202 Allocate tracepoint per correct type.
203 Don't check SALs for pending fast tracepoints.
204 * tracepoint.c (process_tracepoint_on_disconnect): New.
205 (disconnect_tracing): Call process_tracepoint_on_disconnect.
206
3ea46bff
YQ
2072011-11-18 Yao Qi <yao@codesourcery.com>
208
209 * breakpoint.c (install_breakpoint): Add one more parameter so that
210 update_global_location_list is called conditionally.
211 (create_fork_vfork_event_catchpoint): Update.
212 (create_syscall_event_catchpoint): Update.
213 (create_breakpoint_sal): Update.
214 (create_breakpoint_sal): Update. Call do_cleanups before
215 install_breakpoint.
216 * ada-lang.c (create_ada_exception_catchpoint): Update.
217 * breakpoint.h (install_breakpoint): Update declaration.
218
598cfb71
UW
2192011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
220
221 * spu-tdep.c (spu_return_value): Fix handling of
222 TYPE_CALLING_CONVENTION annotation.
223
caf4328c
UW
2242011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
225
226 * skip.c (skip_function_command): Work around uninitialized
227 variable warning.
228
2b54dda2
DM
2292011-11-16 David S. Miller <davem@davemloft.net>
230
231 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
232 'tv_usec' to long for printf since these fields have a type which
233 varies.
234
93bf33fd
DE
2352011-11-15 Doug Evans <dje@google.com>
236
237 * buildsym.c (add_symbol_to_list): Delete outdated comment.
238
9cc10fd1
PK
2392011-11-15 Paul Koning <paul_koning@dell.com>
240
241 * python/py-type.c (typy_get_composite): New function.
242 (typy_nonzero): New function.
243 (typy_values): Rename from typy_fields.
244 (typy_fields): New function.
245 (typy_length): Raise exception if not struct, union, or enum type.
246 (typy_getitem): Ditto.
247 (typy_has_key): Ditto.
248 (typy_make_iter): Ditto.
249
c011a4f4
DE
2502011-11-15 Doug Evans <dje@google.com>
251
252 * NEWS: Mention new parameter basenames-may-differ.
253 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
254 ! basenames_may_differ.
255 * psymtab.c (lookup_partial_symtab): Ditto.
256 * symtab.c (lookup_symtab): Ditto.
257 (basenames_may_differ): New global.
258 (_initialize_symtab): New parameter basenames-may-differ.
259 * symtab.h (basenames_may_differ): Declare.
260
865ecab4
LM
2612011-11-15 Pedro Alves <pedro@codesourcery.com>
262 Luis Machado <lgustavo@codesourcery.com>
263
264 * auxv.c: Include observer.h.
265 (auxv_inferior_data_cleanup): New.
266 (invalidate_auxv_cache_inf): New.
267 (invalidate_auxv_cache): New.
268 (get_auxv_inferior_data): New.
269 (auxv_inferior_data): New static global.
270 (auxv_info): New structure.
271 (target_auxv_search): Use get_auxv_inferior_data instead of
272 target_read_alloc and don't free cached buffers.
273 (fprint_target_auxv): Likewise
274 (_initialize_auxv): Register per-inferior auxv cache and register
275 observers to invalidate auxv cache when needed.
276
ed59ded5
DE
2772011-11-14 Doug Evans <dje@google.com>
278
279 Make "!" an alias for "shell".
280 * NEWS: Add mention.
281 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
282 adding "!" command, always add it.
283 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
284 command of length one.
285
405f8e94
SS
2862011-11-14 Stan Shebs <stan@codesourcery.com>
287 Kwok Cheung Yeung <kcy@codesourcery.com>
288
289 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
290 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
291 the minimum instruction size for fast tracepoints.
292 * target.h (struct target_ops): Add new method
293 to_get_min_fast_tracepoint_insn_len.
294 (target_get_min_fast_tracepoint_insn_len): New.
295 * target.c (update_current_target): Set up new target operation.
296 * remote.c (remote_write_bytes_aux): Fix typo.
297 (remote_get_min_fast_tracepoint_insn_len): New.
298 (init_remote_ops): Initialize new field.
299
3e05895e
TT
3002011-11-14 Tom Tromey <tromey@redhat.com>
301
302 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
303 (encode_actions): Likewise.
304
1e4d1764
YQ
3052011-11-14 Yao Qi <yao@codesourcery.com>
306
307 * remote.c (struct remote_state): <install_in_trace> new field.
308 (PACKET_InstallInTrace): New enum value.
309 (remote_install_in_trace_feature): Support InstallInTrace.
310 (remote_supports_install_in_trace): Likewise.
311 (remote_protocol_features): Likewise.
312 (_initialize_remote): Likewise.
313 (remote_can_download_tracepoint): New.
314 * target.h (struct target): New field
315 `to_can_download_tracepoint'.
316 (target_can_download_tracepoint): New macro.
317 * target.c (update_current_target): Update.
318 * breakpoint.h (struct bp_location): Add comment on field
319 `duplicate'.
3ccd4ac6
YQ
320 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
321 and tracepoint.
1e4d1764
YQ
322 (remove_breakpoints): Don't remove tracepoints.
323 (tracepoint_locations_match ): New.
324 (breakpoint_locations_match): Call it.
325 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
326 (download_tracepoint_locations): New.
327 (update_global_location_list): Call it.
328 * tracepoint.c (find_matching_tracepoint): Delete.
329 (find_matching_tracepoint_location): Renamed from
330 find_matching_tracepoint. Return bp_location rather than
331 tracepoint.
332 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
333 tracepoint is found.
334
e8ba3115
YQ
3352011-11-14 Yao Qi <yao@codesourcery.com>
336
337 * target.h (struct target): <to_download_tracepoint> Change type
338 of parameter from tracepoint to bp_location.
339 * target.c (update_current_target): Update.
340 * tracepoint.c (start_tracing): Update.
341 * remote.c (remote_download_tracepoint): Remove loop for each location
342 of a tracepoint.
343
edcc485a
MR
3442011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
345
346 * i386-nat.c (i386_insert_hw_breakpoint): Call
347 i386_update_inferior_debug_regs.
348 (i386_remove_hw_breakpoint): Likewise.
349
3742cc8b
YQ
3502011-11-14 Yao Qi <yao@codesourcery.com>
351
352 * breakpoint.c (init_raw_breakpoint): Call
353 add_location_to_breakpoint to replace duplicated code.
354 (add_location_to_breakpoint): Adjust the breakpoint's
355 address prior to allocating a location.
356
71eba9c2 3572011-11-12 Matt Rice <ratmice@gmail.com>
358
359 * macrocmd.c (macro_no_macro_info): New function.
360 (macro_expand_command): Use macro_no_macro_info.
361 (macro_expand_once_command): Ditto.
362 (info_macro_command): Add argument processing,
363 move info_definitions_command here.
364 (_initialize_macrocmd): Remove info definitions command.
365 Add arguments to info macro help text.
366 * NEWS: Replace info definitions command with new info macro options.
367
731971ed
KS
3682011-11-11 Keith Seitz <keiths@redhat.com>
369
370 PR gdb/12843
371 * linespec.c (locate_first_half): Keep ':' if it looks
372 like it could be part of a Windows path starting with
373 a drive letter.
374
6953d224
PA
3752011-11-10 Pedro Alves <pedro@codesourcery.com>
376
377 * linux-nat.c (linux_nat_wait): Don't force waking up the event
378 loop when returning a TARGET_WAITKIND_NO_RESUMED.
379
0c94aa73
PA
3802011-11-10 Pedro Alves <pedro@codesourcery.com>
381
382 * target.c (target_waitstatus_to_string): Handle
383 TARGET_WAITKIND_NO_RESUMED.
384
f6b47be4
DE
3852011-11-10 Doug Evans <dje@google.com>
386
74e2f255
DE
387 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
388 `need_fullname'.
389 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
390 (map_partial_symbol_filenames): Ditto. All callers updated.
391 * psymtab.h (map_partial_symbol_filenames): Update prototype.
392 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
393 parameter need_fullname.
394
256f06f3
DE
395 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
396 * source.c (symtab_to_fullname): Ditto.
397
50f182aa
DE
398 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
399 * gdb-demangle.h: ... here. New file.
400 * demangle.c: #include "gdb-demangle.h".
401 (_initialize_demangler): Use initialize_file_ftype for prototype.
402 Move "set demangle" and "set asm-demangle" parameters here from utils.c
403 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
404 from utils.c
405 * utils.c: Update. #include "gdb-demangle.h".
406 * symtab.h (asm_demangle): Delete.
407 (demangle): Move declaration next to use.
408 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
409 * dwarf2read.c: #include "gdb-demangle.h".
410 * gnu-v2-abi.c: Ditto.
411 * jv-typeprint.c: Ditto.
412 * mdebugread.c: Ditto.
413 * p-typeprint.c: Ditto.
414 * stabsread.c: Ditto.
415 * printcmd.c: Ditto.
416 (asm_demangle): Delete declaration.
417 * tui/tui-stack.c: #include "gdb-demangle.h".
418
f6b47be4
DE
419 * python/py-type.c (typy_fields_items): Call check_typedef.
420
22355c90
JB
4212011-11-10 Joel Brobecker <brobecker@adacore.com>
422
423 * findvar.c (read_frame_register_value): Read the correct bytes
424 from registers on big-endian architectures.
425
bd119cf1 4262011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
427
428 * procfs.c (load_syscalls): Make a cleanup.
429 (open_procinfo_files): fd==0 is ok.
430
0a86f364
JB
4312011-11-10 Joel Brobecker <brobecker@adacore.com>
432
433 * procfs.c (iterate_over_mappings): Call do_cleanups before
434 returning.
435
9bc118a5
DE
4362011-11-09 Doug Evans <dje@google.com>
437
438 * gdbtypes.c (check_typedef): Document that this function can
439 throw an exception.
440
a7860e76
TT
4412011-11-09 Tom Tromey <tromey@redhat.com>
442
443 PR c++/13342:
444 * valops.c (value_full_object): Return early if real type is
445 smaller than the enclosing type.
446
60965737
YQ
4472011-11-08 Yao Qi <yao@codesourcery.com>
448
449 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
450
72a2e3dc
MI
4512011-11-08 Meador Inge <meadori@codesourcery.com>
452
453 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
454 register when the frame can't be determined.
455 * arm-tdep.c (arm_analyze_prologue): Ditto.
456
ce3b0ff7
SS
4572011-11-07 Stan Shebs <stan@codesourcery.com>
458
459 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
460
2b914b52
JB
4612011-11-07 Joel Brobecker <brobecker@adacore.com>
462
463 * infrun.c (handle_inferior_event): Minor reformatting.
464
6f809020
DE
4652011-11-05 Doug Evans <dje@google.com>
466
467 * source.c (forget_cached_source_info_for_objfile): Move call to
468 objfile->sf->qf->forget_cached_source_info outside of
469 ALL_OBJFILE_SYMTABS loop.
470 (forget_cached_source_info): Delete unused variable `s'.
471
75d12218
JK
4722011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
473
474 * i386-nat.c (dr_ref_count): Remove unused variable.
475
e565b837
DE
4762011-11-05 Doug Evans <dje@google.com>
477
478 * main.c (captured_main): Set lim_at_start before calling
479 make_command_stats_cleanup.
480
0a1c4d10
DE
4812011-11-04 Doug Evans <dje@google.com>
482
483 * utils.c: #include "timeval-utils.h".
484 (cmd_stats): Rename start_time to start_cpu_time.
485 New member start_wall_time.
486 (report_command_stats): Report wall time.
487 (make_command_stats_cleanup): Record start wall time.
488
a1d705ee
TT
4892011-11-04 Tom Tromey <tromey@redhat.com>
490
491 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
492
81de56be
RO
4932011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
494
495 * coff-pe-read.c: Include defs.h before bfd.h.
496
3ab1ec27
PM
4972011-11-04 Phil Muldoon <pmuldoon@redhat.com>
498
499 PR Python/13345
500
501 * python/python.c (python_run_simple_file): Expand tilde in path.
502
cd829959
PM
5032011-11-04 Phil Muldoon <pmuldoon@redhat.com>
504
505 PR Python/13363
506
507 * python/py-type.c (typy_lookup_type): Do not return a type in
508 an exception handler.
509
080ad648
JK
5102011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
511 Eli Zaretskii <eliz@gnu.org>
512
513 * linux-nat.c (_initialize_linux_nat): Improve help
514 for `info proc stat', `info proc status', `info proc cwd',
515 `info proc cmdline' and `info proc exe'.
516
3065dfb6
SS
5172011-11-02 Stan Shebs <stan@codesourcery.com>
518
519 String collection for tracepoints.
520 * NEWS: Mention string collection.
521 * common/ax.def (tracenz): New bytecode.
522 * ax-gdb.h (trace_string_kludge): Declare.
523 * ax-gdb.c: Include valprint.h and c-lang.h.
524 (trace_string_kludge): New global.
525 (gen_traced_pop): Add string case.
526 (agent_command): Add string case.
527 * tracepoint.h (decode_agent_options): Declare.
528 * tracepoint.c: Include cli-utils.h.
529 (decode_agent_options): New function.
530 (validate_actionline): Call it.
531 (encode_actions_1): Ditto.
532 * target.h (struct target_ops): New method to_supports_string_tracing.
533 (target_supports_string_tracing): New macro.
534 * target.c (update_current_target): Add to_supports_string_tracing.
535 * remote.c (struct remote_state): New field string_tracing.
536 (remote_string_tracing_feature): New function.
537 (remote_protocol_features): New feature tracenz.
538 (remote_supports_string_tracing): New function.
539 (init_remote_ops): Set to_supports_string_tracing.
540
f179e162
JK
5412011-11-02 Pedro Alves <pedro@codesourcery.com>
542 Jan Kratochvil <jan.kratochvil@redhat.com>
543
544 * linux-nat.c: Include cli/cli-utils.h.
545 (enum info_proc_what): New.
546 (linux_nat_info_proc_cmd): Rename to ...
547 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
548 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
549 status_f and stat_f from WHAT. Throw error on extra parameters.
550 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
551 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
552 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
553 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
554 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
555 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
556 `info proc cmdline', `info proc exe' and `info proc all' as real
557 subcommands of `info proc'.
558
7b35ec7f 5592011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
560
561 * Makefile.in: (SFILES): Add skip.c.
562 (HFILES_NO_SRCDIR): Add skip.h.
563 (COMMON_OBS): Add skip.o.
564 * skip.h, skip.c: New.
565 * breakpoint.h (set_default_breakpoint): Remove.
566 (get_sal_arch): Declare.
567 * breakpoint.c: Remove default_breakpoint_valid,
568 default_breakpoint_address, default_breakpoint_symtab,
569 default_breakpoint_line, default_breakpoint_pspace variables.
570 (get_sal_arch): Make public.
571 (set_default_breakpoint): Remove.
572 (parse_breakpoint_sals, create_breakpoint, clear_command,
573 decode_line_spec_1): Remove uses of default_breakpoint variables;
574 replaced with function calls into stack.c.
575 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
576 * cli/cli-cmds.c: Add skiplist.
577 (init_cmd_lists): Initialize skiplist.
578 (init_cli_cmds): Fix comment (classes of commands appear in
579 alphabetical order).
580 * infrun.c (handle_inferior_event): Add check that we don't step into
581 a function whose pc is marked for skip.
582 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
583 last_displayed_addr, last_displayed_symtab, last_displayed_line
584 variables.
585 (set_last_displayed_sal): New static function.
586 (print_frame_info): Switch call to set_default_breakpoint to call to
587 set_last_displayed_sal.
588 (clear_last_displayed_sal, last_displayed_sal_is_valid,
589 get_last_displayed_pspace, get_last_displayed_addr,
590 get_last_displayed_symtab, get_last_displayed_line,
591 get_last_displayed_sal): New public functions.
592 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
593 get_last_displayed_pspace, get_last_displayed_addr,
594 get_last_displayed_symtab, get_last_displayed_line,
595 get_last_displayed_sal): Declare.
596
b60e1588
JL
5972011-11-01 Justin Lebar <justin.lebar@gmail.com>
598
599 * MAINTAINERS (Write After Approval): Add myself to the list.
600
d31647d2
YQ
6012011-10-29 Yao Qi <yao@codesourcery.com>
602
603 * infcmd.c (disconnect_command): Call disconnect_tracing.
604
b1d96efd
JK
6052011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
606
607 Code cleanup.
608 * symtab.c (skip_prologue_sal): Code reformatting.
609
4dfb2365
JK
6102011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
611
612 PR symtab/13208
613 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
614 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
615 SAI.
616
0e5bf2a8
PA
6172011-10-28 Pedro Alves <pedro@codesourcery.com>
618
619 * linux-nat.c (linux_nat_filter_event): Remove `options'
620 parameter, and dead code that used it. If we're handling a
621 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
622 in our lwp list, re-add it.
623 (check_zombie_leaders): New.
624 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
625 wait for children with WNOHANG, and always wait for all children.
626 Don't check for no resumed children upfront. Simplify wait loop.
627 Check for zombie thread group leaders after handling all wait
628 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
629 unwaited-for children left.
630 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
631 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
632 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
633 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
634
821296b7
SA
6352011-10-28 Sterling Augustine <saugustine@google.com>
636
637 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
638 * symtab.c (free_completion_list): New function.
639 (do_free_completion_list): Likewise.
640 (default_make_symbol_completion_list_break_on): New variable
641 back_to. Call make_cleanup and discard_cleanups.
642 (make_source_files_completion_list): Likewise.
643
03c3051a
PK
6442011-10-28 Paul Koning <paul_koning@dell.com>
645
646 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
647 * NEWS: Mention deep_items.
648
8e7ebaf5
PA
6492011-10-28 Alen Skondro <askondro@gmail.com>
650
8de33dc2 651 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
652 defined.
653
e0c6ef61
MI
6542011-10-27 Meador Inge <meadori@codesourcery.com>
655
656 * MAINTAINERS (Write After Approval): Add myself to the list.
657
b56d6f31
JB
6582011-10-27 Joel Brobecker <brobecker@adacore.com>
659
660 * value.h (read_frame_register_value): Add declaration.
661 * findvar.c (read_frame_register_value): New function.
662 (value_from_register): Use read_frame_register_value
663 instead of get_frame_register_value + value_contents_copy
664 to get value contents.
665
d234ef5c
DE
6662011-10-27 Doug Evans <dje@google.com>
667
668 * cli/cli-cmds.c (source_script_with_search): Pass full path to
669 source_script_from_stream if it may have been found on the search path.
670 * python/py-auto-load.c (source_section_scripts): Pass full path to
671 source_python_script_for_objfile.
672 * python/python.c (source_python_script): Delete stream parameter.
673 All callers updated.
674 (source_python_script_for_objfile): Ditto.
675 * python/python-internal.h (source_python_script_for_objfile): Update.
676 * python/python.h (source_python_script): Update.
677
d849d44f
TT
6782011-10-27 Tom Tromey <tromey@redhat.com>
679
680 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
681 (ada_sals_for_line): Remove declarations.
682
2231f1fb
KP
6832011-10-27 Kevin Pouget <kevin.pouget@st.com>
684
685 Move unwind reasons to an external .def file
686 * frame.c (frame_stop_reason_string): Rewrite using
687 unwind_stop_reasons.def.
688 * frame.h (enum unwind_stop_reason): Likewise.
689 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
690 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
691 constants for bound-checking.
692 * unwind_stop_reasons.def: New file.
693 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
694 instead of a distinct value.
695
f77b9a5d
PM
6962011-10-27 Phil Muldoon <pmuldoon@redhat.com>
697
698 PR python/13331
699
700 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
701 (convert_values_to_python): Return on Python tuple allocation
702 failure. Return NULL on value conversion error.
703
76dce0be
PM
7042011-10-27 Phil Muldoon <pmuldoon@redhat.com>
705
706 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
707 (bppy_set_task): Ditto.
708 (bppy_delete_breakpoint): Ditto.
709 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
710 (gdbpy_lookup_global_symbol): Ditto.
711 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
712 * python/py-frame.c (frapy_is_valid): Ditto.
713 (frame_info_to_frame_object): Ditto.
714 * python/py-type.c (typy_lookup_type): Ditto.
715 (typy_getitem): Ditto.
716 (typy_has_key): Ditto.
717 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
718
f17b6955
JB
7192011-10-26 Joel Brobecker <brobecker@adacore.com>
720
721 * gdbarch.h: Regenerate.
722
86ba1042
JB
7232011-10-26 Meador Inge <meadori@codesourcery.com>
724
725 * gdbarch.sh (function_list): Use 'pstring' when printing
726 'gcore_bfd_target'.
727 * gdbarch.c: Regenerate.
728
c34fd852
UW
7292011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
730
731 * regcache.c (registers_changed_ptid): Invalidate thread architecture
732 and frame caches if PTID refers to all threads of a process.
733
931bb47f
UW
7342011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
735
736 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
737 to create_breakpoint.
738
88aed45e
UW
7392011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
740
741 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
742 (ppc_sysv_abi_push_dummy_call): Use it.
743 (do_ppc_sysv_return_value): Likewise.
744 (ppc64_sysv_abi_push_dummy_call): Likewise.
745 (ppc64_sysv_abi_return_value): Likewise.
746
3eaf3fa2
PK
7472011-10-26 Paul Koning <paul_koning@dell.com>
748
749 * python/lib/gdb/types.py (deepitems): New function.
750
913460fc
PK
7512011-10-25 Paul Koning <paul_koning@dell.com>
752
753 PR python/13327
754
755 * python/py-value.c (value_to_value_object): Remove fetching of
756 the value if it was lazy.
757 (valpy_get_is_lazy): New function.
758 (valpy_fetch_lazy): New function.
759
2b5b9d09
JB
7602011-10-24 Joel Brobecker <brobecker@adacore.com>
761
762 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
763 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
764
e21ffe51
PA
7652011-10-24 Pedro Alves <pedro@codesourcery.com>
766
767 * linux-nat.c (linux_handle_extended_wait): When handling a clone
768 event, in non-stop, if not stopping, make sure the new lwp has
769 last_resume_kind set to resume_continue. Assert that when we're
770 resuming the new lwp, its last_resume_kind is resume_continue.
771
7aee8dc2
PA
7722011-10-24 Pedro Alves <pedro@codesourcery.com>
773
774 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
775 already set when marking the event thread as not executing in
776 non-stop mode.
777
4b4e080e
PA
7782011-10-24 Pedro Alves <pedro@codesourcery.com>
779
780 * infrun.c (handle_inferior_event): Add debug output for
781 TARGET_WAITKIND_NO_HISTORY.
782
baacfb07
PM
7832011-10-24 Phil Muldoon <pmuldoon@redhat.com>
784
785 * NEWS: Move set/show extended-prompt to "New Options". Expand
786 description. Fix typos.
787
8432bc41
PM
7882011-10-24 Phil Muldoon <pmuldoon@redhat.com>
789
790 PR python/13310
791
792 * python/py-param.c (call_doc_function): Correctly deference on
793 function exit.
794
6cda5a20
JB
7952011-10-21 Joel Brobecker <brobecker@adacore.com>
796
797 * ada-tasks.c (print_ada_task_info): Fix computation of
798 number of tasks displayed in command output.
799
13294f7d
JK
8002011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
801 Ulrich Weigand <uweigand@de.ibm.com>
802
803 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
804 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
805 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
806 gdbarch_pc_regnum and frame_unwind_register_unsigned by
807 gdbarch_unwind_pc.
808
460c1c54
CC
8092011-10-20 Cary Coutant <ccoutant@google.com>
810
811 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
812 section to...
813 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
814 flag. Adjust all callers.
815 (process_psymtab_comp_unit): Remove adjustment for type section.
816
a10964d1
AR
8172011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
818
819 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
820 arguments by adding OBJFILE. Instead of getting objfile from
821 symbol's symtab, use new argument OBJFILE.
822 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
823 arguments by adding OBJFILE.
824 * gdb/dwarf2read.c (new_symbol_full): Change call to
825 cp_scan_for_anonymous_namespaces to match new signature.
826 * gdb/stabsread.c (define_symbol): Change call to
827 cp_scan_for_anonymous_namespaces to match new signature.
828
27ca1a5b
PM
8292011-10-20 Phil Muldoon <pmuldoon@redhat.com>
830
831 PR python/13308
832 PR python/13309
833
834 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
835 leak.
836 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
837 leak. Delete unused variables.
838
9df2fbc4
PM
8392011-10-20 Phil Muldoon <pmuldoon@redhat.com>
840
841 PR python/12656
842
843 * python/py-frame.c (frapy_read_var): Use const struct *block.
844 * python/py-type.c (typy_lookup_typename): Likewise.
845 (typy_lookup_type): Likewise.
846 (typy_legacy_template_argument): Likewise.
847 (typy_template_argument): Likewise.
848 (gdbpy_lookup_type): Likewise.
849 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
850 * python/py-block.c (blpy_block_object): Likewise.
851 (blpy_iter): Likewise.
852 (blpy_get_start): Likewise.
853 (blpy_get_end): Likewise.
854 (blpy_get_function): Likewise.
855 (blpy_get_superblock): Likewise.
856 (set_block): Likewise.
857 (block_to_block_object): Likewise.
858 (block_object_to_block): Likewise.
859 (blpy_is_valid): Likewise.
860 (blpy_get_global_block): New function.
861 (blpy_get_static_block): New function.
862 (blpy_is_global): New function.
863 (blpy_is_static): New function.
864 * blockframe.c (block_innermost_frame): Likewise.
865 * valops.c (value_of_variable): Likewise.
866 * frame.h: Update prototypes.
867 * python/python-internal.h: Likewise.
868 * value.h: Likewise.
869
4743b735
CC
8702011-10-19 Cary Coutant <ccoutant@google.com>
871
872 * dwarf2read.c (create_debug_types_hash_table): Fix size of
873 type_offset field.
874
6caca83c
CC
8752011-10-19 Cary Coutant <ccoutant@google.com>
876
877 * dwarf2read.c (peek_abbrev_code): New function.
878 (dw2_get_file_names): Check for dummy compilation units.
879 (create_debug_types_hash_table): Likewise.
880 (process_psymtab_comp_unit): Likewise.
881 (load_partial_comp_unit): Likewise.
882 (load_full_comp_unit): Likewise.
883
43136979
AR
8842011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
885
886 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
887 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
888 pt_phdr if PT_PHDR was found.
889
0a07729b
TT
8902011-10-17 Joost van der Sluis <joost@cnoc.nl>
891
892 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
893 type or "<unnamed type"> when there is no name assigned.
894 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
895 avoid a sigint when no name is assigned.
896
21ae7a4d
JK
8972011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
898
899 Revert:
900 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
901 * dwarf2expr.c (ctx_no_read_reg): New function.
902 * dwarf2expr.h (ctx_no_read_reg): New declaration.
903 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
904 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
905 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
906
32d1c362
DE
9072011-10-16 Doug Evans <dje@google.com>
908
909 * NEWS: Document python gdb.printing.register_pretty_printer's new
910 `replace' parameter.
911
da096638
KS
9122011-10-14 Keith Seitz <keiths@redhat.com>
913
914 PR c++/13225
915 * eval.c (evaluate_subexp_standard): Do not construct
916 an array of types; pass the value array directly to
917 find_overload_match.
918 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
919 (rank_function): Take an array of values instead of types.
920 (rank_one_type): Add struct value * parameter.
921 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
922 (rank_function): For each argument, pass the argument's
923 value to rank_one_type.
924 (rank_one_type): Add VALUE parameter.
925 If the parameter type is a pointer and the argument type
926 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
927 VALUE is zero.
928 Update all calls to rank_one_type, passing NULL for new
929 VALUE parameter.
930 * valarith.c (value_user_defined_cpp_op): Do not construct
931 an array of types; pass the value array directly to
932 find_overload_match.
933 * valops.c (find_overload_method_list): Take an array of
934 values instead of types.
935 Save the type of OBJP for later use.
936 Update calls to find_oload_champ, and find_oload_champ_namespace.
937 (find_oload_champ_namespace): Take an array of values instead
938 of types.
939 (find_oload_champ_namespace_loop): Likewise.
940 (find_oload_champ): Likewise.
941 (classify_oload_match): Inspect all arguments
942 until INCOMPATIBLE is found. Return the worst badness found
943 otherwise.
944 (compare_parameters): Update call to rank_one_type.
945 * value.h (find_overload_match): Take an array of values instead
946 of types.
947
3957565a
JK
9482011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
949
950 Drop lazy lm_info reading.
951 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
952 l_addr_inferior, l_ld, l_next, l_prev and l_name.
953 (lm_info_read): New function.
954 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
955 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
956 lm_dynamic_from_link_map.
957 (lm_next, lm_prev, lm_name): Remove.
958 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
959 initialization incl. read_memory. No longer use lm_name.
960 (svr4_free_so): Drop lm_info->lm freeing.
961 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
962 explicit lm_addr and lm initialization.
963 (svr4_read_so_list): Use lm_info_read, drop the initailization of
964 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
965 lm_name.
966
cb08cc53
JK
9672011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
968 Paul Pluzhnikov <ppluzhnikov@google.com>
969
970 * defs.h (struct so_list): New forward declaration.
971 (make_cleanup_free_so): New declaration.
972 * solib-svr4.c (ignore_first_link_map_entry): Remove.
973 (svr4_free_so): Move the function here from downwards. Handle NULL
974 so->lm_info.
975 (svr4_free_library_list): New.
976 (svr4_read_so_list): New, moved here code from svr4_current_sos.
977 Use more cleanups. Use new parameter ignore_first instead of
978 ignore_first_link_map_entry.
979 (svr4_current_sos): New variable ignore_first, initialize it. New
980 variable back_to, use it for svr4_free_library_list protection.
981 (svr4_free_so): Remove - move upwards.
982 * utils.c: Include solist.h.
983 (do_free_so, make_cleanup_free_so): New functions.
984
22c05d8a
JK
9852011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
986
987 Fix internal error regression.
988 * value.c (value_primitive_field): Handle value_optimized_out. Move
989 packed bitfields comment.
990
d930d06e
TT
9912011-10-13 Tom Tromey <tromey@redhat.com>
992
993 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
994 always released.
995
2ff6b080
TT
9962011-10-13 Tom Tromey <tromey@redhat.com>
997
998 * python/py-type.c (typy_has_key): Make 'field' const.
999
d6c5869f
LM
10002011-10-13 Luis Machado <lgustavo@codesourcery.com>
1001
1002 * remote.c (remote_save_trace_data): Invert comparison.
1003
a70633a2
LM
10042011-10-13 Luis Machado <lgustavo@codesourcery.com>
1005
1006 * tracepoint.c (trace_save_command): Use filename instead of
1007 args when printing.
1008
e103e986
JK
10092011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1010
1011 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1012 if .size is 0.
1013
db24da6d
YQ
10142011-10-13 Yao Qi <yao@codesourcery.com>
1015
1016 PR gdb/12703
1017 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1018 whether insn is a 32-bit Thumb-2 instruction.
1019 (thumb_in_function_epilogue_p): Likewise.
1020 (thumb_get_next_pc_raw): Likewise.
1021 (arm_breakpoint_from_pc): Likewise.
1022
1d6edc3c
JK
10232011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1024
1025 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1026 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1027 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1028 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1029 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1030 zero DATA.
1031 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1032 validity.
1033 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1034 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1035 clear DATA on zero SIZE.
1036
adabb602
DE
10372011-10-12 Doug Evans <dje@google.com>
1038
1039 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1040 header->first_die_offset here. All callers updated.
1041
5048e516
JK
10422011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1043
1044 Fix compatibility with texinfo versions older than 4.12.
1045 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1046 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1047 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1048 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1049 * configure: Regenerate.
1050 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1051 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1052 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1053
0574c78f
GB
10542011-10-12 Gary Benson <gbenson@redhat.com>
1055
1056 * breakpoint.h (pc_at_non_inline_function): Declare.
1057 * breakpoint.c (is_non_inline_function,
1058 pc_at_non_inline_function): New functions.
1059 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1060 if the stop is at a location where functions cannot be inlined.
1061
12d9289a
PA
10622011-10-12 Pedro Alves <pedro@codesourcery.com>
1063
1064 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1065 the core wanted them stopped, or if they now have a pending event
1066 to report.
ecf8e7f5
PA
1067 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1068 down to stop_and_resume_callback.
1069 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1070 having new pending events after calling linux_nat_filter_event.
12d9289a 1071
96408a79
SA
10722011-10-11 Sterling Augustine <saugustine@google.com>
1073
1074 * dwarf2read.c: Undo inadvertent changes in previous commit.
1075
9c6c53f7
SA
10762011-10-11 Sterling Augustine <saugustine@google.com>
1077
1078 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1079 logic.
1080
0e8aefe7
UW
10812011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1082
1083 * symfile.c (separate_debug_file_exists): Fix condition.
1084
349d1385
DM
10852011-10-11 David S. Miller <davem@davemloft.net>
1086
1087 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1088 static.
1089 * regcache.h (regcache_restore): Remove declaration.
1090
205c306f
DM
1091 * gdbarch.sh: New field 'long_long_align_bit'.
1092 * gdbarch.c, gdbarch.h: Regenerate.
1093 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1094 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1095
941b2081
JK
10962011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1097
1098 Revert this part of:
1099 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1100 Support @entry in input expressions.
1101 * c-exp.y (ENTRY, unknown_cpp_name): New.
1102 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1103 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1104 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1105 (name_not_typename: ENTRY): New.
1106 (yylex): Recognize ENTRY.
1107
1108 Reimplement @entry in input expressions.
1109 * c-exp.y (ENTRY): New.
1110 (variable: name_not_typename ENTRY): New.
1111 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1112
3c4d7e12
PA
11132011-10-11 Pedro Alves <pedro@codesourcery.com>
1114
1115 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1116 parent and child's pids as soon as we detect a clone event.
1117 Adjust another debug message.
1118
ea23808b
PA
11192011-10-11 Pedro Alves <pedro@codesourcery.com>
1120
1121 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1122 not zombie instead of reading the whole file.
1123
904578ed
JK
11242011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 Fix separate debuginfo warning with "remote:" access.
1127 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1128 * symfile.c (get_file_crc): New function with the code moved from ...
1129 (separate_debug_file_exists): ... this function, specifically variables
1130 buffer and count. New variable verified_as_different, set it. Remove
1131 file_crc initialization. Verify also if both files are not the same
1132 manually, if needed.
1133
51370a33
YQ
11342011-10-11 Yao Qi <yao@codesourcery.com>
1135
1136 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1137 to get address.
1138
0838fb57
DE
11392011-10-10 Doug Evans <dje@google.com>
1140
1141 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1142 libthread_db when we load libpthread or the main symbol file.
1143 (thread_db_inferior_created): New function.
1144 (_initialize_thread_db): Attach inferior_created observer.
1145 * linux-nat.c (linux_child_post_attach): Remove call to
1146 check_for_thread_db.
1147 (linux_child_post_startup_inferior): Ditto.
1148 * objfiles.h (OBJF_MAINLINE): Define.
1149 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1150 allocate_objfile when appropriate.
1151
623bd5b7
UW
11522011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1153
1154 PR gdb/13218
1155 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1156 Remove unused variables.
1157 (get_linux_version): Remove function.
1158 (_initialize_arm_linux_nat): Do not call it.
1159
79395f92
PA
11602011-10-10 Pedro Alves <pedro@codesourcery.com>
1161
1162 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1163 new clone lwp if the core asked it to stop. Don't pass on
1164 unexpected signals to the new clone; leave them pending instead.
1165
eff3df78
PA
11662011-10-10 Pedro Alves <pedro@codesourcery.com>
1167
1168 * linux-nat.c (resume_lwp): Remove redundant debug output.
1169
4b60df3d
PA
11702011-10-10 Pedro Alves <pedro@codesourcery.com>
1171
1172 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1173 last_resume_kind before clearing it, and use the copy instead to
1174 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1175 resume_clear_callback in the non-stop path too.
1176
6501578c
YQ
11772011-10-09 Yao Qi <yao@codesourcery.com>
1178
1179 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1180 Honor OPTIONS and VAL's type.
1181 (common_val_print, value_print): Update to pass one more parameter.
1182
5a56e9c5
DE
11832011-10-09 Doug Evans <dje@google.com>
1184
1185 Add new "alias" command.
1186 * NEWS: Mention new command.
1187 * command.h (valid_user_defined_cmd_name_p): Declare.
1188 * defs.h (make_cleanup_dyn_string_delete): Declare.
1189 * utils.c: #include "dyn-string.h".
1190 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1191 * cli/cli-cmds.c: #include "dyn-string.h".
1192 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1193 (init_cli_cmds): Add new command.
1194 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1195
509f0fd9
JK
11962011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1197
1198 Fix compatibility with older GCCs.
1199 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1200 * stack.c (read_frame_arg): Initialize val_deref.
1201
2bda9cc5
JK
12022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1203
1204 Entry values NEWS entries, DWARF disassembly support.
1205 * NEWS: New entry values entry.
1206 (set print entry-values, show print entry-values)
1207 (set debug entry-values, show debug entry-values): New entries.
1208 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1209 indent. Remove variable start. Move header printing out. Respect
1210 INDENT. Support DW_OP_GNU_entry_value.
1211 (locexpr_describe_location_1): Move the header printing here, extend
1212 the disassemble_dwarf_expression passed parameters.
1213
a471c594
JK
12142011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1215
1216 Display @entry parameter values even for references.
1217 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1218 coerce_ref_if_computed.
1219 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1220 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1221 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1222 existing push_dwarf_reg_entry_value call. Add new detection calling
1223 dwarf_block_to_dwarf_reg_deref. Update the error message.
1224 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1225 * dwarf2expr.h
1226 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1227 parameter deref_size, describe it in the comment.
1228 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1229 (dwarf_block_to_dwarf_reg_deref): New declaration.
1230 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1231 deref_size, describe it in the function comment. New variables
1232 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1233 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1234 describe it in the function comment. Fetch the alternative block
1235 accoring to DEREF_SIZE.
1236 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1237 (entry_data_value_free_closure, entry_data_value_funcs): New.
1238 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1239 outer_val, target_val, val and addr. Try to fetch and create also
1240 referenced value content.
1241 (pieced_value_funcs): NULL value for coerce_ref.
1242 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1243 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1244 coerce_ref_if_computed.
1245 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1246 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1247 * stack.c (read_frame_arg): Compare also dereferenced values.
1248 * value.c (value_computed_funcs): Make the parameter v const, use
1249 value_lval_const for it.
1250 (value_lval_const, coerce_ref_if_computed): New function.
1251 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1252 * value.h (struct lval_funcs): New field coerce_ref.
1253 (value_computed_funcs): Make the parameter v const.
1254 (value_lval_const, coerce_ref_if_computed): New declarations.
1255
36b11add
JK
12562011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1257
1258 Support @entry in input expressions.
1259 * c-exp.y (ENTRY, unknown_cpp_name): New.
1260 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1261 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1262 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1263 (name_not_typename: ENTRY): New.
1264 (yylex): Recognize ENTRY.
1265 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1266 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1267 Likewise.
1268 * parse.c (operator_length_standard): Likewise.
1269 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1270
3343315b
JK
12712011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1272
1273 Display referenced values in backtraces.
1274 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1275 * stack.c (print_frame_arg): Likewise.
1276
ac71a68c
JK
12772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1278
1279 Make some lval_funcs methods to default on NULL.
1280 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1281 NULL.
1282 (value_assign): Check if lval_computed write method is NULL.
1283 * value.h (struct lval_funcs): Comment NULL values for read and write
1284 methods.
1285
e18b2753
JK
12862011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1287
1288 Display @entry parameter values (without references).
1289 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1290 New functions.
1291 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1292 New declarations.
1293 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1294 entry record.
1295 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1296 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1297 functions.
1298 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1299 (loclist_read_variable_at_entry): New function.
1300 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1301 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1302 DW_AT_location, call dwarf_block_to_sp_offset for it.
1303 * frame.h (print_entry_values_no, print_entry_values_only)
1304 (print_entry_values_preferred, print_entry_values_if_needed)
1305 (print_entry_values_both, print_entry_values_compact)
1306 (print_entry_values_default, print_entry_values): New declarations.
1307 (struct frame_arg): New field entry_kind.
1308 (read_frame_arg): New parameter entryargp.
1309 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1310 arg->entry_kind. Optionally print the `@entry' suffix.
1311 (list_args_or_locals): New variable entryarg, initialize it.
1312 Initialize also entry_kind of arg and entryarg. Conditionalize
1313 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1314 xfree for entryarg.error.
1315 * stack.c (print_entry_values_no, print_entry_values_only)
1316 (print_entry_values_preferred, print_entry_values_if_needed)
1317 (print_entry_values_both, print_entry_values_compact)
1318 (print_entry_values_default, print_entry_values_choices)
1319 (print_entry_values): New variables.
1320 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1321 print the `@entry' suffix, possibly in combination for
1322 print_entry_values_compact.
1323 (read_frame_arg): New parameter entryargp, new variables entryval,
1324 entryval_error and val_equal. Read in also entryargp, respect
1325 print_entry_values, compare the values using val_equal, fill in also
1326 argp->entry_kind (together with entryargp->entry_kind).
1327 (print_frame_args): New variable entryarg, initialize it.
1328 Conditionalize print_frame_arg for arg, add print_frame_arg for
1329 entryarg. Call xfree for entryarg.error.
1330 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1331 * symtab.h (struct symbol_computed_ops): New field
1332 read_variable_at_entry.
1333
93d86cef
JK
13342011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1335
1336 Code reshuffle.
1337 * frame.h (struct frame_arg): New definition.
1338 (read_frame_arg): New declaration.
1339 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1340 (list_args_or_locals): ... the code here. New variable arg, call
1341 read_frame_arg and list_arg_or_local with it. Unify the
1342 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1343 arg.error.
1344 * stack.c (print_frame_arg): New functiom from the code of
1345 print_frame_args.
1346 (read_frame_arg): New function.
1347 (print_frame_args): Remove variable val. New variable arg, call
1348 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1349
2d6c5dc2
JK
13502011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1351
1352 Protect entry values against self tail calls.
1353 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1354 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1355
111c6489
JK
13562011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1357
1358 Recognize virtual tail call frames.
1359 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1360 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1361 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1362 * dwarf2-frame-tailcall.c: New file.
1363 * dwarf2-frame-tailcall.h: New file.
1364 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1365 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1366 REGS.PREV only after CIE execution.
1367 (struct dwarf2_frame_cache): New field tailcall_cache.
1368 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1369 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1370 parts, try to find entry_cfa_sp_offset. Call
1371 dwarf2_tailcall_sniffer_first.
1372 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1373 when appropriate.
1374 (dwarf2_frame_dealloc_cache): New function.
1375 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1376 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1377 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1378 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1379 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1380 * dwarf2loc.c (func_addr_to_tail_call_list)
1381 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1382 (call_site_find_chain_1, call_site_find_chain): New.
1383 * dwarf2loc.h (struct call_site_chain): New.
1384 (call_site_find_chain): New declaration.
1385 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1386 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1387 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1388 * stack.c (frame_info): Support also TAILCALL_FRAME.
1389
bb984ff1
JK
13902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1391
1392 Tail call sites reader implementation.
1393 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1394 fill in TYPE_TAIL_CALL_LIST.
1395 * gdbtypes.h (struct func_type): New field tail_call_list.
1396 (struct call_site): New field tail_call_next.
1397 (TYPE_TAIL_CALL_LIST): New definition.
1398
8e3b41a9
JK
13992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1400
1401 Implement basic support for DW_TAG_GNU_call_site.
1402 * block.c: Include gdbtypes.h and exceptions.h.
1403 (call_site_for_pc): New function.
1404 * block.h (call_site_for_pc): New declaration.
1405 * defs.h: Include hashtab.h.
1406 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1407 declarations.
1408 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1409 ctx_no_push_dwarf_reg_entry_value.
1410 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1411 (dwarf_block_to_dwarf_reg): New function.
1412 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1413 (ctx_no_push_dwarf_reg_entry_value): New function.
1414 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1415 push_dwarf_reg_entry_value.
1416 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1417 declarations.
1418 * dwarf2loc.c: Include gdbcmd.h.
1419 (dwarf_expr_ctx_funcs): New forward declaration.
1420 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1421 (dwarf_expr_reg_to_entry_parameter)
1422 (dwarf_expr_push_dwarf_reg_entry_value): New.
1423 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1424 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1425 (needs_dwarf_reg_entry_value): New function.
1426 (needs_frame_ctx_funcs): Install it.
1427 (_initialize_dwarf2loc): New function.
1428 * dwarf2loc.h (entry_values_debug): New declaration.
1429 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1430 (read_call_site_scope): New forward declaration.
1431 (process_full_comp_unit): Copy call_site_htab.
1432 (process_die): Support DW_TAG_GNU_call_site.
1433 (read_call_site_scope): New function.
1434 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1435 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1436 (cleanup_htab): Delete.
1437 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1438 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1439 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1440 FIELD_LOC_KIND_DWARF_BLOCK.
1441 * gdbtypes.h (enum field_loc_kind): New entry
1442 FIELD_LOC_KIND_DWARF_BLOCK.
1443 (struct main_type): New loc entry dwarf_block.
1444 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1445 (TYPE_FIELD_DWARF_BLOCK): New.
1446 * python/py-type.c: Include dwarf2loc.h.
1447 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1448 internal_error call on unknown FIELD_LOC_KIND.
1449 * symtab.h (struct symtab): New field call_site_htab.
1450 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1451 (core_addr_hash, core_addr_eq): New functions.
1452
b6cdc2c1
JK
14532011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1454
1455 Code reshuffle.
1456 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1457 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1458 calling_convention under func_stuff there.
1459 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1460 (init_type) <TYPE_CODE_FUNC>: Likewise.
1461 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1462 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1463 * gdbtypes.h (enum type_specific_kind): Change
1464 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1465 (struct main_type) <type_specific>: Change calling_convention to
1466 func_stuff. Move calling_convention to ...
1467 (struct func_type): ... this new struct.
1468 (INIT_FUNC_SPECIFIC): New #define.
1469 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1470
181cebd4
JK
14712011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1472
1473 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1474 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1475 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1476 ctx->ref_addr_size. Handle its invalid value.
1477 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1478 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1479 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1480 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1481 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1482 (dwarf2_per_cu_ref_addr_size): New function.
1483
c471e790
JK
14842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1485
1486 Code cleanup.
1487 * dwarf2read.c (per_cu_header_read_in): New function.
1488 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1489 variables cu_header_local and cu_headerp.
1490
741f5e3c
JK
14912011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1492
1493 Fix initial language detection with -readnow.
1494 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1495 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1496 searches only for global symbols.
1497
a73d2258
JK
14982011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1499
1500 Fix printed anonymous struct name.
1501 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1502 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1503 (anonymous_struct_prefix): New function.
1504 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1505 (dwarf2_name): Strip for anonymous structs any prefixes.
1506
749fd4ea
DE
15072011-10-07 Doug Evans <dje@google.com>
1508
1fa57852
DE
1509 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1510 `replace'.
1511
690a4937
DE
1512 * python/lib/gdb/printing.py: Whitespace cleanup.
1513
749fd4ea
DE
1514 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1515 warning.
1516
4c38200f
PA
15172011-10-07 Pedro Alves <pedro@codesourcery.com>
1518
1519 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1520 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1521 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1522 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1523 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1524 (arm_linux_remove_watchpoint): Adjust.
1525 * i386-linux-nat.c (i386_linux_dr_set_control)
1526 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1527 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1528 (ia64_linux_remove_watchpoint): Adjust.
1529 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1530 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1531 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1532 (ppc_linux_insert_mask_watchpoint)
1533 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1534 (ppc_linux_remove_watchpoint): Adjust.
1535 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1536 Adjust.
1537
b7ff339d
CV
15382011-10-07 Corinna Vinschen <vinschen@redhat.com>
1539
1540 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1541 (clear_win32_environment): New function for Cygwin to clear out
1542 Win32 environment.
1543 (windows_create_inferior): Prepare new environment from in_env
1544 for Cygwin, too.
1545
f287c1f3
PM
15462011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1547
5631e596 1548 PR python/13264
f287c1f3
PM
1549 * python/py-value.c (valpy_call): Check that arguments are
1550 a tuple.
1551 (is_intlike): Remove call to CHECK_TYPEDEF.
1552 (valpy_nonzero): Catch GDB exceptions.
1553 (valpy_absolute): Ditto.
1554 (valpy_lazy_string): Ditto.
1555 (valpy_call): Ditto.
1556 (valpy_get_is_optimized_out): Ditto.
1557 (valpy_long): Ditto.
1558 (valpy_float): Ditto.
1559 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1560 (valpy_richcompare): Ditto.
1561
03583c20
UW
15622011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1563
1564 * inferior.h (disable_randomization): Declare.
1565 * infrun.c (disable_randomization): New global variable.
1566 (show_disable_randomization): New function.
1567 (set_disable_randomization): Likewise.
1568 (_initialize_infrun): Install set/show disable-randomization
1569 commands.
1570 * linux-nat.c (disable_randomization): Remove.
1571 (show_disable_randomization): Likewise.
1572 (set_disable_randomization): Likewise.
1573 (_initialize_linux_nat): No longer install set/show
1574 disable-randomization commands here.
1575 (linux_nat_supports_disable_randomization): New function.
1576 (linux_nat_add_target): Install it.
1577 * remote.c (PACKET_QDisableRandomization): New enum value.
1578 (remote_protocol_packets): Support QDisableRandomization.
1579 (_initialize_remote): Likewise.
1580 (remote_supports_disable_randomization): New function.
1581 (init_remote_ops): Install it.
1582 (extended_remote_supports_disable_randomization): New function.
1583 (init_extended_remote_ops): Install it.
1584 (extended_remote_disable_randomization): New function.
1585 (extended_remote_create_inferior_1): Call it.
1586 * target.h (struct target_ops): Add to_supports_disable_randomization.
1587 (target_supports_disable_randomization): Add prototype.
1588 * target.c (target_supports_disable_randomization): New function.
1589 (find_default_supports_disable_randomization): Likewise.
1590 (init_dummy_target): Install it.
1591
20c168b5
KP
15922011-10-07 Kevin Pouget <kevin.pouget@st.com>
1593
1594 Allow Python notification of new object-file loadings.
1595 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1596 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1597 Add build rule for this file.
1598 * python/py-event.h (emit_new_objfile_event): New prototype.
1599 (newobjfile): New Python event emitter.
1600 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1601 Python event registry.
1602 * python/py-inferior.c: Include objfiles.h
1603 (python_new_objfile): New function.
1604 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1605 observers.
1606 * python/py-newobjfileevent.c: New file.
1607 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1608 prototype.
1609 * python/python.c (_initialize_python): Add
1610 gdbpy_initialize_new_objfile_event call.
1611 * NEWS: Add item for new Python event "gdb.newobjfile"
1612
b1c8db38
TG
16132011-10-05 Tristan Gingold <gingold@adacore.com>
1614
1615 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1616 Extract the ravenscar task name from the symbol for the atcb.
1617
0dab82e9
PK
16182011-10-04 Paul Koning <paul_koning@dell.com>
1619
1620 * python/py-type.c (typy_make_iter): Add forward declaration.
1621 (typy_fields_items): Use the gdb.Type iterator.
1622
84ad80e6
PK
16232011-10-04 Paul Koning <paul_koning@dell.com>
1624
1625 * NEWS: Add entry for Python gdb.Type mapping methods.
1626
cb6be26b
KP
16272011-10-04 Kevin Pouget <kevin.pouget@st.com>
1628
1629 PR python/12691: Add the inferior to Python exited event
1630 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1631 to exited_event.
1632 * python/py-event.h (emit_exited_event): Likewise
1633 * python/-inferior.c (python_inferior_exit): Likewise
1634
6005b210
JB
16352011-10-03 Joel Brobecker <brobecker@adacore.com>
1636
1637 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1638 in output of -ada-task-info GDB/MI command.
1639
75082e8c
JB
16402011-10-03 Joel Brobecker <brobecker@adacore.com>
1641
1642 * ada-lang.h (struct inferior): Declare.
1643 (print_ada_task_info): Add declaration.
1644 * ada-tasks.c (print_ada_task_info): Make non-static.
1645 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1646 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1647 * mi/mi-main.c: #include "ada-lang.h".
1648 (mi_cmd_list_features): Add "ada-task-info" to the list
1649 of supported features.
1650 (mi_cmd_ada_task_info): New function.
1651
7ed7d719
JB
16522011-10-03 Joel Brobecker <brobecker@adacore.com>
1653
1654 * python/python.c (python_run_simple_file): New function.
1655 (source_python_script, source_python_script_for_objfile):
1656 Replace call to PyRun_SimpleFile by call to
1657 python_run_simple_file.
1658
3fcaed38
PK
16592011-10-03 Paul Koning <paul_koning@dell.com>
1660
1661 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1662 (value_to_value_object): Fetch value if it was lazy.
1663
8e5c319d
JK
16642011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1665
1666 Code cleanup.
1667 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1668 Rearrange the code for it.
1669
dd11a36c
JB
16702011-10-02 Joel Brobecker <brobecker@adacore.com>
1671
1672 * breakpoint.c (bkpt_print_recreate): Add call to
1673 print_recreate_thread.
1674
723b724b
MF
16752011-09-29 Mike Frysinger <vapier@gentoo.org>
1676
1677 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1678 PTRACE_GETFDPIC_INTERP): Define.
1679
412946b6
YQ
16802011-09-28 Yao Qi <yao@codesourcery.com>
1681
1682 * symfile.c (add_symbol_file_command): Update message on usage.
1683
a73bb892
PK
16842011-09-28 Paul Koning <paul_koning@dell.com>
1685
1686 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1687 (typy_length, typy_get, typy_has_key, typy_make_iter)
1688 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1689 (typy_iterator_iter, typy_iterator_iternext)
1690 (typy_iterator_dealloc): New functions to implement standard
1691 Python mapping methods on gdb.Type object.
1692 (gdb.TypeIterator): New Python type.
1693 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1694
fe10a582
DM
16952011-09-28 David S. Miller <davem@davemloft.net>
1696
1697 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1698 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1699 * sparc-tdep.c (sparc_complex_floating_p): New function.
1700 (sparc32_store_arguments): Handle complex floats.
1701 (sparc32_extract_return_value): Likewise.
1702 (sparc32_store_return_value): Likewise.
1703 (sparc32_stabs_argument_has_addr): Likewise.
1704 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1705 (sparc64_store_floating_fields): Handle complex floats.
1706 (sparc64_store_arguments): Likewise.
1707 (sparc64_store_return_value): Likewise.
1708
c93dbcba
EZ
17092011-09-28 Eli Zaretskii <eliz@gnu.org>
1710
1711 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1712 before the change on 2006-12-09.
1713 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1714 generates the environment block for CreateProcessA, modulo the
1715 Cygwin-specific parts that are not needed here.
1716
f00c55f8
TG
17172011-09-27 Tristan Gingold <gingold@adacore.com>
1718
1719 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1720 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1721 (darwin_solib_get_all_image_info_addr_at_init): New function.
1722 (darwin_solib_read_all_image_info_addr): Likewise.
1723 (darwin_solib_create_inferior_hook): Use the above two functions.
1724 * darwin-nat.c (darwin_execvp): Renames retval to res.
1725 (darwin_read_write_inferior): Update comment.
1726 (darwin_read_dyld_info): New function.
1727 (darwin_xfer_partial): Handle DYLD_INFO.
1728
6710bf39
SS
17292011-09-27 Stan Shebs <stan@codesourcery.com>
1730
1731 Add return address collection for tracepoints.
1732 * tracepoint.c (encode_actions_1): Add case for $_ret.
1733 (validate_actionline): Check for $_ret.
1734 (trace_dump_actions): Ditto.
1735 * ax-gdb.h (gen_trace_for_return_address): Declare.
1736 * ax-gdb.c: Include arch-utils.h.
1737 (gen_trace_for_return_address): New function.
1738 (agent_command): Add return address special case.
1739 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1740 (amd64_gen_return_address): New function.
1741 (amd64_init_abi): Call it.
1742 * i386-tdep.c: Include ax.h and ax-gdb.h.
1743 (i386_gen_return_address): New function.
1744 (i386_init_abi): Call it.
1745 * arch-utils.h (default_gen_return_address): Declare.
1746 * arch-utils.c (default_gen_return_address): New function.
1747 * gdbarch.sh (gen_return_address): New method.
1748 * gdbarch.h, gdbarch.c: Regenerate.
1749
e04e5beb
JM
17502011-09-23 Joseph Myers <joseph@codesourcery.com>
1751
1752 PR gdb/13079
1753 * i386-tdep.c (i386_frame_align): New.
1754 (i386_gdbarch_init): Use i386_frame_align.
1755
f3d6df6d
YQ
17562011-09-23 Yao Qi <yao@codesourcery.com>
1757
1758 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1759 to get address.
1760
e69860f1
TG
17612011-09-22 Tristan Gingold <gingold@adacore.com>
1762
1763 * fork-child.c (fork_inferior): Add exec_fun parameter.
1764 Call exec_fun or execvp.
1765 * inferior.h: Adjust prototype.
1766 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1767 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1768 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1769 * procfs.c (procfs_create_inferior): Ditto.
1770 * darwin-nat.c (darwin_execvp): New function.
1771 (darwin_create_inferior): Use it.
1772
4b51d87b
YQ
17732011-09-22 Yao Qi <yao@codesourcery.com>
1774
1775 * infrun.c (context_switch): Print debug message when switching to
1776 a different thread.
1777
56b9d9ac
UW
17782011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1779
1780 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1781 complex and vector types.
1782 (s390_return_value_convention): Likewise.
1783
1784 (s390_value_from_register): Call check_typedef.
1785 (extend_simple_arg): Likewise.
1786 (alignment_of): Likewise.
1787 (s390_push_dummy_call): Likewise.
1788 (s390_return_value): Likewise.
1789
b2cd6b29
JM
17902011-09-21 Joseph Myers <joseph@codesourcery.com>
1791
1792 * event-top.c (async_disconnect): If an exception is thrown from
1793 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1794 catch_errors.
1795 * top.c (quit_cover): Return void and take no arguments.
1796 * top.h (quit_cover): Update prototype.
1797
67ba4e42
JM
17982011-09-20 Joseph Myers <joseph@codesourcery.com>
1799
1800 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1801 current_uiout, not uiout.
1802
562f943b
DE
18032011-09-19 Doug Evans <dje@google.com>
1804
1805 * python/py-auto-load.c (source_section_scripts): Fix file
1806 descriptor leak.
1807 * python/python.c (source_python_script_for_objfile): Tweak comments.
1808
34518530
YQ
18092011-09-18 Yao Qi <yao@codesourcery.com>
1810 Ulrich Weigand <ulrich.weigand@linaro.org>
1811
1812 Support displaced stepping for Thumb 16-bit insns.
1813 * arm-tdep.c (THUMB_NOP) Define.
1814 (thumb_copy_unmodified_16bit): New.
1815 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1816 (thumb_copy_alu_reg): New.
1817 (arm_copy_svc): Move some common code to ...
1818 (install_svc): ... here. New.
1819 (thumb_copy_svc): New.
1820 (install_pc_relative): New.
1821 (thumb_copy_pc_relative_16bit): New.
1822 (thumb_decode_pc_relative_16bit): New.
1823 (thumb_copy_16bit_ldr_literal): New.
1824 (thumb_copy_cbnz_cbz): New.
1825 (cleanup_pop_pc_16bit_all): New.
1826 (thumb_copy_pop_pc_16bit): New.
1827 (thumb_process_displaced_16bit_insn): New.
1828 (thumb_process_displaced_32bit_insn): New.
1829 (thumb_process_displaced_insn): process thumb instruction.
1830
1831 Support displaced stepping for Thumb 32-bit insns.
1832 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1833 (thumb2_copy_preload): New.
1834 (thumb2_copy_copro_load_store): New.
1835 (thumb2_copy_b_bl_blx): New.
1836 (thumb2_copy_alu_imm): New.
1837 (thumb2_copy_load_reg_imm): New.
1838 (thumb2_copy_load_literal): New
1839 (thumb2_copy_block_xfer): New.
1840 (thumb_32bit_copy_undef): New.
1841 (thumb_32bit_copy_unpred): New.
1842 (thumb2_decode_ext_reg_ld_st): New.
1843 (thumb2_decode_svc_copro): New.
1844 (decode_thumb_32bit_store_single_data_item): New.
1845 (thumb_copy_pc_relative_32bit): New.
1846 (thumb_decode_pc_relative_32bit): New.
1847 (decode_thumb_32bit_ld_mem_hints): New.
1848 (thumb2_copy_table_branch): New
1849 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1850 instructions.
1851
2b16b2e3
YQ
18522011-09-18 Yao Qi <yao@codesourcery.com>
1853
1854 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1855 (install_b_bl_blx): Likewise.
1856
0f6f04ba
YQ
18572011-09-17 Yao Qi <yao@codesourcery.com>
1858
1859 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1860 (install_load_store): ... this. New.
1861 Change parameter BYTE to SIZE.
1862 (arm_copy_ldr_str_ldrb_strb): Update caller.
1863 (arm_decode_ld_st_word_ubyte): Update caller.
1864
e2d96639
YQ
18652011-09-17 Yao Qi <yao@codesourcery.com>
1866
1867 * infrun.c (displaced_step_fixup): Move some code ...
1868 (displaced_step_restore): ... here. New function.
1869 (handle_inferior_event): Cleanup displaced stepping state for both
1870 child and parent when get forked or vforked event.
1871 * regcache.c (get_thread_arch_aspace_regcache): New function.
1872 get_thread_arch_regcache (): Call it.
1873
a8123151
JB
18742011-09-16 Joel Brobecker <brobecker@adacore.com>
1875
1876 * ada-tasks.c (print_ada_task_info): New function, merging
1877 short_task_info and info_tasks together. Reimplement using
1878 ui-out instead of printing to stdout directly. Move the code
1879 building and checking the task list here, instead of leaving it
1880 in info_tasks_command.
1881 (info_task): Move the code building and checking the task
1882 list here, instead of leaving it in info_tasks_command.
1883 (info_tasks_command): Delete code building and checking
1884 the task list - moved elsewhere. Update calls to info_tasks
1885 and info_task.
1886
fbf06824
JB
18872011-09-16 Joel Brobecker <brobecker@adacore.com>
1888
1889 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1890
34a0bc90
JB
18912011-09-16 Joel Brobecker <brobecker@adacore.com>
1892
1893 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1894
79779fa9
JB
18952011-09-16 Joel Brobecker <brobecker@adacore.com>
1896
1897 * ada-lang.h (ada_build_task_list): Remove parameter
1898 `warn_if_null'.
1899 * ada-tasks.c (ada_build_task_list): Remove parameter
1900 `warn_if_null'. Adjust implementation and documentation.
1901 (valid_task_id, ada_get_environment_task)
1902 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1903 (info_tasks_command): Adjust implementation.
1904 (task_command): Likewise.
1905 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1906 to ada_build_task_list.
1907
e225eb91
JB
19082011-09-16 Joel Brobecker <brobecker@adacore.com>
1909
1910 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1911 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1912 (ada_tasks_inferior_data_handle): New static global.
1913 (get_ada_tasks_inferior_data): New function.
1914 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1915 (ada_get_environment_task, iterate_over_live_ada_tasks)
1916 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1917 Adjust.
1918 (ada_set_current_inferior_known_tasks_addr): New function.
1919 (read_known_tasks, ada_build_task_list, short_task_info)
1920 (info_tasks, info_task, info_tasks_command, task_command_1)
1921 (task_command, ada_task_list_changed): Adjust.
1922 (ada_tasks_invalidate_inferior_data): New function.
1923 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1924 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1925 * ada-lang.h (struct inferior): Add declaration.
1926 (ada_task_list_changed): Update profile.
1927 * remote-wtx-pd.c: #include "inferior.h".
1928 (switch_to_pd_internal): Update call to ada_task_list_changed.
1929
6da9ca05
JB
19302011-09-16 Joel Brobecker <brobecker@adacore.com>
1931
1932 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1933 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1934 (atcb_fieldno): Delete these static globals.
1935 (struct ada_tasks_pspace_data): New struct.
1936 (ada_tasks_pspace_data_handle): New static global.
1937 (get_ada_tasks_pspace_data): New function.
1938 (ada_tasks_invalidate_pspace_data): New function.
1939 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1940 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1941 (_initialize_tasks): Create this module's per-progspace
1942 data handle.
1943
dccd3cbd
JB
19442011-09-16 Joel Brobecker <brobecker@adacore.com>
1945
1946 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1947
f877b031
TG
19482011-09-16 Tristan Gingold <gingold@adacore.com>
1949
1950 * fork-child.c (fork_inferior): Update comment. Use alloca
1951 instead of xmalloc for argv. Move len and shell_command
1952 declarations in the block where they are used.
1953 Only call execvp. Factorize failure code.
1954
ae0c443d
JK
19552011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1956
1957 Code cleanup.
1958 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1959 `exp_element' instead of an element of the same and make the function
1960 static.
1961 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1962 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1963 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1964 Change argument of `write_exp_elt' function call.
1965 Remove extra spaces from comments.
1966 * parser-defs.h (write_exp_elt): Remove prototype.
1967
5af65ec0
PK
19682011-09-15 Paul Koning <paul_koning@dell.com>
1969
1970 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1971 count of item appended to list.
1972 * python/py-type.c (typy_fields): Likewise.
1973
72be8ccc
PK
19742011-09-15 Paul Koning <paul_koning@dell.com>
1975
883640a8 1976 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1977
92f6badc
KP
19782011-09-15 Kevin Pouget <kevin.pouget@st.com>
1979
1980 PR threads/12628
1981 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1982 processes with multiple threads.
1983 (inf_has_multiple_thread_cb): New function.
1984 (inf_has_multiple_threads): New function.
1985
0672bf41 19862011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
1987
1988 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1989 * python/py-inferior.c (GdbMethods): New Python method definition.
1990
6839b47f
KP
19912011-09-15 Kevin Pouget <kevin.pouget@st.com>
1992
1993 Handle multiple breakpoint hits in Python interface:
1994 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1995 variable to breakpoints.
1996 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1997 bps instead of single breakpoint. Fix some space typos.
1998 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1999 variable to breakpoints.
2000
672f9b60
KP
20012011-09-15 Kevin Pouget <kevin.pouget@st.com>
2002
2003 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2004 note if the breakpoint is internal.
2005
43675ae4
KP
20062011-09-15 Kevin Pouget <kevin.pouget@st.com>
2007
0672bf41 2008 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2009
15148d6a
PA
20102011-09-14 Pedro Alves <pedro@codesourcery.com>
2011
2012 * infrun.c (prepare_for_detach, wait_for_inferior)
2013 (fetch_inferior_event): Don't flush the register cache.
2014 * remote.c (struct stop_reply) <regcache>: Add comment.
2015
d83e736b
JK
20162011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2017
2018 Remove excessive DWARF expressions memory duplication.
2019 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2020 for block.data.
2021 (indirect_pieced_value): Remove variable result. Remove variable
2022 back_to and its use for baton.data.
2023 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2024 block.data.
2025 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2026 Update the function comment.
2027
c65b3e0d
PA
20282011-09-13 Pedro Alves <pedro@codesourcery.com>
2029
2030 * inferior.h (ALL_INFERIORS): New.
2031 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2032 for a stopped thread.
2033 (thread_db_find_new_threads): Look for threads in all inferiors.
2034
a1398e0c
PA
20352011-09-13 Pedro Alves <pedro@codesourcery.com>
2036
2037 * breakpoint.c (update_watchpoint): Handle the case of the
2038 watchpoint to update not being in the breakpoint list yet.
2039 (hw_watchpoint_use_count): New, factored out from
2040 hw_watchpoint_used_count.
2041 (hw_watchpoint_used_count): Rename to ...
2042 (hw_watchpoint_used_count_others): ... this. Add `except'
2043 parameter. Don't count resources of `except'. Use
2044 hw_watchpoint_use_count.
2045
30596231
PA
20462011-09-13 Pedro Alves <pedro@codesourcery.com>
2047
2048 * gdbthread.h (enum thread_state): Moved here.
2049 (struct thread_info): Rename `executing_' field to `executing' and
2050 `state_' to `state'.
2051 * thread.c (enum thread_state): Moved to gdbthread.h.
2052 (new_thread, add_thread_silent, delete_thread_1)
2053 (any_live_thread_of_process, thread_alive, set_running)
2054 (set_running, is_thread_state, any_running, is_executing)
2055 (set_executing, finish_thread_state, print_thread_info)
2056 (do_captured_thread_select): Adjust.
2057
bede5f5f
JK
20582011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2059
2060 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2061 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2062
4801a9a3
PA
20632011-09-12 Pedro Alves <pedro@codesourcery.com>
2064 Matt Rice <ratmice@gmail.com>
2065
2066 PR gdb/13175
2067
2068 * interps.c (struct interp) <interpreter_out>: Delete field.
2069 (interp_new): Remove the data and uiout parameters and adjust.
2070 (interp_set): Only set the current_uiout from the interpreter's
2071 uiout after initializing the interpreter. Adjust call to
2072 init_proc.
2073 (interp_ui_out): Adjust to call procs->ui_out_proc.
2074 (interp_data, interp_name): New.
2075 * interps.h (interp_init_ftype): Add `self' parameter.
2076 (interp_ui_out_ftype): New typedef.
2077 (struct interp_procs) <ui_out_proc>: New method pointer.
2078 (interp_new): Remove the data and uiout parameters.
2079 (interp_data, interp_name): Declare.
2080 * tui/tui-interp.c (tui_init): Adjust prototype.
2081 (tui_ui_out): New.
2082 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2083 tui_out here. Adjust call to interp_new.
2084 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2085 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2086 (cli_ui_out): New.
2087 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2088 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2089 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2090 Initialize mi->uiout depending on the mi_version as extracted from
2091 the interpreter's name.
2092 (mi_ui_out): New.
2093 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2094 interp_new. Don't allocate the ui_out's of the interpreters here.
2095
d0afda03 20962011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2097
d0afda03 2098 * solib.c (solib_used): New function.
59145f8c
AR
2099 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2100 by another so_list object before freeing it.
2101
bdaf8d4a
JK
21022011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 Code cleanup.
2105 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2106 values.
2107
df15bd07
JK
21082011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2109
2110 Code cleanup.
2111 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2112 (amd64_skip_xmm_prologue): ... this new function. Describe its
2113 parameters. No longer use amd64_prologue_line_bug.
2114 * defs.h (producer_is_gcc_ge_4): New declaration.
2115 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2116 (process_full_comp_unit): Update its caller. Remove
2117 amd64_prologue_line_bug initialization.
2118 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2119 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2120
25289eb2
PA
21212011-09-09 Pedro Alves <pedro@codesourcery.com>
2122
2123 * linux-nat.h (enum resume_kind): New.
2124 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2125 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2126 resume_stop on the new lwp.
25289eb2
PA
2127 (add_lwp): Set last_resume_kind as resume_continue by default.
2128 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2129 (resume_lwp): New, factored out from resume_callback. Also check
2130 for pending status in lp->waitstatus.
2131 (resume_callback): Reimplement.
2132 (resume_clear_callback): Set last_resume_kind as resume_stop.
2133 (resume_set_callback): Set last_resume_kind as resume_continue.
2134 (linux_nat_resume, linux_handle_extended_wait): Set
2135 last_resume_kind.
2136 (running_callback): Also check lp->waitstatus for pending events.
2137 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2138 is resume_step.
2139 (stop_and_resume_callback): Don't re-resume if the core wanted the
2140 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2141 using an invalidated pointer.
2142 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2143 SIGSTOPs if the core wanted the LWP to stop.
2144 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2145 wanted the lwp to stop. If the core wanted the lwp to stop, and
2146 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2147 of TARGET_SIGNAL_STOP.
2148 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2149 here. Instead, signal the lwp, and set the last_resume_kind to
2150 resume_stop.
2151
f687d035
PA
21522011-09-09 Pedro Alves <pedro@codesourcery.com>
2153
2154 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2155 -1 (error), if the lwp exits right after attaching.
2156
bc587a6b
DE
21572011-09-08 Doug Evans <dje@google.com>
2158
63d97a20
DE
2159 * py-cmd.c: Some minor formatting fixes.
2160 (gdbpy_parse_command_name): Rename text arg to name, make const.
2161 All callers updated.
2162 * python-internal.h (gdbpy_parse_command_name): Update.
2163
bc587a6b
DE
2164 * cli/cli-decode.c (add_cmd): Add comment.
2165
08711b9a
JK
21662011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2167
2168 PR breakpoints/12435
2169 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2170 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2171 * dwarf2read.c (process_full_comp_unit): Initialize
2172 amd64_prologue_line_bug.
2173 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2174
b2e7f004
JK
21752011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2176
2177 Fix TUI screen corruption.
2178 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2179 batch_flag.
2180
8afd712c
JK
21812011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2182
2183 * findvar.c (read_var_value): Never return NULL, throw an error
2184 instead. Update the function comment. State symbol name in the error
2185 messages.
2186 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2187 read_var_value.
2188 * stack.c (print_frame_args): Likewise.
2189 * valops.c (value_of_variable): Likewise.
2190
b99b5f66
JK
21912011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2192
2193 * stack.c (print_frame_args): New variable except. Wrap
2194 read_var_value and common_val_print into TRY_CATCH.
2195
85bc8cb7
JK
21962011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2197
2198 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2199 caller to value_of_this.
2200 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2201 Twice.
2202 * valops.c (value_of_this): Remove parameter complain and variable ret.
2203 Update function comment. Never return NULL by this code.
2204 (value_of_this_silent): New function.
2205 * value.h (value_of_this): Remove parameter complain.
2206 (value_of_this_silent): New declaration.
2207
ede1849f
YQ
22082011-09-07 Yao Qi <yao@codesourcery.com>
2209
2210 * gdbthread.h (struct thread_info): Remove fields
2211 `stepping_through_solib_after_catch' and
2212 `stepping_through_solib_catchpoints'.
2213 * infrun.c (init_thread_stepping_state): Update.
2214 (process_event_stop_test, currently_stepping): Update.
2215 (currently_stepping_or_nexting_callback): Update.
2216
6aa27652
YQ
22172011-09-07 Yao Qi <yao@codesourcery.com>
2218
2219 * gdbthread.h (struct thread_info): Comment on field
2220 `step_after_step_resume_breakpoint'.
2221
00db5b94
PA
22222011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2223
2224 * remote.c (remote_console_output): Reindent.
2225
861152be
LM
22262011-09-06 Luis Machado <lgustavo@codesourcery.com>
2227
2228 * frame.c (has_stack_frames): Check for currently selected
2229 traceframe.
2230
ab821bc6
PA
22312011-09-06 Pedro Alves <pedro@codesourcery.com>
2232
2233 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2234 (set_async_annotation_level, set_async_prompt, pop_prompt)
2235 (push_prompt, new_async_prompt): Delete declarations.
2236 * top.h (get_prompt, set_prompt): Change prototype.
2237 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2238 declarations.
2239 * top.c (command_loop):
2240 (top_prompt): New global.
2241 (get_prefix, set_prefix, get_suffix, ): Delete.
2242 (get_prompt, set_prompt): Rewrite.
2243 (show_new_async_prompt): Rename to ...
2244 (show_prompt): ... this.
2245 (init_main): Adjust. Don't handle --annotate=2 here.
2246 * event-top.c (new_async_prompt): Delete.
2247 (the_prompts): Delete.
2248 (more_to_come): Make static.
2249 (display_gdb_prompt): Use top_level_prompt() to compute the top
2250 level prompt, and don't notify the before_prompt observers
2251 directly here. Always trick readline into not trying to display
2252 the prompt if sync_execution and displaying the primary prompt.
2253 If displaying a local/secondary prompt, always show it, even if
2254 sync_execution is set.
2255 (change_annotation_level): Delete.
2256 (top_level_prompt): New, based on change_annotation_level.
2257 (push_prompt, pop_prompt): Delete.
2258 (async_disable_stdin): No longer pushes prompt.
2259 (command_line_handler): No longer pushes or pops prompt. If more
2260 input is expected, call display_gdb_prompt with an explicit empty
2261 prompt.
2262 (async_stop_sig): Adjust.
2263 (set_async_annotation_level, set_async_prompt): Delete.
2264 * python/python.c (before_prompt_hook): Adjust.
2265
f1d90504
PA
22662011-09-05 Pedro Alves <pedro@codesourcery.com>
2267
2268 PR cli/13110
2269
2270 * infrun.c (fetch_inferior_event): Check if there's a selected
2271 thread before checking if the selected thread is executing.
2272
0f641c01
PA
22732011-09-05 Pedro Alves <pedro@codesourcery.com>
2274
2275 * inf-loop.c (execute_command): Don't check if the current thread
2276 if running before synchronously waiting for command completion.
2277 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2278 here.
2279 (normal_stop): Call async_enable_stdin here.
2280 * inf-loop.c (inferior_event_handler): Don't call
2281 async_enable_stdin, nor handle "set exec-done-display" here.
2282
30368258 22832011-09-04 Joel Brobecker <brobecker@adacore.com>
2284
2285 GDB 7.3.1 released.
2286
31916278
JB
22872011-09-04 Joel Brobecker <brobecker@adacore.com>
2288
2289 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2290
e8d56f18
JB
22912011-09-04 Joel Brobecker <brobecker@adacore.com>
2292
2293 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2294
5dd05d8c
JK
22952011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2296
2297 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2298
7d8e6458 22992011-09-02 Matt Rice <ratmice@gmail.com>
2300
2301 PR gdb/10720
2302 * event-top.c (cli_command_loop): Replace readline setup with
2303 direct call to display_gdb_prompt.
2304 (display_gdb_prompt): Do not call observer mechanism during
2305 synchronous execution.
2306
84636d28
PA
23072011-09-02 Pedro Alves <pedro@codesourcery.com>
2308
2309 * linux-nat.c (in_pid_list_p): New.
2310 (linux_record_stopped_pid): Delete.
2311 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2312 already attached to the LWP. Return an indication if so.
2313 (linux_nat_filter_event): Adjust.
2314 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2315 returning an indication to ignore this thread.
2316
b4a14fd0
PA
23172011-09-02 Pedro Alves <pedro@codesourcery.com>
2318
2319 * top.c: Include interps.h.
2320 (execute_command): If the target can async, but the interpreter is
2321 in sync mode, synchronously wait for the command to finish before
2322 returning.
2323 (execute_command_to_string): Force the interpreter to sync mode.
2324 * infrun.c: Include interps.h.
2325 (fetch_inferior_event): Don't restore the prompt yet if the
2326 interpreter is in sync mode.
2327 * interps.c (interpreter_async): New global.
2328 * interps.h (interpreter_async): Declare.
2329 * inf-loop.c: Include interps.h.
2330 (inferior_event_handler): Don't print the language change or run
2331 breakpoint commands yet if the interpreter in is sync mode.
2332 * main.c (captured_command_loop): Flip the interpreter to async
2333 mode.
2334 * cli/cli-script.c: Include interps.h.
2335 (execute_user_command, while_command, if_command): Force the
2336 interpreter to sync mode.
2337 * python/python.c: Include interps.h.
2338 (python_command, execute_gdb_command): Force the interpreter to
2339 sync mode.
2340
c709acd1
PA
23412011-09-02 Pedro Alves <pedro@codesourcery.com>
2342
2343 * value.c (show_convenience): Catch errors thrown while printing
2344 each internal variable.
2345 * infrun.c (validate_siginfo_access): New function.
2346 (siginfo_value_read, siginfo_value_write): Call it.
2347
9655e943
JK
23482011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2349
2350 Revert:
2351 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2352 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2353 attribute.
2354
cb457ae2
YQ
23552011-08-29 Yao Qi <yao@codesourcery.com>
2356
2357 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2358 (cmp_name): New.
2359 (enable_break2): Update caller.
2360 * solib-frv.c (bfd_lookup_symbol): Removed.
2361 (cmp_name): New.
2362 (enable_break2): Update caller.
2363 * solib-pa64.c (bfd_lookup_symbol): Removed.
2364 (cmp_name): New.
2365 * solib-svr4.c (bfd_lookup_symbol): Removed.
2366 (cmp_name_and_sec_flags): New.
2367 (enable_break): Update caller.
2368 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2369 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2370 (gdb_bfd_lookup_symbol): New.
2371 * solib.h: Functions declarations.
2372
83d1a36a
YQ
23732011-08-29 Yao Qi <yao@codesourcery.com>
2374
2375 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2376 and solib-dsbt.o.
2377
c04b3e8f
JK
23782011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2379
2380 Fix TUI stepi on code without symbols.
2381 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2382 current PC instead.
2383
cb0fd152
JK
23842011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2385
2386 Code cleanup.
2387 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2388 and the static keyword.
2389 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2390 Make prefix an array.
2391 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2392 * mi/mi-main.c (get_register): Remove stb initialization and the static
2393 keyword.
2394
91174723
JK
23952011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2396
2397 Code cleanup - make mi_opt const.
2398 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2399 opts const.
2400 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2401 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2402 (mi_cmd_env_dir): Likewise.
2403 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2404 (mi_cmd_target_file_put): Likewise.
2405 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2406 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2407 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2408 (mi_valid_noargs): Make opts const.
2409 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2410 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2411 (mi_cmd_data_read_memory): Likewise.
2412 (mi_cmd_data_read_memory_bytes): Likewise.
2413 (mi_cmd_data_write_memory): Likewise.
2414
5068b8e8 24152011-08-26 Matt Rice <ratmice@gmail.com>
2416
2417 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2418 bcache_xmalloc, replace bcache_xmalloc with call to
2419 psymbol_bcache_init for psymbol_cache.
2420 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2421
a4f2ce05
JK
24222011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2423
2424 * inf-loop.c (inferior_event_handler): Add exception_print in
2425 INF_EXEC_COMPLETE.
2426
353d1d73
JK
24272011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2428
2429 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2430 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2431 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2432 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2433 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2434 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2435 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2436 * infrun.c (fetch_inferior_event): Call
2437 make_bpstat_clear_actions_cleanup.
2438 * top.c (execute_command): New variable cleanup_if_error, call
2439 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2440 * utils.c (do_bpstat_clear_actions_cleanup)
2441 (make_bpstat_clear_actions_cleanup): New functions.
2442
3ced3da4
PA
24432011-08-26 Pedro Alves <pedro@codesourcery.com>
2444
2445 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2446 either the parent or the child forks. Rename a couple locals.
2447
a9f4bb21
PA
24482011-08-26 Pedro Alves <pedro@codesourcery.com>
2449
2450 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2451 library call. Avoid reading the `status' local if all waitpid
2452 calls failed.
2453
e5798bef
PA
24542011-08-26 Pedro Alves <pedro@codesourcery.com>
2455
2456 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2457 opening /proc/PID/task always succeeds.
2458
edb2aadf
AR
24592011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2460
2461 * linespec.c (symtab_from_filename): Check for the end of string.
2462
0d932b2f
MK
24632011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2464
2465 PR mi/11912
2466 * varobj.c (cplus_describe_child): Add the keyword
2467 'class' to the output of the method when dealing
2468 with a cast to a base class.
2469
e93ca019
JK
24702011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2471
2472 No functionality change.
2473 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2474 function comment a reference, new variables tp and bs, move here code
2475 from throw_exception.
2476 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2477 describe it in the comment.
2478 * exceptions.c (throw_exception): Remove variable tp, move the code for
2479 bpstat_clear_actions to bpstat_clear_actions.
2480
13da1c97
LM
24812011-08-24 Luis Machado <lgustavo@codesourcery.com>
2482
2483 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2484 * linux-nat.c: Include linux-procfs.h.
2485 (linux_proc_get_tgid): Move to ...
2486 * common/linux-procfs.c: ... here. New file.
2487 * common/linux-procfs.h: New file.
2488 * linux-thread-db.c: Include linux-procfs.h.
2489 * Makefile.in: Update dependencies.
2490 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2491 * config/arm/linux.mh: Likewise.
2492 * config/i386/linux.mh: Likewise.
2493 * config/i386/linux64.mh: Likewise.
2494 * config/ia64/linux.mh: Likewise.
2495 * config/m32r/linux.mh: Likewise.
2496 * config/m68k/linux.mh: Likewise.
2497 * config/mips/linux.mh: Likewise.
2498 * config/pa/linux.mh: Likewise.
2499 * config/pa/linux.mh: Likewise.
2500 * config/powerpc/linux.mh: Likewise.
2501 * config/powerpc/ppc64-linux.mh: Likewise.
2502 * config/powerpc/spu-linux.mh: Likewise.
2503 * config/sparc/linux.mh: Likewise.
2504 * config/sparc/linux64.mh: Likewise.
2505 * config/xtensa/linux.mh: Likewise.
2506
4e5c165d
HZ
25072011-08-24 Hui Zhu <teawater@gmail.com>
2508
2509 * tracepoint.c (cond_string_is_same): New function.
2510 (find_matching_tracepoint): Add condition check
2511 by cond_string_is_same.
2512
6e2f5b22
JK
25132011-08-23 Josh Matthews <josh@joshmatthews.net>
2514
2515 Fix build error in Darwin port.
2516 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2517
abf85f46
JK
25182011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 Code cleanup.
2521 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2522 (command_line_is_silent): New function.
2523 (bpstat_do_actions_1): No longer use commands_left, use
2524 command_line_is_silent for commands.
2525 (bpstat_alloc): Remove clearing of commands_left.
2526 (bpstat_stop_status): Remove initialization of commands_left, use
2527 command_line_is_silent.
2528 * breakpoint.h (struct bpstats): Remove commands_left.
2529
3a93a0c2
KS
25302011-08-18 Keith Seitz <keiths@redhat.com>
2531
2532 PR c++/12266
2533 * cp-name-parser.y (struct demangle_info): Remove unused
2534 member PREV.
2535 (d_grab): Likewise.
2536 (allocate_info): Change return type to struct demangle_info *.
2537 Always allocate a new demangle_info.
2538 Remove unused PREV pointer.
2539 (cp_new_demangle_parse_info): New function.
2540 (cp_demangled_name_parse_free): New function.
2541 (do_demangled_name_parse_free_cleanup): New function.
2542 (make_cleanup_cp_demangled_name_parse_free): New function.
2543 (cp_demangled_name_to_comp): Change return type to
2544 struct demangle_parse_info *.
2545 Allocate a new storage for each call.
2546 (main): Update usage for cp_demangled_name_to_comp
2547 API change.
2548 * cp-support.h (struct demangle_parse_info): New structure.
2549 (cp_demangled_name_to_comp): Update API change for
2550 return type.
2551 (cp_new_demangle_parse_info): Declare.
2552 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2553 (cp_demangled_name_parse_free): Declare.
2554 * cp-support.c (cp_canonicalize_string): Update API
2555 change for cp_demangled_name_to_comp.
2556 (mangled_name_to_comp): Likewise.
2557 Return struct demangle_parse_info, too.
2558 (cp_class_name_from_physname): Update mangled_name_to_comp
2559 API change.
2560 (method_name_from_physname): Likewise.
2561 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2562 (cp_remove_params): Likewise.
2563 * python/py-type.c (typy_legacy_template_argument): Likewise.
2564
2565 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2566 (cp_merge_demangle_parse_infos): Declare.
2567 * cp-support.c (ignore_typedefs): New file global.
2568 (copy_string_to_obstack): New function.
2569 (inspect_type): New function.
2570 (replace_typedefs): New function.
2571 (replace_typedefs_qualified_name): New function.
2572 (cp_canonicalize_string_no_typedefs): New function.
2573 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2574 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2575 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2576 instead of cp_canonicalize_string.
2577 (find_method): Likewise.
2578 (decode_compound): Before looking up the name, call
2579 cp_canonicalize_string_no_typedefs.
2580 (decode_variable): Likewise.
2581
fa3a4f15
PM
25822011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2583 Tom Tromey <tromey@redhat.com>
2584 Matt Rice <ratmice@gmail.com>
2585
2586 * python/lib/gdb/prompt.py: New file.
2587 * python/lib/gdb/command/prompt.py: New file.
2588 * NEWS: Document set extended-prompt and gdb.prompt library
2589
85661b1e
YQ
25902011-08-16 Yao Qi <yao@codesourcery.com>
2591
2592 * tic6x-linux-tdep.c: Move const arrays definition from here...
2593 * tic6x-tdep.c: to here ...
2594
11315641
YQ
25952011-08-14 Yao Qi <yao@codesourcery.com>
2596
2597 * NEWS: New port to Texas Instruments TMS320C6x.
2598
8cd64e00
YQ
25992011-08-14 Andrew Jenner <andrew@codesourcery.com>
2600 Bernd Schmidt <bernds@codesourcery.com>
2601 Yao Qi <yao@codesourcery.com>
2602
2603 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2604 * solib-dsbt.c: New file. Support DSBT shared object.
2605 * tic6x-linux-tdep.c: New file.
2606 * tic6x-tdep.c: New file.
2607 * tic6x-tdep.h: New file.
2608
78d85199
YQ
26092011-08-14 Andrew Stubbs <ams@codesourcery.com>
2610 Yao Qi <yao@codesourcery.com>
2611
2612 * remote.c (PACKET_qXfer_fdpic): New enum value.
2613 (remote_protocol_features): Add qXfer:fdpic:read packet.
2614 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2615 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2616 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2617
224bbe49
YQ
26182011-08-14 Yao Qi <yao@codesourcery.com>
2619
2620 Target description for tic6x.
2621 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2622 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2623 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2624 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2625 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2626 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2627 * features/tic6x-c64xp-linux.xml: New.
2628 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2629 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2630 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2631 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2632 * regformats/tic6x-c64xp.dat,
2633 regformats/tic6x-c62x-linux.dat: Generated.
2634 * regformats/tic6x-c64x-linux.dat,
2635 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2636 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2637 features/tic6x-*.c files.
2638 Add regformats/tic6x-*.dat files.
2639
457e09f0
DE
26402011-08-12 Doug Evans <dje@google.com>
2641
2642 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2643 * python/py-symbol.c (sympy_get_type): New function.
2644 (symbol_object_getset): Add "type".
2645
d20c1c3f
PA
26462011-08-12 Pedro Alves <pedro@codesourcery.com>
2647
2648 PR tui/13073
2649
2650 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2651 empty name.
2652 (tui_show_register_group): Don't store a byte buffer in the data
2653 element's value.
2654 (tui_register_format): Skip registers with an empty name.
2655 (tui_get_register): Store a struct value in the data element's
2656 value field instead of a byte buffer holding the raw register
2657 contents. Account for optimized-out and unavailable registers
2658 when comparing register contents.
2659
9d8fa392
PA
26602011-08-09 Pedro Alves <pedro@codesourcery.com>
2661
2662 * printcmd.c (current_display_number): Update comment.
2663 (disable_current_display_cleanup): Delete.
2664 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2665 catch errors thrown while evaluating and printing the display.
2666
401a70b8
TT
26672011-08-09 Tom Tromey <tromey@redhat.com>
2668
2669 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2670
7f86f058
PA
26712011-08-09 Pedro Alves <pedro@codesourcery.com>
2672
94b71cca 2673 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2674 * maint.c (maintenance_command): Ditto.
2675 * somread.c (som_symtab_read): Ditto.
2676 * solib.c (solib_find, solib_map_sections, update_solib_list)
2677 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2678 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2679 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2680 * solib-irix.c (locate_base, disable_break, enable_break)
2681 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2682 (irix_current_sos, irix_open_symbol_file_object)
2683 (irix_special_symbol_handling): Ditto.
2684 * solib-sunos.c (locate_base, first_link_map_member)
2685 (sunos_current_sos, disable_break, enable_break)
2686 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2687 Ditto.
2688 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2689 (open_symbol_file_object, svr4_current_sos, enable_break)
2690 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2691 Ditto.
2692 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2693 (frv_current_sos, enable_break, frv_special_symbol_handling)
2694 (frv_solib_create_inferior_hook): Ditto.
2695 * solist.h (struct target_so_ops): Extend the comments of the
2696 special_symbol_handling, current_sos and open_symbol_file_object
2697 methods.
2698
5e239b84
PM
26992011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2700
2701 * python/lib/gdb/__init__.py: Auto-load files in command and
2702 function directories.
2703 * python/python.c (finish_python_initialization): Use
2704 os.path.join.
2705 * python/lib/gdb/command/pretty_printers.py: Self register
2706 command.
2707 * NEWS: Document auto-loading.
2708
b6cede78
JK
27092011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2710
2711 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2712 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2713 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2714
29d0bb3d
TT
27152011-08-08 Tom Tromey <tromey@redhat.com>
2716
2717 * breakpoint.c (clean_up_filters): Remove.
2718 (catch_syscall_split_args): Use VEC_cleanup.
2719
2f7fb8e4
JK
27202011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2721
2722 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2723 (main): Uncomment "Demangling error\n".
2724
d6c10e95
PP
27252011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2726
2727 * solib-target.c (segment_attributes): Make them static.
2728 (section_attributes, library_children, library_attributes): Likewise.
2729 (library_list_children, library_list_attributes): Likesise.
2730 (library_list_elements): Likewise.
2731
af6e93b2
PA
27322011-08-05 Pedro Alves <pedro@codesourcery.com>
2733
2734 * exceptions.c (throw_exception): Don't disable the current
2735 display.
2736 * printcmd.c (disable_current_display_cleanup): New function.
2737 (do_one_display): Install a cleanup to disable the current display
2738 if doing the display throws.
2739
6a1b1664
EZ
27402011-08-05 Eli Zaretskii <eliz@gnu.org>
2741
2742 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2743 initialization of the tp_new member to the corresponding
2744 gdbpy_initialize_* function.
2745 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2746 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2747 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2748 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2749 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2750
31a0ae49
JK
27512011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2752
2753 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2754 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2755 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2756 references to current_uiout.
2757
e0dd0826
PA
27582011-08-04 Pedro Alves <pedro@codesourcery.com>
2759
2760 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2761 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2762 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2763 * top.c (gdb_readline_wrapper): Adjust.
2764 * tui/tui-interp.c (tui_command_loop):
2765 (_initialize_tui_interp): Don't install it.
2766
79a45e25
PA
27672011-08-04 Pedro Alves <pedro@codesourcery.com>
2768
2769 * ui-out.h (uiout): Rename to ...
2770 (current_uiout): ... this.
2771 * ui-out.c (uiout): Rename to ...
2772 (current_uiout): ... this.
2773 * ada-lang.c (print_it_exception, print_one_exception)
2774 (print_mention_exception): Adjust.
2775 * breakpoint.c (watchpoint_check): Adjust.
2776 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2777 (default_collect_info, watchpoints_info, print_one_catch_fork)
2778 (print_one_catch_vfork, print_one_catch_syscall)
2779 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2780 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2781 (print_it_watchpoint, print_mention_watchpoint)
2782 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2783 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2784 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2785 (bkpt_print_mention, momentary_bkpt_print_it)
2786 (tracepoint_print_mention, update_static_tracepoint)
2787 (tracepoints_info, save_breakpoints): Adjust.
2788 * cli-out.c (field_separator): Adjust.
2789 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2790 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2791 * frame.c (get_current_frame): Adjust.
2792 * infcmd.c (run_command_1, print_return_value): Adjust.
2793 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2794 * infrun.c (print_end_stepping_range_reason): Adjust.
2795 (print_signal_exited_reason, print_exited_reason): Adjust.
2796 (print_signal_received_reason, print_no_history_reason): Adjust.
2797 * interps.c (interp_set): Adjust.
2798 * osdata.c (info_osdata_command): Adjust.
2799 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2800 * remote-fileio.c (remote_fileio_request): Adjust.
2801 * remote.c (show_remote_cmd): Adjust.
2802 * solib.c (info_sharedlibrary_command): Adjust.
2803 * source.c (print_source_lines_base): Adjust.
2804 * stack.c (print_stack_frame): Adjust.
2805 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2806 * symfile-mem.c (add_vsyscall_page): Adjust.
2807 * symfile.c (load_progress, generic_load)
2808 (print_transfer_performance): Adjust.
2809 * thread.c (info_threads_command, restore_selected_frame)
2810 (thread_command): Adjust.
2811 * top.c (make_cleanup_restore_ui_file): Adjust.
2812 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2813 (print_one_static_tracepoint_marker): Adjust.
2814 * cli/cli-cmds.c (print_disassembly): Adjust.
2815 * cli/cli-decode.c (print_doc_line): Adjust.
2816 * cli/cli-interp.c (safe_execute_command): Adjust.
2817 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2818 (handle_redirections): Adjust.
2819 * cli/cli-script.c (show_user_1): Adjust.
2820 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2821 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2822 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2823 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2824 (mi_cmd_env_dir): Adjust.
2825 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2826 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2827 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2828 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2829 (list_args_or_locals): Adjust.
2830 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2831 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2832 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2833 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2834 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2835 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2836 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2837 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2838 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2839 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2840 (list_available_thread_groups, mi_cmd_list_thread_groups)
2841 (mi_cmd_data_list_register_names)
2842 (mi_cmd_data_list_changed_registers)
2843 (mi_cmd_data_list_register_values, get_register)
2844 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2845 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2846 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2847 (mi_execute_command, mi_load_progress): Adjust.
2848 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2849 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2850 Adjust.
2851 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2852 * tui/tui-interp.c (tui_command_loop): Adjust.
2853 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2854
f9679975
PA
28552011-08-04 Pedro Alves <pedro@codesourcery.com>
2856
2857 * exceptions.c (struct catcher): Remove saved_uiout field.
2858 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2859 no longer save/resvore the global ui_out builder.
2860 (catch_exceptions_with_msg): Save/override/restore the global
2861 ui_out builder manually instead of relying on TRY_CATCH to do it.
2862 (catch_errors): Save/restore the global ui_out builder manually
2863 instead of relying on TRY_CATCH to do it.
2864 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2865 parameter.
2866 (TRY_CATCH): Adjust.
2867 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2868 the global ui_out builder manually instead of relying on TRY_CATCH
2869 to do it.
2870
934709f0
PW
28712011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2872
2873 * breakpoint.c (update_global_location_list): Ensure
2874 invariant 'first loc marked not duplicated and inserted,
2875 following locs marked duplicated/not inserted' is respected
2876 for multiple locations at the same address.
2877 (unduplicated_should_be_inserted) New function.
2878 (swap_insertion) New function.
2879
2421fe6f
JK
28802011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2881
2882 * stack.c (print_frame_arguments_choices): Comment typo fix.
2883
3fbb6ffa
TJB
28842011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2885
2886 Revert:
2887 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2888 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2889 argument. Update callers.
2890
fbe12357
PP
28912011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2892
2893 PR gdb/13045
2894 * doublest.c (convert_doublest_to_floatformat): Pass correct
2895 mantissa length to put_field.
2896
b1d288d3
JK
28972011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2900 exception_print code path.
2901 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2902 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2903 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2904
311b5970
JK
29052011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2906
2907 Code cleanup.
2908 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2909 Remove, merge them into ...
2910 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2911 variable args and its initialization.
2912 (struct print_args_args, print_args_stub): Remove, merge them into
2913 print_frame.
2914 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2915 them into ...
2916 (do_gdb_disassembly): ... here. Remove variable args and its
2917 initialization.
2918 (print_frame): Remove variable args and its initialization, new
2919 variable gdbarch and numargs (from print_args_stub), inline here
2920 print_args_stub with a TRY_CATCH.
2921 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2922 them into ...
2923 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2924 New variable e, remove variable btargs and its initialization.
311b5970 2925
484a26a8
TG
29262011-08-01 Tristan Gingold <gingold@adacore.com>
2927
2928 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2929
c30eee59
TJB
29302011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2931
2932 * breakpoint.c (insert_bp_location): Document return value.
2933 (insert_breakpoint_locations): Fix documentation.
2934 (remove_breakpoints): Add documentation.
2935
f116073b
TJB
29362011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2937
2938 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2939 argument. Update callers.
2940
65aa373f
JK
29412011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2942
2943 * stack.c (print_frame_info): Comment typo fix.
2944
a50242fb
SA
29452011-07-29 Sterling Augustine <saugustine@google.com>
2946
2947 * MAINTAINERS (Write After Approval): Add myself to the list.
2948
267f6504
TT
29492011-07-29 Tom Tromey <tromey@redhat.com>
2950
2951 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2952 (library_list_start_segment): Update.
2953 (library_list_start_section): Update.
2954
00bd41d6
PM
29552011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2956
2957 * varobj.c (value_get_print_value): Move hint check later into the
2958 function. Comment function. Free thevalue before reusing it.
2959
18a46dbe
JK
29602011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2961 Pedro Alves <pedro@codesourcery.com>
2962
2963 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2964 value_one.
2965 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2966 Assert the result kind.
2967 * value.h (value_one): Remove parameter lv.
2968
bb7da2bf
JK
29692011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2970
2971 Fix crash on lval_computed values.
2972 * valops.c (value_zero): Use not_lval for lval_computed.
2973
2d5213f8
TT
29742011-07-27 Tom Tromey <tromey@redhat.com>
2975
2976 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2977 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2978
11081198
JK
29792011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2980
2981 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2982 "ptype" by their typedefs difference.
2983
3c6e0cb3
JK
29842011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2985
2986 * dwarf2expr.c (ctx_no_read_reg): New function.
2987 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2988 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2989 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2990 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2991
523f3620
JK
29922011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2993
2994 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2995 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2996 file.
2997 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2998 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2999 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3000 (ctx_no_get_base_type): Move the functions here.
3001 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3002 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3003 (ctx_no_get_base_type): New declarations.
3004
24d3216f
TT
30052011-07-27 Tom Tromey <tromey@redhat.com>
3006
3007 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3008 entries.
3009 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3010 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3011
5005c8a9
PP
30122011-07-26 Sterling Augustine <saugustine@google.com>
3013
3014 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3015 ULONGEST.
3016 (dump_bfd_file): Likewise.
3017
480a3f21
PW
30182011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3019
3020 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3021 (remote_hw_watchpoint_length_limit): New variable.
3022 (_initialize_remote) add set,show cmds for this new variable.
3023 * gdb.texinfo: document these new commands.
3024 * NEWS: Mention these new commands.
3025
efa80663
PA
30262011-07-26 Pedro Alves <pedro@codesourcery.com>
3027
3028 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3029 true for software watchpoints.
3030
dbdaa232 30312011-07-26 Joel Brobecker <brobecker@adacore.com>
3032
3033 GDB 7.3 released.
3034
cf2c3c16
TT
30352011-07-26 Tom Tromey <tromey@redhat.com>
3036
3037 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3038 * dwarf2read.c (read_indirect_string_at_offset): New function.
3039 (read_indirect_string): Use it.
3040 (dwarf_decode_macro_bytes): New function, taken from
3041 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3042 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3043 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3044 New functions.
3045 (struct dwarf2_per_objfile) <macro>: New field.
3046 (dwarf2_elf_names): Add .debug_macro.
3047 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3048 (dwarf2_locate_sections): Handle new section.
3049 (read_file_scope): Handle DW_AT_GNU_macros.
3050 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3051
1a532630
PP
30522011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3053
3054 * NEWS: Mention dcache configuration.
3055 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3056 (dcache_size, dcache_line_size): New variables.
3057 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3058 (struct dcache_block): Make it expandable.
3059 (struct dcache_struct): New field.
3060 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3061 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3062 (dcache_poke_byte, dcache_print_line): Adjust.
3063 (set_dcache_size, set_dcache_line_size): New functions.
3064 (set_dcache_command, show_dcache_command): New functions.
3065 (_initialize_dcache): Add new commands.
3066
2eff07b3
PP
30672011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3068
3069 * progspace.h (struct program_space): Add solib_add_generation.
3070 * infcmd.c (post_create_inferior): Only call solib_add if not
3071 already done.
3072 * solib.c (solib_add): Increment solib_add_generation.
3073
543305c9
JK
30742011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3075
3076 Fix implicit pointer offsets.
3077 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3078 ptr.OFFSET.
3079
c0a91b2b
TT
30802011-07-25 Tom Tromey <tromey@redhat.com>
3081
3082 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3083 const.
3084 (ada_exception_sal): Make 'ops' const.
3085 (ada_decode_exception_location): Likewise.
3086 (ada_decode_assert_location): Likewise.
3087 (catch_assert_command): Update.
3088 (catch_ada_exception_command): Update.
3089 (create_ada_exception_catchpoint): Make 'ops' const.
3090 * breakpoint.c (set_raw_breakpoint_without_location)
3091 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3092 const.
3093 (create_internal_breakpoint): Update.
3094 (init_raw_breakpoint_without_location): Make 'ops' const.
3095 (init_raw_breakpoint, init_catchpoint)
3096 (create_fork_vfork_event_catchpoint)
3097 (create_syscall_event_catchpoint, init_breakpoint_sal)
3098 (create_breakpoint_sal, create_breakpoints_sal)
3099 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3100 * breakpoint.h (struct breakpoint) <ops>: Now const.
3101 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3102 const.
3103
6cb9b55b
PP
31042011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3105
3106 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3107
d9b3f62e
PA
31082011-07-25 Pedro Alves <pedro@codesourcery.com>
3109
3110 * breakpoint.h (print_recreate_thread): Declare.
3111 (struct breakpoint): Move step_count, pass_count,
3112 number_on_target, static_trace_marker_id,
3113 static_trace_marker_id_idx ...
3114 (struct tracepoint): ... to this new struct.
3115 (get_tracepoint, get_tracepoint_by_number_on_target)
3116 (get_tracepoint_by_number): Change return type to struct
3117 tracepoint pointer.
3118 * breakpoint.c (is_tracepoint_type): New, factored out from
3119 is_tracepoint.
3120 (is_tracepoint): Adjust.
3121 (print_one_breakpoint_location): Cast to struct tracepoint as
3122 necessary, and adjust.
3123 (print_recreate_catch_fork, print_recreate_catch_vfork)
3124 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3125 print_recreate_thread.
3126 (init_breakpoint_sal): New, factored out from
3127 create_breakpoint_sal.
3128 (create_breakpoint_sal): Reimplement.
3129 (create_breakpoint): Allocate a struct tracecepoint if the caller
3130 wanted a tracepoint. Use init_breakpoint_sal and
3131 install_breakpoint.
3132 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3133 (print_recreate_masked_watchpoint)
3134 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3135 (tracepoint_print_one_detail): Adjust.
3136 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3137 Dump the pass count here.
3138 (update_static_tracepoint): Adjust.
3139 (addr_string_to_sals): Adjust.
3140 (create_tracepoint_from_upload): Adjust. Change return type to
3141 struct tracepoint pointer.
3142 (trace_pass_set_count): Change parameter type to struct tracepoint
3143 pointer, and adjust.
3144 (trace_pass_command): Adjust.
3145 (get_tracepoint, get_tracepoint_by_number_on_target)
3146 (get_tracepoint_by_number): Change return type to struct
3147 tracepoint pointer, and adjust.
3148 (print_recreate_thread): New, factored out from save_breakpoints.
3149 (save_breakpoints): Don't print thread and task and passcount
3150 recreation here.
3151 * remote.c (remote_download_tracepoint): Adjust.
3152 * tracepoint.c (trace_actions_command, validate_actionline)
3153 (start_tracing, tfind_1, trace_find_tracepoint_command)
3154 (trace_dump_command): Adjust.
3155 (find_matching_tracepoint): Change return type to struct
3156 tracepoint pointer, and adjust.
3157 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3158 (tfile_trace_find, tfile_fetch_registers): Adjust.
3159 * tracepoint.h (create_tracepoint_from_upload): Change return type
3160 to struct tracepoint pointer.
3161 * ada-lang.c (print_recreate_exception): Call
3162 print_recreate_thread.
3163 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3164
3a5c3e22
PA
31652011-07-25 Pedro Alves <pedro@codesourcery.com>
3166
3167 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3168 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3169 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3170 watchpoint_thread, watchpoint_triggered ...
3171 (struct watchpoint): ... to this new struct.
3172 (is_watchpoint): Declare.
3173 (install_breakpoint): Add new `internal' parameter.
3174 * breakpoint.c (is_watchpoint): Delete declaration.
3175 (set_breakpoint_condition): Handle watchpoints.
3176 (is_watchpoint): Make public.
3177 (watchpoint_in_thread_scope): Change parameter type to struct
3178 watchpoint.
3179 (watchpoint_del_at_next_stop): Change parameter type to struct
3180 watchpoint. Remove assertion. Adjust.
3181 (update_watchpoint): Ditto.
3182 (insert_breakpoints, breakpoint_init_inferior)
3183 (watchpoints_triggered, watchpoint_check)
3184 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3185 (bpstat_stop_status, print_one_breakpoint_location)
3186 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3187 to struct watchpoint as necessary, and adjust.
3188 (install_breakpoint): Add `internal' argument. If true, don't
3189 mention the new breakpoint. Use set_breakpoint_number.
3190 (create_fork_vfork_event_catchpoint)
3191 (create_syscall_event_catchpoint): Adjust.
3192 (dtor_watchpoint): New.
3193 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3194 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3195 (print_it_watchpoint, print_mention_watchpoint)
3196 (print_recreate_watchpoint, insert_masked_watchpoint)
3197 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3198 (print_one_detail_masked_watchpoint)
3199 (print_mention_masked_watchpoint)
3200 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3201 necessary, and adjust.
3202 (watch_command_1): Allocate and initialize a struct watchpoint
3203 instead of a struct breakpoint. Use install_breakpoint.
3204 (catch_exec_command_1): Adjust.
3205 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3206 fields.
3207 (delete_breakpoint, enable_breakpoint_disp)
3208 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3209 as necessary, and adjust.
3210 (initialize_breakpoint_ops): Install dtor_watchpoint as
3211 watchpoints' dtor method.
3212 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3213 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3214 to struct watchpoint as necessary, and adjust.
3215
2060206e
PA
32162011-07-25 Pedro Alves <pedro@codesourcery.com>
3217
3218 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3219 the the base class ops table.
3220 (catch_exception_breakpoint_ops)
3221 (catch_exception_unhandled_breakpoint_ops)
3222 (catch_assert_breakpoint_ops): Don't statically initialize.
3223 (initialize_ada_catchpoint_ops): New.
3224 (_initialize_ada_language): Call it.
3225 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3226 (bkpt_breakpoint_ops): Forward declare.
3227 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3228 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3229 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3230 (masked_watchpoint_breakpoint_ops)
3231 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3232 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3233 base class ops table.
3234 (null_re_set, null_check_status, null_works_in_software_mode)
3235 (null_resources_needed, null_print_one_detail): Delete.
3236 (bkpt_dtor): Rename to ...
3237 (base_breakpoint_dtor): ... this. Make static.
3238 (bkpt_allocate_location): Rename to ...
3239 (base_breakpoint_allocate_location): ... this. Make static.
3240 (base_breakpoint_re_set): New.
3241 (internal_error_pure_virtual_called): New.
3242 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3243 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3244 (base_breakpoint_works_in_software_mode)
3245 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3246 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3247 (base_breakpoint_print_recreate): New functions.
3248 (base_breakpoint_ops): New global.
3249 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3250 (bkpt_breakpoint_hit): Make static.
3251 (bkpt_check_status): Delete.
3252 (bkpt_resources_needed): Make static.
3253 (bkpt_works_in_software_mode): Delete.
3254 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3255 static.
3256 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3257 (momentary_breakpoint_ops): Don't statically initialize.
3258 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3259 Delete.
3260 (tracepoint_insert_location, tracepoint_remove_location)
3261 (tracepoint_check_status, tracepoint_works_in_software_mode)
3262 (tracepoint_print_it): Delete.
3263 (tracepoint_breakpoint_ops): Don't statically initialize.
3264 (initialize_breakpoint_ops): New.
3265 (_initialize_breakpoint): Call it.
3266 * breakpoint.h (null_re_set, null_works_in_software_mode)
3267 (null_resources_needed, null_check_status, null_print_one_detail):
3268 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3269 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3270 (bkpt_check_status, bkpt_resources_needed)
3271 (bkpt_works_in_software_mode, bkpt_print_it)
3272 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3273 Delete declarations.
3274 (initialize_breakpoint_ops): Declare.
3275
001c8c33
PA
32762011-07-25 Pedro Alves <pedro@codesourcery.com>
3277
3278 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3279 (momentary_bkpt_print_it): Simplify.
3280
06edf0c0
PA
32812011-07-25 Pedro Alves <pedro@codesourcery.com>
3282
3283 Split internal, momentary and user breakpoints breakpoint_ops
3284 tables.
3285
3286 * breakpoint.c (internal_breakpoint_ops)
3287 (momentary_breakpoint_ops): Forward declare.
3288 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3289 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3290 (create_overlay_event_breakpoint)
3291 (create_std_terminate_master_breakpoint)
3292 (create_exception_master_breakpoint): Create breakpoints with
3293 internal_breakpoint_ops vtable.
3294 (set_longjmp_breakpoint): Create momentary breakpoints with
3295 momentary_breakpoint_ops vtable, using
3296 momentary_breakpoint_from_master.
3297 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3298 (create_solib_event_breakpoint): Create breakpoints with
3299 internal_breakpoint_ops vtable.
3300 (set_momentary_breakpoint): Create breakpoints with
3301 momentary_breakpoint_ops vtable.
3302 (momentary_breakpoint_from_master): New, factored out from
3303 clone_momentary_breakpoint.
3304 (clone_momentary_breakpoint): Adjust.
3305 (watch_command_1): Create scope breakpoints with
3306 momentary_breakpoint_ops vtable.
3307 (bkpt_re_set): Remove handling of internal and momentary
3308 breakpoints.
3309 (bkpt_print_mention, bkpt_print_recreate): New.
3310 (bkpt_breakpoint_ops): Adjust.
3311 (internal_bkpt_re_set, internal_bkpt_check_status)
3312 (internal_bkpt_print_it, internal_bkpt_print_mention)
3313 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3314 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3315 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3316 (momentary_bkpt_print_recreate): New.
3317 (momentary_breakpoint_ops): New.
3318
348d480f
PA
33192011-07-25 Pedro Alves <pedro@codesourcery.com>
3320
3321 Implement most breakpoint_ops methods for all breakpoint types,
3322 and move the default handlings to the proper callbacks.
3323
3324 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3325 works_in_software_mode method.
3326 (insert_bp_location): Go through breakpoint_ops->insert_location
3327 for software and hardware watchpoints.
3328 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3329 breakpoint_ops.
3330 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3331 for software and hardware watchpoints.
3332 (print_it_typical): Delete.
3333 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3334 method.
3335 (watchpoint_check): Adjust comment.
3336 (bpstat_check_location): Simply always call the breakpoint's
3337 breakpoint_hit method.
3338 (bpstat_stop_status): Always call the breakpoint's check_status
3339 method. Remove special cases for watchpoints and internal event
3340 breakpoints from here (moved to the check_status implementations).
3341 (print_one_breakpoint_location): Assume b->ops is never NULL.
3342 Remove static tracepoint marker id printing from here (moved to
3343 the print_one_detail callback implementation of tracepoints).
3344 (init_bp_location): Assert OPS is never NULL.
3345 (allocate_bp_location): Always call the breakpoint's
3346 allocate_location method, and remove the default code from here.
3347 (free_bp_location): Always call the location's dtor method, and
3348 remove the default code from here.
3349 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3350 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3351 parameter. Pass it down.
3352 (set_raw_breakpoint): Ditto.
3353 (print_it_catch_fork): Adjust to take a bpstat as argument.
3354 (catch_fork_breakpoint_ops): Install methods.
3355 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3356 (catch_vfork_breakpoint_ops): Install methods.
3357 (dtor_catch_syscall): Call the base dtor.
3358 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3359 (catch_syscall_breakpoint_ops): Install methods.
3360 (dtor_catch_exec): Call the base dtor.
3361 (print_it_catch_exec): Adjust to take a bpstat as argument.
3362 (catch_exec_breakpoint_ops): Install methods.
3363 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3364 the breakpoint's resources_needed method, and remove the default
3365 code from here.
3366 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3367 breakpoint_ops.
3368 (clone_momentary_breakpoint): Clone the original's ops.
3369 (mention): Always call the breakpoint's print_mention method, and
3370 remove the default code from here.
3371 (create_breakpoint_sal): Adjust to pass the ops to
3372 set_raw_breakpoint rather than setting it manually.
3373 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3374 ops to set_raw_breakpoint_without_location rather than setting it
3375 manually.
3376 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3377 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3378 (ranged_breakpoint_ops): Install methods.
3379 (break_range_command): Adjust to pass the ops to
3380 set_raw_breakpoint rather than setting it manually.
3381 (re_set_watchpoint, breakpoint_hit_watchpoint)
3382 (check_status_watchpoint, resources_needed_watchpoint)
3383 (works_in_software_mode_watchpoint, print_it_watchpoint)
3384 (print_mention_watchpoint, print_recreate_watchpoint): New
3385 functions.
3386 (watchpoint_breakpoint_ops): Install new methods.
3387 (print_it_masked_watchpoint): New function.
3388 (masked_watchpoint_breakpoint_ops): Install new methods.
3389 (watch_command_1): Adjust to pass the right breakpoint_ops to
3390 set_raw_breakpoint_without_location rather than setting it
3391 manually later. Record the current pspace.
3392 (print_it_exception_catchpoint): Adjust to take a bpstat as
3393 argument.
3394 (gnu_v3_exception_catchpoint_ops): Install new methods.
3395 (say_where): New function.
3396 (null_re_set, null_check_status, null_works_in_software_mode)
3397 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3398 New functions.
3399 (bp_location_ops): New global.
3400 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3401 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3402 (bkpt_check_status, bkpt_resources_needed)
3403 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3404 (bkpt_print_recreate): New functions.
3405 (bkpt_breakpoint_ops): New global.
3406 (tracepoint_re_set, tracepoint_insert_location)
3407 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3408 (tracepoint_check_status, tracepoint_works_in_software_mode)
3409 (tracepoint_print_it, tracepoint_print_one_detail)
3410 (tracepoint_print_mention, tracepoint_print_recreate): New
3411 functions.
3412 (tracepoint_breakpoint_ops): New global.
3413 (delete_breakpoint): Always call the breakpoint's dtor method, and
3414 remove the default handling from here.
3415 (breakpoint_re_set_default): Make static.
3416 (breakpoint_re_set_one): Always call the breakpoints re_set
3417 method, and remove the default handling from here.
3418 (trace_command, ftrace_command, strace_command)
3419 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3420 to create_breakpoint.
3421 (save_breakpoints): Always call the breakpoint's print_recreate
3422 method, and remove the default handling from here.
3423
3424 * ada-lang.c (dtor_exception): Call the base dtor.
3425 (re_set_exception): Call the base method.
3426 (print_it_exception, print_it_catch_exception): Adjust to take a
3427 bpstat as argument.
3428 (catch_exception_breakpoint_ops): Install methods.
3429 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3430 argument.
3431 (catch_exception_unhandled_breakpoint_ops): Install methods.
3432 (print_it_catch_assert): Adjust to take a bpstat as argument.
3433 (catch_assert_breakpoint_ops): Install methods.
3434
3435 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3436 to take a bpstat as argument.
3437 (enum print_stop_action): Add describing comments to each enum
3438 value.
3439 (breakpoint_re_set_default): Delete declaration.
3440 (null_re_set, null_works_in_software_mode, null_resources_needed)
3441 (null_check_status, null_print_one_detail): Declare.
3442 (bkpt_breakpoint_ops): Declare.
3443 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3444 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3445 (bkpt_check_status, bkpt_resources_needed)
3446 (bkpt_works_in_software_mode, bkpt_print_it)
3447 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3448 Declare.
3449
3450 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3451 bkpt_breakpoint_ops.
3452 * python/py-breakpoint.c (bppy_init): Ditto.
3453
be8f8133
PW
34542011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3455
3456 * MAINTAINERS (Write After Approval): Add myself to the list.
3457
3807f613
PP
34582011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3459
3460 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3461
1ced966e
PA
34622011-07-22 Pedro Alves <pedro@codesourcery.com>
3463
3464 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3465 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3466 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3467 adjust.
3468 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3469 (struct i386_debug_reg_state): New.
3470 (i386_init_dregs): New.
3471 (dr_mirror): New.
3472 (i386_cleanup_dregs): Use i386_init_dregs.
3473 (i386_show_dr): Add state parameter and adjust.
3474 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3475 the inferior here.
3476 (i386_remove_aligned_watchpoint): Likewise.
3477 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3478 (i386_update_inferior_debug_regs): New.
3479 (i386_insert_watchpoint): Work on a local mirror of the debug
3480 registers, and only update the inferior on success.
3481 (i386_remove_watchpoint): Ditto.
3482 (i386_region_ok_for_watchpoint): Adjust.
3483 (i386_stopped_data_address): Adjust.
3484 (i386_insert_hw_breakpoint): Adjust.
3485 (i386_remove_hw_breakpoint): Adjust.
3486
3543a589
TT
34872011-07-22 Tom Tromey <tromey@redhat.com>
3488
3489 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3490 from amd64_pseudo_register_read. Change arguments. Call
3491 mark_value_bytes_unavailable when needed.
3492 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3493 set_gdbarch_pseudo_register_read.
3494 * sentinel-frame.c (sentinel_frame_prev_register): Use
3495 regcache_cooked_read_value.
3496 * regcache.h (regcache_cooked_read_value): Declare.
3497 * regcache.c (regcache_cooked_read_value): New function.
3498 (regcache_cooked_read): Call
3499 gdbarch_pseudo_register_read_value if available.
3500 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3501 (i386_pseudo_register_read): Remove.
3502 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3503 i386_pseudo_register_read. Change arguments. Call
3504 mark_value_bytes_unavailable when needed.
3505 (i386_pseudo_register_read_value): New function.
3506 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3507 not set_gdbarch_pseudo_register_read.
3508 * gdbarch.sh (pseudo_register_read_value): New method.
3509 * gdbarch.c, gdbarch.h: Rebuild.
3510 * findvar.c (value_from_register): Call get_frame_register_value.
3511
95298e72
PM
35122011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3513
3514 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3515 get_prefix.
3516 (display_gdb_prompt): Likewise.
3517 (change_annotation_level): Likewise.
3518 (push_prompt): Likewise.
3519 (pop_prompt): Likewise.
3520 (handle_stop_sig): Use get_prompt with a level.
3521 * top.c (command_loop): Use get_prompt with a level.
3522 (set_async_annotation_level): Use set_prompt with a level.
3523 (get_prefix): New function.
3524 (set_prefix): Ditto.
3525 (set_suffix): Ditto.
3526 (get_suffix): Ditto.
3527 (get_prompt): Accept a level argument.
3528 (set_prompt): Accept a level argument. Free old prompts. Set
3529 new_async_prompt if level is 0.
3530 (init_main): Use set_prompt with a level. Do not set
3531 new_async_prompt.
3532 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3533 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3534 Modify set_prompt, get_prompt to account for levels.
3535 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3536 level.
3537 * python/python.c (before_prompt_hook): Use set_prompt.
3538
d26e3629
KY
35392011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3540
3541 * defs.h: Add guard against inclusion in gdbserver.
3542 (struct ptid, ptid_t): Move to common/ptid.h.
3543 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3544 xsnprintf, internal_error): Move to common/common-utils.h.
3545 (nomem): Delete.
3546 * gdb_assert.h: Move into common/ sub-directory.
3547 * gdb_locale.h: Ditto.
3548 * gdb_dirent.h: Ditto.
3549 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3550 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3551 Move into common/ptid.h.
3552 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3553 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3554 Change nomem to malloc_failure.
3555 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3556 * utils.c (nomem): Rename to malloc_failure.
3557 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3558 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3559 (gdb_buildargv): Change nomem to malloc_failure.
3560 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3561 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3562 ptid_is_pid): Move into common/ptid.c.
3563 (initialize_infrun): Delete initialization of null_ptid and
3564 minus_one_ptid.
3565 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3566 linux_common_xfer_osdata.
3567 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3568 common/ptid.c and common/buffer.c.
3569 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3570 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3571 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3572 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3573 rules.
3574 * common/gdb_assert.h: New.
3575 * common/gdb_dirent.h: New.
3576 * common/gdb_locale.h: New.
3577 * common/buffer.c: New.
3578 * common/buffer.h: New.
3579 * common/ptid.c: New.
3580 * common/ptid.h: New.
3581 * common/xml-utils.c: New.
3582 * common/xml-utils.h: New.
3583 * common/common-utils.c: New.
3584 * common/common-utils.h: New.
3585 * common/linux-osdata.c: New.
3586 * common/linux-osdata.h: New.
3587 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3588 * config/arm/linux.mh (NATDEPFILES): Ditto.
3589 * config/i386/linux.mh (NATDEPFILES): Ditto.
3590 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3591 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3592 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3593 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3594 * config/mips/linux.mh (NATDEPFILES): Ditto.
3595 * config/pa/linux.mh (NATDEPFILES): Ditto.
3596 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3597 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3598 * config/s390/s390.mh (NATDEPFILES): Ditto.
3599 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3600 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3601 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3602
edc84990 36032011-07-21 Matt Rice <ratmice@gmail.com>
3604
3605 * NEWS: Add info macros and info definitions commands.
3606
3a7bf607
PM
36072011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3608
3609 * NEWS: Document Python prompt substitution hook.
3610
9b158ba0 36112011-07-18 Matt Rice <ratmice@gmail.com>
3612
3613 PR macros/12999
3614 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3615 * macrotab.c (foreach_macro): Ditto.
3616 (foreach_macro_in_scope): Ditto.
3617 * macrocmd.c (print_macro_callback): New function.
3618 (info_macro_command): Move some code to print_macro_definition.
3619 (print_macro_definition): New function.
3620 (print_one_macro): Add new arguments to callback.
3621 (info_definitions_command): New function.
3622 (info_macros_command): Ditto.
3623 (_initialize_macrocmd): Add info macros and info definitions commands.
3624 * symtab.c (add_macro_name): Add new arguments to callback.
3625
d17b6f81
PM
36262011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3627 Tom Tromey <tromey@redhat.com>
3628
3629 * top.c (set_prompt): Rewrite to free previous prompt, free
3630 asynch_new_prompt and set both on new prompts.
3631 * event-top.c (display_gdb_prompt): Add prompt substitution
3632 logic.
3633 * python/python.c (before_prompt_hook): New function.
3634
1364323a 36352011-07-20 Matt Rice <ratmice@gmail.com>
3636
3637 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3638 arguments to store_unsigned_integer.
3639
8b70b953
TT
36402011-07-20 Tom Tromey <tromey@redhat.com>
3641
6c83ed52
TT
3642 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3643 in some declaration-only cases.
3644
36452011-07-18 Tom Tromey <tromey@redhat.com>
3646
8b70b953
TT
3647 PR symtab/12984:
3648 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3649 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3650 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3651 <debug_type_section>: New field.
3652 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3653 (load_cu): Use appropriate section.
3654 (create_signatured_type_table_from_index): Add 'section'
3655 argument.
3656 (dwarf2_read_index): Only allow a single .debug_types section.
3657 (dw2_get_file_names): Use appropriate section.
3658 (read_type_comp_unit_head): Add 'section' argument.
3659 (create_debug_types_hash_table): Loop over all .debug_types
3660 sections.
3661 (init_cu_die_reader): Use appropriate section.
3662 (process_psymtab_comp_unit, load_partial_comp_unit)
3663 (load_full_comp_unit, read_die_and_children, find_partial_die)
3664 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3665 (lookup_signatured_type_at_offset): Add 'section' argument.
3666 (read_signatured_type_at_offset): Add 'sect' argument.
3667 (read_signatured_type): Use appropriate section.
3668 (set_die_type, get_die_type_at_offset): Update.
3669 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3670 VEC.
3671 (write_psymtabs_to_index): Don't allow index with more than one
3672 .debug_types section.
3673
918dd910
JK
36742011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3675
3676 Fix crash if referenced CU is aged out.
3677 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3678 xfree of block.data.
3679 (indirect_pieced_value): New variable back_to, use to for xfree of
3680 baton.data.
3681 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3682 block.data.
3683 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3684 (load_cu): New function from ...
3685 (dw2_do_instantiate_symtab): ... the code here ...
3686 (process_full_comp_unit): ... and here.
3687 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3688 retval.data.
3689
0e37a63c
JK
36902011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3691
3692 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3693 type.
3694
7e324e48
GB
36952011-07-19 Gary Benson <gbenson@redhat.com>
3696
3697 * infrun.c (struct execution_control_state): New member
3698 stop_func_filled_in.
3699 (clear_stop_func, fill_in_stop_func): New functions.
3700 (handle_inferior_event): Call clear_stop_func rather than
3701 manipulating the execution control state directly.
3702 Call fill_in_stop_func lazily as required rather than
3703 directly calling find_pc_partial_function in all cases.
3704
d48323d8
TT
37052011-07-18 Tom Tromey <tromey@redhat.com>
3706
3707 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3708 checking for variable-sized array.
3709
40591b7d
JCD
37102011-07-18 Jean-Charles Delay <delay@adacore.com>
3711
3712 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3713 of supported languages.
3714 * varobj.c: Add top definitions and basic implementation of the
3715 following callbacks: ada_number_of_children, ada_name_of_variable,
3716 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3717 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3718 (languages): Register Ada-specific callbacks.
3719 (variable_language): Add the Ada case in the language setter switch.
3720
2e424e08
JK
37212011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3722
3723 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3724
9e8b7a03
JK
37252011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3726
3727 Code cleanup.
3728 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3729 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3730 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3731 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3732 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3733 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3734 (struct dwarf_expr_context_funcs): New, move here methods from ...
3735 (struct dwarf_expr_context): ... here. New fields funcs.
3736 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3737 (dwarf_expr_ctx_funcs): New.
3738 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3739 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3740 (needs_frame_ctx_funcs): New.
3741 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3742
2b1260ab
FM
37432011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3744
3745 * MAINTAINERS (Write After Approval): Add myself to the list.
3746
8bd90839
FM
37472011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3748
3749 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3750 that CIE pointer of an FDE really points to a CIE .
3751
953b98d1
HZ
37522011-07-15 Hui Zhu <teawater@gmail.com>
3753
3754 * remote.c (remote_get_trace_status): Add comments.
3755
c8f2448a
JK
37562011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3757
3758 Code cleanup - constify struct lval_funcs.
3759 * dwarf2loc.c (pieced_value_funcs): Make it const.
3760 * infrun.c (siginfo_value_funcs): Likewise.
3761 * opencl-lang.c (opencl_value_funcs): Likewise.
3762 * valops.c (value_assign, value_ind): Make the funcs variable const.
3763 * value.c (struct value): Make location.computed.funcs target const.
3764 Rearrange the comments.
3765 (allocate_computed_value): Make the funcs parameter target const.
3766 (value_computed_funcs): Return the funcs target const.
3767 (value_free, value_copy, set_value_component_location): Make the funcs
3768 variable const.
3769 * value.h (allocate_computed_value): Make the funcs parameter target
3770 const.
3771 (value_computed_funcs): Return the funcs target const.
3772 * windows-tdep.c (tlb_value_funcs): Make it const.
3773
f652de6f
HZ
37742011-07-14 Hui Zhu <teawater@gmail.com>
3775
3776 * remote.c (remote_get_trace_status): Initialize p.
3777
67f41397
JK
37782011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3779
3780 Work around kgdb.
3781 * remote.c (remote_get_trace_status): New variable ex. Put
3782 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3783
d1b66e6d
TT
37842011-07-13 Tom Tromey <tromey@redhat.com>
3785
3786 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3787 value_from_contents for final conversion.
3788
1632a688
JK
37892011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3790
3791 Code cleanup.
3792 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3793 Indent prototypes so they do not get into tags.
3794
a7035dbb
JK
37952011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3796
3797 Code cleanup making also optimized out values lazy.
3798 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3799 allocate_optimized_out_value. Twice.
3800 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3801 * findvar.c (read_var_value): Likewise.
3802 * value.c (allocate_optimized_out_value): New function.
3803 * value.h (allocate_optimized_out_value): New declaration.
3804
d07ed419
JK
38052011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3806
3807 Fix occasional crash of CTRL-C during DWARF read in.
3808 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3809
86d31898
TT
38102011-07-11 Tom Tromey <tromey@redhat.com>
3811
3812 * regcache.c (struct regcache_descr): Fix typo.
3813 * i387-tdep.c (i387_supply_xsave): Fix typo.
3814
2ab95328
TT
38152011-07-11 Tom Tromey <tromey@redhat.com>
3816
3817 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3818 (read_file_scope, read_type_unit_scope): Use it.
3819
04ad99e6
JK
38202011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3821
3822 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3823 `int'.
3824
713389e0
PM
38252011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3826
3827 PR python/12438
3828 * python/python.c: Set gdbpy_should_print_stack default to off.
3829 (set_python): Deprecate maint set python print-stack to
3830 class_deprecate.
3831 (_initialize_python): Deprecate maint set/show python print-stack.
3832 Add new prefix command, python. Add new setting, print-backtrace.
3833 * NEWS: Document set python print-stack. Document default change.
3834
754eadd1
PM
38352011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3836
3837 * python/py-inferior.c (infpy_dealloc): New function.
3838 (inferior_to_inferior_object): Return a new object, or a
3839 new reference to the existing object.
3840 (find_thread_object): Cleanup references to inferior.
3841 (delete_thread_object): Ditto.
3842 * python/py-infthread.c (create_thread_object): Do not increment
3843 inferior reference count.
3844
5e44ecb3
TT
38452011-07-08 Tom Tromey <tromey@redhat.com>
3846
3847 * dwarf2loc.c (locexpr_regname): New function.
3848 (locexpr_describe_location_piece): Use it.
3849 (disassemble_dwarf_expression): Add per_cu argument. Use
3850 locexpr_regname.
3851 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3852 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3853 New cases.
3854 (locexpr_describe_location_1): Add per_cu argument.
3855 (locexpr_describe_location): Update.
3856 (loclist_describe_location): Update.
3857
e0e9434c
TT
38582011-07-08 Tom Tromey <tromey@redhat.com>
3859
3860 * dwarf2expr.c (execute_stack_op): Add QUIT.
3861
26afc0d7
HZ
38622011-07-07 Hui Zhu <teawater@gmail.com>
3863
3864 Revert:
3865 2011-07-06 Hui Zhu <teawater@gmail.com>
3866 * remote.c (remote_start_remote): Add TRY_CATCH for
3867 remote_get_trace_status.
3868 * tracepoint.c (disconnect_tracing): Ditto.
3869
a40a111f
AB
38702011-07-07 Andrew Burgess <aburgess@broadcom.com>
3871
3872 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3873 variables as signed, not unsigned.
3874
e2bd3b15
JB
38752011-07-06 Joel Brobecker <brobecker@adacore.com>
3876
3877 * jit.c (jit_inferior_init): Reformat forward declaration.
3878
e3d961fe 38792011-07-06 Matt Rice <ratmice@gmail.com>
3880
3881 * MAINTAINERS (Write After Approval): Add myself to the list.
3882
0f3428f0
HZ
38832011-07-06 Hui Zhu <teawater@gmail.com>
3884
3885 * remote.c (remote_start_remote): Add TRY_CATCH for
3886 remote_get_trace_status.
3887 * tracepoint.c (disconnect_tracing): Ditto.
3888
fc9f3a69
TT
38892011-07-05 Tom Tromey <tromey@redhat.com>
3890
3891 * symtab.c (operator_chars): Now static.
3892 * linespec.c (operator_chars): Don't declare.
3893
26e519b9
TJB
38942011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3895
3896 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3897
eb2a6f42
TT
38982011-07-05 Tom Tromey <tromey@redhat.com>
3899
3900 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3901 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3902 (TYPE_CPLUS_REALLY_JAVA): New macro.
3903 * dwarf2read.c (process_structure_scope): Set
3904 TYPE_CPLUS_REALLY_JAVA.
3905
21083d0f 39062011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3907
3908 * ada-lang.c: Fix typos.
3909 * amd64-tdep.c: Likewise.
3910 * breakpoint.c: Likewise.
3911 * cli/cli-decode.c: Likewise.
3912 * findcmd.c: Likewise.
3913 * inline-frame.c: Likewise.
3914 * mi/mi-main.c: Likewise.
3915 * minsyms.c: Likewise.
3916 * monitor.c: Likewise.
3917 * monitor.h: Likewise.
3918 * prologue-value.c: Likewise.
3919 * reverse.c: Likewise.
3920 * s390-tdep.c: Likewise.
3921
3b2a0cf2
JB
39222011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3923
3924 * jit.c (jit_inferior_init): Forward declare.
3925 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3926
efae1d92
JB
39272011-07-04 Joel Brobecker <brobecker@adacore.com>
3928
3929 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3930
6040a59d
JB
39312011-07-04 Tristan Gingold <gingold@adacore.com>
3932
3933 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3934 (tcb_fieldno): Add activation_link field.
3935 (get_known_tasks_addr): Moved and rewritten.
3936 (get_tcb_types_info): Set activation_link field.
3937 (read_known_tasks_array): Add parameter. Rewritten.
3938 (read_known_tasks_list): New function.
3939 (read_known_tasks): New function.
3940 (ada_build_task_list): Call read_known_tasks instead of
3941 read_known_tasks_array.
3942 * ravenscar-thread.c: Add first_task_name constant.
3943 (has_ravenscar_runtime): Check for task list too.
3944
cb741e45
JB
39452011-07-04 Tristan Gingold <gingold@adacore.com>
3946
3947 * ada-tasks.c: Renames fieldno to actb_fieldno.
3948 (ada_get_task_number): Indentation.
3949 (get_tcb_types_info): Remove all parameters. Write directly
3950 the globals.
3951 (ptid_from_atcb_common): Adjust.
3952 (read_atcb): Adjust.
3953
7475b06c
TJB
39542011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3955
3956 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3957
15230f37
TJB
39582011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3959
3960 * ui-out.c (ui_out_field_core_addr): Mention that the function
3961 description is in the header file.
3962 * ui-out.h (ui_out_field_core_addr): Document function.
3963
65743aba
TJB
39642011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3965
3966 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3967 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3968
c37a5aab
TJB
39692011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3970
3971 * symtab.c (expand_line_sal): Remove empty line.
3972
59adf69e
TS
39732011-07-04 Thomas Schwinge <thomas@schwinge.name>
3974
3975 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3976 same way as ELFOSABI_NONE.
3977 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3978
e5dd4106
TJB
39792011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3980
3981 * breakpoint.c: Fix typos in comments.
3982 * linespec.c: Likewise.
3983 * symtab.c: Likewise.
3984
d40102a1
JB
39852011-07-04 Joel Brobecker <brobecker@adacore.com>
3986
3987 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3988 section in separate object files.
3989
2f741504
JK
39902011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3991
3992 Fix false GCC warning.
3993 * linespec.c (decode_line_1): Initialize values.
3994
418c7cf7
JK
39952011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3996
3997 * linespec.c (find_method): Accept the function type automatically only
3998 if it was specified with parameter types.
3999
3d50dd94
JK
40002011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4001
4002 Stop on first linespec terminator instead of eating what we can.
4003 * linespec.c (is_linespec_boundary): New function.
4004 (name_end): Remove function.
4005 (keep_name_info): New parameter on_boundary, replace the body.
4006 (decode_line_1): Provide the parameter to keep_name_info.
4007 (decode_compound): Likewise. Drop the trailing java return type
4008 handling. Twice.
4009
dcf9f4ab
JK
40102011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4011
4012 Fall back linespec to minimal symbols.
4013 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4014 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4015 (find_method, symbol_found): Change error to cplusplus_error.
4016
3f542ed1
JK
40172011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4018
bc68c4e5 4019 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4020
900e11f9
JK
40212011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4022 Tom Tromey <tromey@redhat.com>
4023
4024 * dwarf2read.c (check_physname): New variable.
4025 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4026 (show_check_physname): New function.
4027 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4028
2301925d
JB
40292011-07-01 Joel Brobecker <brobecker@adacore.com>
4030
4031 * machoread.c (macho_symfile_read): Delete OBE comment.
4032
38947cca
JB
40332011-07-01 Joel Brobecker <brobecker@adacore.com>
4034
4035 * machoread.c (struct macho_oso_data): Delete.
4036 (current_oso): Delete.
4037 (macho_relocate_common_syms): New function, mostly extracted
4038 out of
4039 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4040 Remove code that sets and unset current_oso.
4041 (macho_symfile_relocate): Delete handling of common symbols,
4042 now moved to macho_relocate_common_syms.
4043
a7aa0d73
JB
40442011-07-01 Joel Brobecker <brobecker@adacore.com>
4045
4046 * darwin-nat.c (darwin_ptrace): Add documentation.
4047 Set errno to zero before calling ptrace. If ptrace returns
4048 -1 and errno is zero, then change then return zero.
4049 (darwin_kill_inferior): Issue a warning instead of triggering
4050 a failed assertion when the PT_KILL ptrace operations returned
4051 nonzero.
4052
5e9bc145
JB
40532011-07-01 Joel Brobecker <brobecker@adacore.com>
4054
4055 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4056 only when inf->private->no_ptrace.
4057
00eb2c4a
JB
40582011-07-01 Joel Brobecker <brobecker@adacore.com>
4059
4060 * ada-lang.c (print_it_exception): Print temporary catchpoints
4061 as "Temporary catchpoint".
4062 (print_mention_exception): Likewise.
4063
127c81bc
TT
40642011-07-01 Tom Tromey <tromey@redhat.com>
4065
4066 * jv-lang.c (java_language_defn): Use java_printchar,
4067 java_printstr.
4068 (java_get_encoding): New function.
4069 (java_emit_char): Use generic_emit_char.
4070 (java_printchar): New function.
4071 (java_printstr): Likewise.
4072
25552254
JB
40732011-07-01 Joel Brobecker <brobecker@adacore.com>
4074
4075 * ada-typeprint.c (print_record_type): If unable to decode
4076 the name of the parent type, use the encoded name.
4077
d2d43431
JB
40782011-07-01 Jean-Charles Delay <delay@adacore.com>
4079
4080 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4081 pointer to constrained packed array type output.
4082 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4083 packed array output.
4084
54ae186f
JB
40852011-07-01 Jean-Charles Delay <delay@adacore.com>
4086
4087 * ada-typeprint.c (print_array_type): removed if condition on show
4088 being negative for bounds printing.
4089
8f17729f
JB
40902011-07-01 Joel Brobecker <brobecker@adacore.com>
4091
4092 * ada-lang.c (ada_identical_enum_types_p): New function.
4093 (symbols_are_identical_enums): New function.
4094 (remove_extra_symbols): Do nothing if NSYMS < 2.
4095 Use symbols_are_identical_enums.
4096
f5aa6869
JB
40972011-07-01 Joel Brobecker <brobecker@adacore.com>
4098
4099 * ada-valprint.c (ada_value_print): Handle typedefs.
4100
8f465ea7
JB
41012011-07-01 Joel Brobecker <brobecker@adacore.com>
4102
4103 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4104
828292f2
JB
41052011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4106
4107 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4108 (decode_constrained_packed_array): Likewise.
4109 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4110
18920c42
JB
41112011-07-01 Joel Brobecker <brobecker@adacore.com>
4112
4113 * ada-exp.y (convert_char_literal): Handle typedef types.
4114
c90092fe
JB
41152011-07-01 Joel Brobecker <brobecker@adacore.com>
4116
4117 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4118
f748fb40
TT
41192011-06-30 Tom Tromey <tromey@redhat.com>
4120
4121 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4122 * valops.c (find_overload_match): Call do_cleanups on early exit
4123 path.
4124 * solib.c (solib_find): Call do_cleanups on early exit path.
4125
3bb47e8b
TT
41262011-06-30 Tom Tromey <tromey@redhat.com>
4127
4128 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4129 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4130 return paths. Defer final do_cleanups until last return.
4131 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4132 early return.
4133
4727bad3
TT
41342011-06-30 Tom Tromey <tromey@redhat.com>
4135
4136 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4137
bb361dbf
AB
41382011-06-30 Andrew Burgess <aburgess@broadcom.com>
4139
4140 * MAINTAINERS (Write After Approval): Add myself to the list.
4141
e0d00bc7
JK
41422011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4143
4144 Disable epilogue unwinders on recent GCCs.
4145 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4146 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4147 * dwarf2read.c (process_full_comp_unit): Initialize
4148 EPILOGUE_UNWIND_VALID.
4149 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4150 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4151 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4152
4632c0d0
JK
41532011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 Code cleanup - reformatting.
4156 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4157 (producer_is_gcc_ge_4): ... here, change the return value.
4158 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4159 interpretation.
4160
32019081
JK
41612011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4162
4163 Fix non-only rename list for Fortran modules import.
4164 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4165 cp_add_using_directive caller.
4166 (cp_add_using_directive): New parameter excludes, describe it. New
4167 variables ix and param. Compare if also excludes match. Allocate NEW
4168 with variable size, initialize EXCLUDES there.
4169 (cp_lookup_symbol_imports): New variable excludep, test
4170 current->EXCLUDES with it.
4171 * cp-support.h: Include vec.h.
4172 (struct using_direct): New field excludes, describe it.
4173 (DEF_VEC_P (const_char_ptr)): New.
4174 (cp_add_using_directive): New parameter excludes.
4175 * defs.h (const_char_ptr): New typedef.
4176 * dwarf2read.c (read_import_statement): New variables child_die,
4177 excludes and cleanups, read in excludes.
4178 (read_namespace): Adjust the cp_add_using_directive caller.
4179
70c622a3
JK
41802011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4181
4182 Code cleanup.
4183 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4184 negative comparisons.
4185
39c4d40a
TT
41862011-06-29 André Pönitz <andre.poenitz@nokia.com>
4187
4188 * mi/mi-main.c (mi_cmd_list_features): Emit
4189 breakpoint-notifications.
4190
3b2b8fea
TT
41912011-06-29 Tom Tromey <tromey@redhat.com>
4192
4193 PR fortran/10036:
4194 * valprint.h (generic_emit_char, generic_printstr): Declare.
4195 * valprint.c (wchar_printable, append_string_as_wide)
4196 (print_wchar): Move from c-lang.c.
4197 (generic_emit_char): New function; mostly taken from c_emit_char.
4198 (generic_printstr): New function; mostly taken from c_printstr.
4199 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4200 represented as arrays.
4201 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4202 type.
4203 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4204 identically to TYPE_CODE_INT.
4205 * f-lang.c (f_get_encoding): New function.
4206 (f_emit_char): Use generic_emit_char.
4207 (f_printchar): Replace comment.
4208 (f_printstr): Use generic_printstr.
4209 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4210 "character" types specially.
4211 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4212 for Fortran.
4213 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4214 Move to valprint.c
4215 (c_emit_char): Call generic_emit_char.
4216 (c_printstr): Call generic_printstr.
4217
168e6d44
GB
42182011-06-29 Gary Benson <gbenson@redhat.com>
4219
4220 * breakpoint.c (bpstat_what): Removed duplicated case.
4221
1c033f8c
TT
42222011-06-28 Tom Tromey <tromey@redhat.com>
4223
4224 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4225
5fe41fbf
TT
42262011-06-27 Tom Tromey <tromey@redhat.com>
4227
4228 * valops.c (find_overload_match): Call do_cleanups before early
4229 return.
4230 * top.c (execute_command): Call do_cleanups before early return.
4231 (command_loop): Likewise.
4232 * stack.c (backtrace_command): Make a null cleanup early. Don't
4233 conditionally call do_cleanups.
4234 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4235 TRY_CATCH.
4236 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4237 so cleanups are always run.
4238 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4239 * findcmd.c (parse_find_args): Call do_cleanups on early return
4240 path.
4241 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4242 Don't conditionally call do_cleanups.
4243 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4244 later.
4245
e26bd57d
EB
42462011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4247
4248 * MAINTAINERS (Write After Approval): Use default email address.
4249
6c3097fc
JB
42502011-06-27 Joel Brobecker <brobecker@adacore.com>
4251
4252 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4253
369c397b
JB
42542011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4255
4256 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4257 saved_regs_mask and copied_regs_mask fields.
4258 (sparc_record_save_insn): New prototype.
4259 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4260 (sparc_record_save_insn): New function.
4261 (sparc_analyze_prologue): Add head comment. Recognize store insns
4262 of call-saved registers. Use OFFSET consistently. Recognize flat
4263 frames and cache their settings.
4264 (sparc32_skip_prologue): Handle flat frames.
4265 (sparc_frame_cache): Add frame_offset to the base address.
4266 (sparc32_frame_cache): Adjust to new frame description.
4267 (sparc32_frame_prev_register): Likewise.
4268 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4269 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4270 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4271 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4272 frame by calling sparc_record_save_insn.
4273 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4274 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4275 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4276
b315ab21
TG
42772011-06-27 Tristan Gingold <gingold@adacore.com>
4278
4279 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4280 field by map_addr and map_len.
4281 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4282 (munmap_section_buffer): Likewise.
4283
ddd49eee
TT
42842011-06-24 Tom Tromey <tromey@redhat.com>
4285
4286 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4287 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4288 * python/python.c (gdbpy_parameter): Make 'arg' const.
4289 (execute_gdb_command): Likewise.
4290 (gdbpy_decode_line): Likewise. Copy it.
4291 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4292 (gdbpy_write): Make 'arg' const.
4293 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4294 const.
4295 (gdbpy_lookup_type): Likewise.
4296 * python/py-prettyprint.c (print_children): Make 'name' const.
4297 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4298 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4299 Py_ssize_t.
4300 * python/py-function.c (fnpy_init): Make 'name' const.
4301 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4302 (gdbpy_string_to_argv): Make 'input' const.
4303 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4304 it.
4305 * gdbtypes.h (lookup_typename): Update.
4306 * gdbtypes.c (lookup_typename): Make 'name' const.
4307 (lookup_struct): Likewise.
4308 (lookup_union): Likewise.
4309 (lookup_enum): Likewise.
4310
5998129b
TT
43112011-06-24 Tom Tromey <tromey@redhat.com>
4312
4313 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4314 gdb_thread_db.h. Move all common/ entries to be together.
4315 (TAGS): Don't depend on DEPFILES.
4316
6e586cc5
YQ
43172011-06-23 Yao Qi <yao@codesourcery.com>
4318
4319 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4320 * remote.c (remote_start_remote): ... here.
4321 * monitor.c (monitor_open): ... here.
4322
86c3c1fc
AB
43232011-06-23 Andrew Burgess <aburgess@broadcom.com>
4324
4325 * gdbtypes.c (append_composite_type_field_aligned): Fix
4326 calculation of bit position based on alignment.
4327
28010a5d
PA
43282011-06-22 Pedro Alves <pedro@codesourcery.com>
4329
4330 * breakpoint.c (bpstat_stop_status): Call the check_status
4331 breakpoint_ops method.
4332 (print_one_breakpoint_location): Also print the condition for Ada
4333 exception catchpoints.
4334 (allocate_bp_location): New, factored out from
4335 allocate_bp_location.
4336 (allocate_bp_location): Adjust. Call the owner breakpoint's
4337 allocate_location method, if there is one.
4338 (free_bp_location): Call the locations's dtor method, if there is
4339 one.
4340 (init_raw_breakpoint_without_location): New breakpoint_ops
4341 parameter. Use it.
4342 (set_raw_breakpoint_without_location): Adjust.
4343 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4344 (set_raw_breakpoint): Adjust.
4345 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4346 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4347 re_set and check_status methods.
4348 (init_catchpoint): Don't memset, initialize thread, addr_string
4349 and enable_state. Pass the ops down to init_raw_breakpoint.
4350 (install_catchpoint): Rename to ...
4351 (install_breakpoint): ... this, and make extern.
4352 (create_fork_vfork_event_catchpoint): Adjust.
4353 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4354 re_set and check_status methods.
4355 (create_syscall_event_catchpoint): Adjust.
4356 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4357 (masked_watchpoint_breakpoint_ops): Install NULL
4358 allocate_location, re_set and check_status methods.
4359 (catch_exec_command_1): Adjust.
4360 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4361 re_set and check_status methods.
4362 (create_ada_exception_breakpoint): Rename to ...
4363 (init_ada_exception_breakpoint): ... this. Add a struct
4364 breakpoint parameter, and delete the exp_string, cond_string and
4365 cond parameters. Use init_raw_breakpoint, and don't install or
4366 mention the breakpoint yet. Don't clear breakpoint fields that
4367 init_raw_breakpoint already clears.
4368 (re_set_breakpoint): Delete, split into ...
4369 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4370 functions.
4371 (breakpoint_re_set_one): Call the breakpoint's
4372 breakpoint_ops->re_set implementation, if there's one. Adjust.
4373 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4374 (struct bp_location_ops): New type.
4375 (struct bp_location): New field `ops'.
4376 (struct breakpoint_ops): New `allocate_location', `re_set' and
4377 `check_status' fields. Make `breakpoint_hit''s description match
4378 reality.
4379 (init_bp_location): Declare.
4380 (breakpoint_re_set_default): Declare.
4381 (create_ada_exception_breakpoint): Rename to ...
4382 (init_ada_exception_breakpoint): ... this. Add a struct
4383 breakpoint parameter, and delete the exp_string, cond_string and
4384 cond parameters.
4385 (install_breakpoint): Declare.
4386 * ada-lang.c: Include exceptions.h.
4387 <Ada exceptions description>: Update.
4388 (struct ada_catchpoint_location): New type.
4389 (ada_catchpoint_location_dtor): New function.
4390 (ada_catchpoint_location_ops): New global.
4391 (ada_catchpoint): New type.
4392 (create_excep_cond_exprs): New function.
4393 (dtor_exception, allocate_location_exception, re_set_exception)
4394 (should_stop_exception, check_status_exception): New functions.
4395 (print_one_exception, print_mention_exception)
4396 (print_recreate_exception): Adjust.
4397 (dtor_catch_exception, allocate_location_catch_exception)
4398 (re_set_catch_exception, check_status_catch_exception): New
4399 functions.
4400 (catch_exception_breakpoint_ops): Install them.
4401 (dtor_catch_exception_unhandled)
4402 (allocate_location_catch_exception_unhandled)
4403 (re_set_catch_exception_unhandled)
4404 (check_status_catch_exception_unhandled): New functions.
4405 (catch_exception_unhandled_breakpoint_ops): Install them.
4406 (dtor_catch_assert, allocate_location_catch_assert)
4407 (re_set_catch_assert, check_status_catch_assert): New functions.
4408 (catch_assert_breakpoint_ops): Install them.
4409 (ada_exception_catchpoint_p): Delete.
4410 (catch_ada_exception_command_split)
4411 (ada_exception_catchpoint_cond_string): Rename exp_string
4412 parameter to excep_string. Adjust.
4413 (ada_parse_catchpoint_condition): Delete.
4414 (ada_exception_sal): Rename the exp_string parameter to
4415 excep_string. Delete the cond_string and cond parameters.
4416 Adjust.
4417 (ada_decode_exception_location): Rename the exp_string parameter
4418 to excep_string. Delete the cond_string and cond parameters.
4419 Adjust.
4420 (create_ada_exception_catchpoint): New function.
4421 (catch_ada_exception_command, ada_decode_assert_location)
4422 (catch_assert_command): Adjust.
4423 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4424
9ac4176b
PA
44252011-06-22 Pedro Alves <pedro@codesourcery.com>
4426
4427 * ada-lang.c: Include arch-utils.h.
4428 (ada_decode_exception_location): Make static.
4429 (catch_ada_exception_command): Moved here from breakpoint.c.
4430 (ada_decode_assert_location): Make static.
4431 (catch_assert_command): Moved here from breakpoint.c.
4432 (_initialize_ada_lang): Install the exception and assert
4433 catchpoint commands here.
4434 * ada-lang.h (ada_decode_exception_location)
4435 (ada_decode_assert_location): Delete declarations.
4436 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4437 breakpoint.h.
4438 (create_ada_exception_breakpoint): Make extern.
4439 (catch_ada_exception_command, catch_assert_command): Moved to
4440 ada-lang.c.
4441 (add_catch_command): Make extern.
4442 (_initilize_breakpoint): Don't install the exception and assert
4443 catchpoint commands here.
4444 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4445 breakpoint.c
4446 (add_catch_command, create_ada_exception_breakpoint): Declare.
4447
c56053d2
PA
44482011-06-22 Pedro Alves <pedro@codesourcery.com>
4449
4450 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4451 the breakpoint to the breakpoint chain here.
4452 (set_raw_breakpoint_without_location): Add the breakpoint to the
4453 breakpoint chain here.
4454 (init_raw_breakpoint): Adjust comments.
4455 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4456 here.
4457 (init_catchpoint): Don't set the catchpoint's breakpoint number
4458 here.
4459 (install_catchpoint): New function.
4460 (create_fork_vfork_event_catchpoint)
4461 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4462 use install_catchpoint.
4463
d2f3fc74
PA
44642011-06-22 Pedro Alves <pedro@codesourcery.com>
4465
4466 * breakpoint.c (create_catchpoint_without_mention)
4467 (create_catchpoint): Delete.
4468
b4d90040
PA
44692011-06-22 Pedro Alves <pedro@codesourcery.com>
4470
4471 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4472 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4473 reference to exec_pathname.
4474 (struct exec_catchpoint): New type.
4475 (dtor_catch_exec): New function.
4476 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4477 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4478 (catch_exec_command_1): Adjust to use init_catchpoint.
4479 (delete_breakpoint): Remove reference to exec_pathname.
4480
be5c67c1
PA
44812011-06-22 Pedro Alves <pedro@codesourcery.com>
4482
4483 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4484 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4485 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4486 reference to syscalls_to_be_caught.
4487 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4488 NULL `dtor'.
4489 (struct syscall_catchpoint): New type.
4490 (dtor_catch_syscall): New function.
4491 (insert_catch_syscall, remove_catch_syscall)
4492 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4493 (print_recreate_catch_syscall): Adjust.
4494 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4495 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4496 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4497 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4498 (masked_watchpoint_breakpoint_ops)
4499 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4500 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4501 there is one. Remove references to syscalls_to_be_caught.
4502 (catching_syscall_number): Adjust.
4503 * ada-lang.c (catch_exception_breakpoint_ops)
4504 (catch_exception_unhandled_breakpoint_ops)
4505 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4506
e29a4733
PA
45072011-06-22 Pedro Alves <pedro@codesourcery.com>
4508
4509 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4510 field.
4511 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4512 reference to forked_inferior_pid.
4513 (struct fork_catchpoint): New type.
4514 (breakpoint_hit_catch_fork, print_it_catch_fork)
4515 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4516 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4517 (create_fork_vfork_event_catchpoint): Adjust to use
4518 init_catchpoint.
4519
346774a9
PA
45202011-06-22 Pedro Alves <pedro@codesourcery.com>
4521
4522 * breakpoint.c (add_to_breakpoint_chain)
4523 (init_raw_breakpoint_without_location): New functions, factored
4524 out from ...
4525 (set_raw_breakpoint_without_location): ... this one.
4526 (init_raw_breakpoint): New function, factored out from
4527 set_raw_breakpoint and adjusted to use
4528 init_raw_breakpoint_without_location.
4529 (set_raw_breakpoint): Adjust.
4530 (init_catchpoint): New function, factored out from
4531 create_catchpoint_without_mention and adjusted to use
4532 init_raw_breakpoint.
4533 (create_catchpoint_without_mention): Adjust.
4534
c38c4bc5
TT
45352011-06-22 Tom Tromey <tromey@redhat.com>
4536
4537 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4538 argument of 0 specially.
4539
b138ce37
YQ
45402011-06-22 Yao Qi <yao@codesourcery.com>
4541
4542 * infrun.c (handle_inferior_event): Remove write-only local variable
4543 `sw_single_step_trap_p'.
4544
03de6823
TT
45452011-06-20 Tom Tromey <tromey@redhat.com>
4546
4547 * symtab.c (lookup_language_this): End loop if block is NULL.
4548
66a17cb6
TT
45492011-06-17 Tom Tromey <tromey@redhat.com>
4550
4551 * valops.c (value_of_this): Use lookup_language_this.
4552 * symtab.h (lookup_language_this): Declare.
4553 * symtab.c (lookup_language_this): New function.
4554 (lookup_symbol_aux): Use lookup_language_this.
4555 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4556
7518bff5
TT
45572011-06-17 Tom Tromey <tromey@redhat.com>
4558
4559 * value.h (value_of_this): Update.
4560 (value_of_local): Remove.
4561 * valops.c (value_of_this): Rename from value_of_local. Change
4562 parameters.
4563 * p-exp.y (exp): Update.
4564 (variable): Likewise.
4565 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4566
aee28ec6
TT
45672011-06-17 Tom Tromey <tromey@redhat.com>
4568
4569 * valops.c (value_of_local): Complain if NAME is NULL.
4570 * std-operator.def (OP_OBJC_SELF): Remove.
4571 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4572 * objc-exp.y (name_not_typename): Use OP_THIS.
4573 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4574 name for "this".
4575 <OP_OBJC_SELF>: Remove.
4576 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4577
eed8f803
TG
45782011-06-16 Tristan Gingold <gingold@adacore.com>
4579
4580 * python/py-events.h (gdb_py_events): Make it extern.
4581 * python/py-evtregistry.c (gdb_py_events): Declare.
4582
864ac8a7
HZ
45832011-06-16 Hui Zhu <teawater@gmail.com>
4584
4585 * remote.c (remote_trace_set_readonly_regions): Add check for
4586 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4587 output warning.
4588
ef7e8358
UW
45892011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4590
4591 * arm-linux-tdep.c: Include "auxv.h".
4592 (AT_HWCAP): Define.
4593 (ARM_LINUX_SIZEOF_VFP): Define.
4594 (arm_linux_supply_vfp): New function.
4595 (arm_linux_collect_vfp): Likewise.
4596 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4597 (arm_linux_fpa_regset_sections): New variable.
4598 (arm_linux_vfp_regset_sections): Likewise.
4599 (arm_linux_core_read_description): New function.
4600 (arm_linux_init_abi): Install arm_linux_core_read_description and
4601 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4602 appropriate for the architecture.
4603 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4604 (tdesc_arm_with_m): Declare.
4605 (tdesc_arm_with_iwmmxt): Likewise.
4606 (tdesc_arm_with_vfpv2): Likewise.
4607 (tdesc_arm_with_vfpv3): Likewise.
4608 (tdesc_arm_with_neon): Likewise.
4609 * arm-linux-nat.c: Move features/*.c includes ...
4610 * arm-tdep.c: ... here.
4611 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4612 target description data structures ...
4613 * arm-tdep.c (_initialize_arm_tdep): ... here.
4614 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4615 HWCAP_VFPv3D16): Move definitions ...
4616 * arm-linux-tdep.h: ... here.
4617
c2fa21f1
HZ
46182011-06-15 Hui Zhu <teawater@gmail.com>
4619
4620 * remote.c (remote_trace_set_readonly_regions): Add a check for
4621 target_buf_size.
4622
dd707e8e
TT
46232011-06-14 Tom Tromey <tromey@redhat.com>
4624
4625 * coffread.c (coffread_objfile): Rename from current_objfile.
4626 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4627 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4628
86cc0029
TT
46292011-06-14 Tom Tromey <tromey@redhat.com>
4630
4631 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4632 (class_symtab): Remove.
4633 (jv_dynamics_progspace_key): New global.
4634 (jv_per_objfile_free): Reset program space data. Update assert.
4635 Don't clear globals.
4636 (get_dynamics_objfile): Use and set program space data.
4637 (get_java_class_symtab): Use get_dynamics_objfile.
4638 (add_class_symbol): Likewise.
4639 (java_link_class_type): Likewise.
4640 (java_object_type, jv_clear_object_type, set_java_object_type):
4641 Remove.
4642 (get_java_object_type): Update. Don't cache result.
4643 (is_object_type): Don't call set_java_object_type.
4644 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4645 initialize jv_dynamics_progspace_key.
4646
91a81f69
TT
46472011-06-14 Tom Tromey <tromey@redhat.com>
4648
4649 * symtab.h (current_objfile): Don't declare.
4650 * objfiles.h (current_objfile): Don't declare.
4651 * objfiles.c (current_objfile): Remove.
4652 * mdebugread.c (current_objfile): New file-scope global.
4653 * dbxread.c (current_objfile): New file-scope global.
4654 * coffread.c (current_objfile): New file-scope global.
4655
dc7eb48e
PA
46562011-06-13 Pedro Alves <pedro@codesourcery.com>
4657
4658 * top.h (line): Rename to ...
4659 (saved_command_line): ... this.
4660 (linesize): Rename to ...
4661 (saved_command_line_size): ... this.
4662 * top.c (line): Rename to ...
4663 (saved_command_line): ... this.
4664 (linesize): Rename to ...
4665 (saved_command_line_size): ... this.
4666 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4667 * event-top.c (command_line_handler): Adjust.
4668 * main.c (captured_main): Adjust.
4669
0d6c2135
MK
46702011-06-12 Mark Kettenis <kettenis@gnu.org>
4671
4672 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4673 get_frame_func instead of get_frame_pc to determine the code
4674 address used to construct the frame ID.
4675 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4676 (i386_epilogue_frame_this_id): Likewise.
4677 (i386_epilogue_frame_prev_register): New function.
4678 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4679 (i386_stack_tramp_frame_sniffer): Fix coding style.
4680 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4681 (i386_gdbarch_init): Fix comments.
4682
8bbdd3f4
MK
46832011-06-12 Mark Kettenis <kettenis@gnu.org>
4684
4685 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4686 instruction when walking back through the instruction stream.
4687
533a737e
JK
46882011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4689
4690 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4691 fullname parameters order.
4692
44b13c5a
JK
46932011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4694
4695 Code cleanup.
4696 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4697 for fun.
4698 * psymtab.c (map_symbol_filenames_psymtab)
4699 (map_partial_symbol_filenames): Likewise.
4700 * psymtab.h: Include symfile.h.
4701 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4702 * symfile.h (symbol_filename_ftype): New.
4703 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4704 map_symbol_filenames, clarify more the naming in comment.
4705
0b5574da
DE
47062011-06-07 Doug Evans <dje@google.com>
4707
4708 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4709 Look for ../../gdb, for fullname.exp.
0b5574da 4710
5be4dfca
JK
47112011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4712 Pedro Alves <pedro@codesourcery.com>
4713
4714 * cli/cli-cmds.c (shell_escape): Use waitpid.
4715 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4716
316a8b21
TG
47172011-06-07 Tristan Gingold <gingold@adacore.com>
4718
4719 * xcoffread.c (dwarf2_xcoff_names): New variable.
4720 (aix_process_linenos): Add a guard.
4721 (xcoff_symfile_finish): Free dwarf2.
4722 (xcoff_initial_scan): Add dwarf2 support.
4723
3dd5b83d
PA
47242011-06-06 Pedro Alves <pedro@codesourcery.com>
4725
4726 * infcall.c (run_inferior_call): Don't mask async. Instead force
4727 a synchronous wait, if the target can async.
4728
4729 * target.h (struct target_ops): Delete to_async_mask.
4730 (target_async_mask): Delete.
4731 * target.c (update_current_target): Delete references to to_async_mask.
4732 * linux-nat.c (linux_nat_async_mask_value): Delete.
4733 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4734 to linux_nat_async_mask_value.
4735 (linux_nat_async_mask): Delete.
4736 (linux_nat_async, linux_nat_close): Remove references to
4737 linux_nat_async_mask_value.
4738 * record.c (record_async_mask_value): Delete.
4739 (record_async): Remove references to record_async_mask_value.
4740 (record_async_mask): Delete.
4741 (record_can_async_p, record_is_async_p): Remove references to
4742 record_async_mask_value.
4743 (init_record_ops, init_record_core_ops): Remove references to
4744 record_async_mask.
4745 * remote.c (remote_async_mask_value): Delete.
4746 (init_remote_ops): Remove reference to remote_async_mask.
4747 (remote_can_async_p, remote_is_async_p): Remove references to
4748 remote_async_mask_value.
4749 (remote_async): Remove references to remote_async_mask_value.
4750 (remote_async_mask): Delete.
4751
4752 * infrun.c (fetch_inferior_event): Don't claim registers changed
4753 if the current thread is already not executing.
4754
64b9b334
JB
47552011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4756
4757 From Stephen Kitt <steve@sk2.org>
4758 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4759 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4760
325663dc
JB
47612011-06-03 Joel Brobecker <brobecker@adacore.com>
4762
4763 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4764 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4765
8cf64490
TT
47662011-06-03 Tom Tromey <tromey@redhat.com>
4767
4768 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4769 code fields.
4770 * python/py-exitedevent.c (create_exited_event_object): Change
4771 type of 'exit_code'. Optionally add exit_code attribute.
4772 (emit_exited_event): Change type of 'exit_code'.
4773 * python/py-event.h (emit_exited_event): Update.
4774 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4775 * infrun.c (handle_inferior_event): Set exit code fields on
4776 inferior.
4777 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4778 fields.
4779 * inferior.c (exit_inferior_1): Initialize new fields.
4780
8ddd9a20
TT
47812011-06-03 Tom Tromey <tromey@redhat.com>
4782
4783 * dwarf2expr.c (get_signed_type): New function.
4784 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4785
8dfd1e6d
KS
47862011-06-02 Keith Seitz <keiths@redhat.com>
4787
4788 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4789
65fdb766
PA
47902011-06-02 Pedro Alves <pedro@codesourcery.com>
4791
4792 * top.h (simplified_command_loop): Delete declaration.
4793
f4b8c29b
MF
47942011-06-01 Mike Frysinger <vapier@gentoo.org>
4795
4796 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4797 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4798
1706c199
YQ
47992011-06-01 Yao Qi <yao@codesourcery.com>
4800
4801 * objfiles.h (obj_section_addr): Update reference to objfile from
4802 `abfd' to `obfd'.
4803 (obj_section_endaddr): Likewise.
4804
d19cd713 48052011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4806
4807 * MAINTAINERS: Update my email address and affiliation. Also
4808 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4809
e8eb7bc5
KS
48102010-05-31 Keith Seitz <keiths@redhat.com>
4811
4812 PR c++/12750
4813 * linespec.c (get_search_block): New function.
4814 (find_methods): Add FILE_SYMTATB parameter and use it and
4815 get_search_block to pass an appropriate block to
4816 lookup_symbol_in_namespace.
4817 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4818 Check if *ARGPTR starts with a filename first.
4819 If it does, call locate_first_half again to locate the next
4820 "first half" of the linespec.
4821 Pass FILE_SYMTATB to decode_objc and decode_compound.
4822 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4823 (locate_first_half): Stop on the first colon seen.
4824 (decode_compound): Add FILE_SYMTAB parameter.
4825 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4826 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4827 get_search_block with lookup_symbol.
4828 (find_method): Add FILE_SYMTAB parameter and pass it to
4829 find_methods.
4830 (decode_objc): Use get_search_block.
4831
2b1dbab0
KS
48322010-05-31 Keith Seitz <keiths@redhat.com>
4833
4834 PR symtab/12704
4835 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4836 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4837 and CP_ANONYMOUS_NAMESPACE_LEN.
4838 (cp_is_anonymous): Likewise.
4839 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4840 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4841 * dwarf2read.c (namespace_name): Likewise.
4842 (fixup_partial_die): Likewise.
4843 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4844 seen in the input, keep it.
4845
6d549500
PA
48462011-05-30 Pedro Alves <pedro@codesourcery.com>
4847
4848 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4849 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4850 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4851 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4852 * remote.c (_initialize_remote): Register
4853 async_remote_interrupt_twice directly as
4854 sigint_remote_twice_token event.
4855
395bff70
PA
48562011-05-30 Pedro Alves <pedro@codesourcery.com>
4857
4858 * target.h (enum inferior_event_type): Delete INF_ERROR.
4859 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4860
97224164
PA
48612011-05-30 Pedro Alves <pedro@codesourcery.com>
4862
4863 * interps.c (interp_set): Don't cancel continuations.
4864
07e78767
JK
48652011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4866
4867 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4868
fa4cd53f
PA
48692011-05-30 Pedro Alves <pedro@codesourcery.com>
4870
4871 * continuations.h (continuation_ftype): Add `err' parameter.
4872 Document parameters.
4873 (do_all_continuations, do_all_continuations_thread)
4874 (do_all_intermediate_continuations)
4875 (do_all_intermediate_continuations_thread)
4876 (do_all_inferior_continuations): Add `err' parameter.
4877 * continuations.c (do_my_continuations_1, do_my_continuations)
4878 (do_all_inferior_continuations, do_all_continuations_ptid)
4879 (do_all_continuations_thread_callback)
4880 (do_all_continuations_thread, do_all_continuations)
4881 (do_all_intermediate_continuations_thread_callback)
4882 (do_all_intermediate_continuations_thread)
4883 (do_all_intermediate_continuations): Add `err' parameter, and pass
4884 it down all the way to the continuations proper.
4885 * inf-loop.c (inferior_event_handler): If fetching an inferior
4886 event throws an error, don't pop the target, and still call the
4887 continuations, but with `err' set. Adjust all other continuation
4888 calls.
4889 * breakpoint.c (until_break_command_continuation): Add `err'
4890 parameter.
4891 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4892 issue another step if `err' is set.
4893 (struct until_next_continuation_args): New.
4894 (until_next_continuation): Add `err' parameter. Adjust.
4895 (until_next_command): Adjust.
4896 (struct finish_command_continuation_args): Add `thread' field.
4897 (finish_command_continuation): Add `err' parameter. Handle it.
4898 (finish_forward): Adjust.
4899 (attach_command_continuation): Add `err' parameter. Handle it.
4900 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4901 cancel the continuations.
4902 * interps.c (interp_set): Adjust to cancel the continuations.
4903 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4904 continuations rather than discarding.
4905 (free_thread): Don't clear thread inferior resources here.
4906 (delete_thread_1): Do it here instead. And do it before removing
4907 the thread from the threads list. Tag the thread as exited before
4908 clearing thread inferior resources.
4909
c2949be0
JB
49102011-05-30 Joel Brobecker <brobecker@adacore.com>
4911
4912 * infcall.c (call_function_by_hand): Rephrase error message.
4913
619cebe8
PA
49142011-05-27 Pedro Alves <pedro@codesourcery.com>
4915
4916 * defs.h (struct thread_info, struct inferior): Delete forward
4917 declarations.
4918 * breakpoint.h (struct thread_info): New forward declaration.
4919 * observer.sh (struct inferior): New forward declaration.
4920 * python/python-internal.h (struct inferior): New forward
4921 declaration.
4922
be34f849
PA
49232011-05-27 Pedro Alves <pedro@codesourcery.com>
4924
4925 * defs.h (struct continuation, continuation_ftype)
4926 (continuation_free_arg_ftype, add_continuation)
4927 (do_all_continuations, do_all_continuations_thread)
4928 (discard_all_continuations, discard_all_continuations_thread)
4929 (add_intermediate_continuation, do_all_intermediate_continuations)
4930 (do_all_intermediate_continuations_thread)
4931 (discard_all_intermediate_continuations)
4932 (discard_all_intermediate_continuations_thread)
4933 (add_inferior_continuation, do_all_inferior_continuations)
4934 (discard_all_inferior_continuations): Move to ...
4935 * continuations.h: ... this new file.
4936 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4937 infcmd.c, inferior.c, infrun.c, interps.c: Include
4938 continuations.h.
4939
432b4d03
JK
49402011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4941 Doug Evans <dje@google.com>
4942
4943 Fix PR 10970, PR 12702.
4944 * linux-nat.c (linux_lwp_is_zombie): New function.
4945 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4946 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4947
b0f260d6
PA
49482011-05-27 Pedro Alves <pedro@codesourcery.com>
4949
4950 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4951 typedefs.
4952 (add_continuation, add_intermediate_continuation)
4953 (add_inferior_continuation): Use them.
4954 * continuations.c (struct continuation): Use them.
4955 (make_continuation_ftype): Delete.
4956 (make_continuation, add_inferior_continuation, add_continuation)
4957 (add_intermediate_continuation): Use continuation_ftype and
4958 continuation_free_arg_ftype. Rename parameters to shorter names.
4959
af1e9a32
PA
49602011-05-27 Pedro Alves <pedro@codesourcery.com>
4961
4962 * continuations.c (make_continuation): Make it return void.
4963 (do_my_continuations): Rename to ...
4964 (do_my_continuations_1): ... this. Remove old_chain parameter and
4965 adjust.
4966 (do_my_continuations): New.
4967 (discard_my_continuations): Rename to ...
4968 (discard_my_continuations_1): ... this. Remove old_chain
4969 parameter and adjust.
4970 (discard_my_continuations): New.
4971 (add_inferior_continuation): Simplify.
4972 (do_all_inferior_continuations): Reimplement on top
4973 do_my_continuations.
4974 (discard_all_inferior_continuations): Simplify.
4975 (add_continuation): Simplify.
4976 (do_all_continuations_ptid): Simplify.
4977 (discard_all_continuations_thread_callback): Simplify.
4978 (add_intermediate_continuation): Simplify.
4979 (discard_all_intermediate_continuations_thread_callback):
4980 Simplify.
4981
50c0c017
PA
49822011-05-27 Pedro Alves <pedro@codesourcery.com>
4983
4984 * utils.c (struct continuation, add_continuation)
4985 (add_inferior_continuation)
4986 (do_all_inferior_continuations, discard_all_inferior_continuations)
4987 (restore_thread_cleanup, do_all_continuations_ptid)
4988 (do_all_continuations_thread_callback)
4989 (do_all_continuations_thread, do_all_continuations)
4990 (discard_all_continuations_thread_callback)
4991 (discard_all_continuations_thread, discard_all_continuations)
4992 (add_intermediate_continuation)
4993 (do_all_intermediate_continuations_thread_callback)
4994 (do_all_intermediate_continuations_thread)
4995 (do_all_intermediate_continuations)
4996 (discard_all_intermediate_continuations_thread_callback)
4997 (discard_all_intermediate_continuations_thread)
4998 (discard_all_intermediate_continuations): Move to ...
4999 * continuations.c: ... this new file, and adjust to no longer
5000 implement continuations on top of cleanups.
5001 * Makefile.in (SFILES): Add continuations.c.
5002 (COMMON_OBS): Add continuations.o.
5003
d8b34453
PA
50042011-05-26 Pedro Alves <pedro@codesourcery.com>
5005
5006 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5007 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5008 Internal error on invalid values.
5009 * reverse.c: Don't handle EXEC_ERROR.
5010 * mi/mi-main.c: Don't handle EXEC_ERROR.
5011
32231432
PA
50122011-05-26 Pedro Alves <pedro@codesourcery.com>
5013
5014 * record.c: Include event-loop.h, inf-loop.h.
5015 (record_beneath_to_async): New global.
5016 (tmp_to_async): New global.
5017 (record_async_inferior_event_token): New global.
5018 (record_open_1): Don't error out if async is enabled.
5019 (record_open): Handle to_async. Create an async event source in
5020 the event loop.
5021 (record_close): Delete the async event source.
5022 (record_resumed): New global.
5023 (record_execution_dir): New global.
5024 (record_resume, record_core_resume): Set them. Register the
5025 target on the event loop.
5026 (record_wait): Rename to ...
5027 (record_wait_1): ... this. Add more debug output. Handle
5028 TARGET_WNOHANG, and the target beneath returning
5029 TARGET_WAITKIND_IGNORE.
5030 (record_wait): Reimplement on top of record_wait_1.
5031 (record_async_mask_value): New global.
5032 (record_async, record_async_mask, record_can_async_p)
5033 (record_is_async_p, record_execution_direction): New functions.
5034 (init_record_ops, init_record_core_ops): Install new methods.
5035 * infrun.c (fetch_inferior_event): Temporarily switch the global
5036 execution direction to the direction the target was going.
5037 (execution_direction): Change type to int.
5038 * target.c (default_execution_direction): New function.
5039 (update_current_target): Inherit and de_fault
5040 to_execution_direction.
5041 * target.h (struct target_ops) <to_execution_direction>: New
5042 field.
5043 (target_execution_direction): New macro.
5044 * inferior.h (execution_direction): Change type to int.
5045
949dc678
PA
50462011-05-26 Pedro Alves <pedro@codesourcery.com>
5047
5048 * infcall.c (call_function_by_hand): Don't allow calling functions
5049 in reverse execution mode.
5050
c13bd2b5
PA
50512011-05-26 Pedro Alves <pedro@codesourcery.com>
5052
5053 * infcmd.c (finish_command): Allow async finish in reverse.
5054
6938fd34
YQ
50552011-05-26 Yao Qi <yao@codesourcery.com>
5056
5057 * gdb_thread_db.h: Delete. Move to ...
5058 * common/gdb_thread_db.h: ... here.
5059
9da8c2a0
PA
50602011-05-26 Pedro Alves <pedro@codesourcery.com>
5061
5062 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5063 function's entry point instead of a manually managed momentary
5064 breakpoint, and only ever issue one proceed call.
5065 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5066 doing a reverse-finish, switch to stepi mode, to do another step.
5067 (insert_step_resume_breakpoint_at_sal): Make public.
5068 (normal_stop): No need to save function value return registers if
5069 going reverse.
5070 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5071
2c03e5be
PA
50722011-05-26 Pedro Alves <pedro@codesourcery.com>
5073
5074 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5075 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5076 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5077 at the end.
5078 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5079 step-resume breakpoints.
5080 (print_it_typical): Handle bp_hp_step_resume.
5081 (bpstat_what): Ditto.
5082 (bptype_string): Ditto.
5083 (print_one_breakpoint_location): Ditto.
5084 (allocate_bp_location): Ditto.
5085 (mention): Ditto.
5086 (breakpoint_re_set_one): Ditto.
5087 * infrun.c (handle_inferior_event): Adjust. Split
5088 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5089 BPSTAT_WHAT_HP_STEP_RESUME.
5090 (insert_step_resume_breakpoint_at_sal): Rename to ...
5091 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5092 parameter. Handle it.
5093 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5094 insert_step_resume_breakpoint_at_sal_1.
5095 (insert_step_resume_breakpoint_at_frame): Rename to ...
5096 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5097 set a high-priority step-resume breakpoint.
5098 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5099 (insert_step_resume_breakpoint_at_caller): Ditto.
5100
51be5b68
PA
51012011-05-26 Pedro Alves <pedro@codesourcery.com>
5102
5103 * breakpoint.c (iterate_over_related_breakpoints): New.
5104 (do_map_delete_breakpoint): New.
5105 (delete_command): Pass do_map_delete_breakpoint to
5106 map_breakpoint_numbers.
5107 (do_disable_breakpoint): New.
5108 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5109 breakpoints.
5110 (do_enable_breakpoint): Rename to ...
5111 (enable_breakpoint_disp): ... this.
5112 (enable_breakpoint): Adjust.
5113 (do_enable_breakpoint): New.
5114 (enable_once_breakpoint): Delete.
5115 (do_map_enable_breakpoint): New.
5116 (do_map_enable_once_breakpoint): New.
5117 (enable_once_command, enable_delete_command)
5118 (delete_trace_command): Iterate over the breakpoint's related
5119 breakpoints.
5120
4a1be8d2
PA
51212011-05-26 Pedro Alves <pedro@codesourcery.com>
5122
5123 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5124 for ALPHA_ZERO_REGNUM.
5125 (alpha_supply_int_regs): Explicitly supply zero as the value for
5126 ALPHA_ZERO_REGNUM in the register cache.
5127 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5128
59d70315
YQ
51292011-05-26 Yao Qi <yao@codesourcery.com>
5130
5131 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5132
251d32d9
TG
51332011-05-26 Tristan Gingold <gingold@adacore.com>
5134
5135 * symfile.h (struct dwarf2_section_names): New type.
5136 (struct dwarf2_debug_sections): New type.
5137 (dwarf2_has_info): Add parameter.
5138 * dwarf2read.c (dwarf2_elf_names): New variable.
5139 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5140 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5141 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5142 (dwarf2_has_info): Add names parameter. Pass names
5143 to dwarf2_locate_sections.
5144 (section_is_p): Rewrite using the names parameter.
5145 (dwarf2_locate_sections): Use section names from the names parameter.
5146 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5147 * elfread.c (read_psyms): Ditto.
5148 * machoread.c (macho_symfile_read): Ditto.
5149
652c71b4
AS
51502011-05-25 Andreas Schwab <schwab@redhat.com>
5151
5152 PR gdb/8677
5153 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5154
f17170e5
KS
51552011-05-24 Keith Seitz <keiths@redhat.com>
5156
5157 PR breakpoint/12803
5158 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5159 (decode_compound): Unconditionally call keep_name_info.
5160
cdac0397
PA
51612011-05-24 Pedro Alves <pedro@codesourcery.com>
5162
5163 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5164 scope, clear its command list.
5165 (map_breakpoint_numbers): Don't walk the related breakpoints list
5166 of each breakpoint.
5167
91d4fe3f
TT
51682011-05-24 Tom Tromey <tromey@redhat.com>
5169
5170 * MAINTAINERS: Move Jim Blandy to past maintainers.
5171
3017a003
TG
51722011-05-24 Tristan Gingold <gingold@adacore.com>
5173
5174 * symfile.h (enum dwarf2_section_enum): New type.
5175 (dwarf2_get_section_info): New prototype.
5176 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5177 section_name by sect. Use a switch to select the info.
5178 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5179 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5180
c91c8c16
PA
51812011-05-24 Pedro Alves <pedro@codesourcery.com>
5182
5183 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5184 shared library event breakpoint if there's no execution.
5185
77bc418a
TJB
51862011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5187
5188 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5189 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5190
c50491a7
TT
51912011-05-23 Tom Tromey <tromey@redhat.com>
5192
5193 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5194 NULL.
5195
6d64e6d4
DE
51962011-05-23 Doug Evans <dje@google.com>
5197
5198 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5199 entry for RuntimeError to doc string.
5200
2067c8d4
JG
52012011-05-23 Jerome Guitton <guitton@adacore.com>
5202
5203 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5204 sequence for probing loops.
5205
b136cd05
PA
52062011-05-23 Pedro Alves <pedro@codesourcery.com>
5207
5208 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5209 comment.
5210
22e74ef9
MK
52112011-05-21 Mark Kettenis <kettenis@gnu.org>
5212
5213 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5214 zero as the value for %g0 in the register cache.
5215 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5216 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5217
842951eb
PA
52182011-05-20 Pedro Alves <pedro@codesourcery.com>
5219
5220 * infrun.c (proceed): Set previous_inferior_ptid here.
5221 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5222 inferior_ptid, not null_ptid.
5223 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5224 (fetch_inferior_event): Nor here.
5225
46cf51e6
PA
52262011-05-20 Pedro Alves <pedro@codesourcery.com>
5227
5228 * inf-loop.c (inferior_event_handler): Only output a message if
5229 verbose.
5230
29ef4c46
LM
52312011-05-20 Luis Machado <lgustavo@codesourcery.com>
5232
5233 * MAINTAINERS: Update my e-mail address.
5234
f148b27e
PA
52352011-05-20 Pedro Alves <pedro@codesourcery.com>
5236
5237 * infrun.c (proceed): Switch the inferior event loop to
5238 INF_EXEC_COMPLETE if the target refused to resume from a
5239 vfork/fork.
5240
09cee04b
PA
52412011-05-20 Pedro Alves <pedro@codesourcery.com>
5242
5243 * infcmd.c: Include "inf-loop.h".
5244 (step_once): When stepping into an inline subroutine, pretend the
5245 target has run. If the target can async, switch the inferior
5246 event loop to INF_EXEC_COMPLETE.
5247 * inferior.h (user_visible_resume_ptid): Declare.
5248 * infrun.c (user_visible_resume_ptid): New function, factored out
5249 from `resume'.
5250 (resume): Use it.
5251 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5252 that the current thread is running. Merge async and sync
5253 branches.
5254
751b8ce1
PA
52552011-05-20 Pedro Alves <pedro@codesourcery.com>
5256
5257 * infcmd.c (step_1): Simplify synchronous case.
5258
e93a69ed
PA
52592011-05-20 Pedro Alves <pedro@codesourcery.com>
5260
5261 * tracepoint.c: Include exceptions.h.
5262 (TFILE_PID): Move higher in file.
5263 (tfile_open): Delay pushing the tfile target until we're assured
5264 the tfile header is present in the file. Wrap reading the initial
5265 newline-terminated lines in TRY_CATCH. Pop the target if the
5266 initial setup failed. Add the tfile's thread immediately
5267 aftwards, before any non-essential setup. Don't skip
5268 post_create_inferior if there are no traceframes present in the
5269 file.
5270 (tfile_close): Remove redundant check for null before xfree call.
5271 (tfile_thread_alive): New function.
5272 (init_tfile_ops): Register it as to_thread_alive callback.
5273
6823e2b1
PA
52742011-05-20 Pedro Alves <pedro@codesourcery.com>
5275
5276 * tracepoint.c (tfile_open): Delete #if 0'd code.
5277
b3c8eb43
JK
52782011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5279
5280 Fix -readnow for -gdwarf-4 unused type units.
5281 * dwarf2read.c (struct signatured_type): Remove the field offset.
5282 (create_signatured_type_table_from_index): Remove its initialization.
5283 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5284 instead. Add a complaint call.
5285 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5286 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5287 (lookup_signatured_type_at_offset, read_signatured_type)
5288 (write_one_signatured_type): Update the field for per_cu.
5289
310afc76
TT
52902011-05-19 Tom Tromey <tromey@redhat.com>
5291
5292 * python/py-inferior.c (python_inferior_exit): Use
5293 target_gdbarch.
5294 (python_on_resume): Likewise.
5295
cf6c5ffb
TT
52962011-05-19 Matt Rice <ratmice@gmail.com>
5297
5298 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5299
fb80a3c5
HZ
53002011-05-19 Hui Zhu <teawater@gmail.com>
5301
5302 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5303
3672b1be
HZ
53042011-05-19 Hui Zhu <teawater@gmail.com>
5305
5306 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5307
ff355380
TT
53082011-05-18 Tom Tromey <tromey@redhat.com>
5309
5310 * dwarf2read.c (dwarf2_add_field): Constify.
5311 * value.c (value_static_field): Constify.
5312 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5313 Now const.
5314 * ax-gdb.c (gen_static_field): Constify
5315
ed731959
JK
53162011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5317
5318 * linux-nat.c (kill_callback): Use SIGKILL first.
5319
967cff16
JB
53202011-05-18 Joel Brobecker <brobecker@adacore.com>
5321
5322 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5323
1d06ead6
TT
53242011-05-18 Tom Tromey <tromey@redhat.com>
5325
5326 * value.c (value_fn_field): Constify.
5327 * symtab.c (gdb_mangle_name): Constify.
5328 * stabsread.c (update_method_name_from_physname): Make 'physname'
5329 argument const.
5330 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5331 const. Use explicit fputc_filtered loop.
5332 (pascal_type_print_base): Constify.
5333 * p-lang.h (pascal_type_print_method_args): Update.
5334 * linespec.c (add_matching_methods): Constify.
5335 (add_constructors): Likewise.
5336 * jv-typeprint.c (java_type_print_base): Constify.
5337 * gdbtypes.h (struct cplus_struct_type)
5338 <fn_fieldlist.fn_field.physname>: Now const.
5339 * dwarf2read.c (compute_delayed_physnames): Constify.
5340 (dwarf2_add_member_fn): Likewise.
5341 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5342
0d9a9a5f
PA
53432011-05-18 Pedro Alves <pedro@codesourcery.com>
5344
5345 * infrun.c (resume): Mention which is the current thread, and its
5346 current PC in debug output.
5347 (prepare_to_proceed): Mention the thread switching in debug
5348 output.
5349
05386e9e
TT
53502011-05-18 Tom Tromey <tromey@redhat.com>
5351
5352 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5353 path check. Use xmalloc and cleanups.
5354 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5355
ee86786c
TT
53562011-05-17 Tom Tromey <tromey@redhat.com>
5357
5358 * cp-valprint.c (cp_print_value_fields): Catch errors from
5359 value_static_field.
5360
9ff3b74f
TT
53612011-05-17 Tom Tromey <tromey@redhat.com>
5362
5363 * dwarf2read.c (dwarf2_get_die_type): Call
5364 get_die_type_at_offset.
5365 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5366 get_base_type function.
5367
cd3da28e
PA
53682011-05-17 Tomas Martinec <fyzmat@gmail.com>
5369
5370 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5371 trap_expected.
5372
fd20d931
DE
53732011-05-16 Doug Evans <dje@google.com>
5374
5375 * python/py-auto-load.c (source_section_scripts): Mention objfile
5376 name in warning.
5377
75fc9810
DE
53782011-05-15 Doug Evans <dje@google.com>
5379
290351b8
DE
5380 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5381 (try_thread_db_load_from_pdir): Call it. If unable to find
5382 libthread_db in directory of libpthread, see if we're looking at
5383 the separate-debug-info copy.
5384
75fc9810
DE
5385 * python/py-autoload.c (print_script): Print "Missing" instead of
5386 "No" for missing scripts.
5387 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5388
9f7bc587
DE
53892011-05-13 Doug Evans <dje@google.com>
5390
5391 * ui-file.c (stdio_file_write_async_safe): Add comment.
5392
093cee7d
HZ
53932011-05-14 Hui Zhu <teawater@gmail.com>
5394
5395 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5396
dbaefcf7
DE
53972011-05-13 Doug Evans <dje@google.com>
5398
98a5dd13
DE
5399 Support $pdir and $sdir in libthread-db-search-path.
5400 * NEWS: Mention $sdir,$pdir.
5401 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5402 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5403 (try_thread_db_load_from_sdir): New function.
5404 (try_thread_db_load_from_dir): New function.
5405 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5406 system directories if search of libthread-db-search-path fails,
5407 that is now done via $sdir.
5408 (has_libpthread): New function.
5409 (thread_db_load): Remove search for libthread_db in directory of
5410 libpthread, that is now done via $pdir.
5411
dbaefcf7
DE
5412 * NEWS: Mention "info auto-load-scripts".
5413 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5414 script_not_found_warning_printed.
5415 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5416 all callers updated. Initialize script_not_found_warning_printed.
5417 (get_auto_load_pspace_data_for_loading): New function.
5418 (maybe_add_script): New function.
5419 (source_section_scripts): Simplify. Only print one warning regardless
5420 of the number of auto-load scripts not found.
5421 (clear_section_scripts): Clear script_not_found_warning_printed.
5422 (auto_load_objfile_script): Record script in hash table.
5423 (count_matching_scripts): New function.
5424 (maybe_print_script): Renamed from maybe_print_section_script, all
5425 callers updated. Rewrite to use ui_out_*.
5426 (info_auto_load_scripts): Renamed from
5427 maintenance_print_section_scripts, all callers updated.
5428 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5429 renamed as "info auto-load-scripts".
5430
9930639c
TT
54312011-05-13 Tom Tromey <tromey@redhat.com>
5432
5433 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5434 (read_sleb128): Likewise.
5435
06826322
TT
54362011-05-13 Tom Tromey <tromey@redhat.com>
5437
5438 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5439 offset display.
5440
01124a23
DE
54412011-05-13 Doug Evans <dje@google.com>
5442
5443 * linux-nat.c (debug_linux_nat_async): Delete.
5444 Replace all references to use debug_linux_nat instead.
5445 (show_debug_linux_nat_async): Delete.
5446 (sigchld_handler): Call ui_file_write_async_safe instead of
5447 fprintf_unfiltered.
5448 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5449 * ui-file.c (struct ui_file): New member to_write_async_safe.
5450 (null_file_write_async_safe): New function.
5451 (ui_file_write_async_safe): New function.
5452 (set_ui_file_write_async_safe): New function.
5453 (ui_file_new): Initialize to_write_async_safe.
5454 (stdio_file_write_async_safe): New function.
5455 (struct stdio_file): New member fd.
5456 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5457 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5458 fileno.
01124a23
DE
5459 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5460 (set_ui_file_write_async_safe): Declare.
5461 (ui_file_write_async_safe): Declare.
5462
72fc29ff
TT
54632011-05-13 Tom Tromey <tromey@redhat.com>
5464
5465 * utils.c (do_value_free): New function.
5466 (make_cleanup_value_free): Likewise.
5467 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5468 freeing correctly.
5469 (dwarf2_loc_desc_needs_frame): Call
5470 make_cleanup_value_free_to_mark.
5471 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5472 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5473 value_free_to_mark.
5474 (new_dwarf_expr_context): Don't call value_mark.
5475 * dwarf2-frame.c (execute_stack_op): Call
5476 make_cleanup_value_free_to_mark.
5477 * defs.h (make_cleanup_value_free): Declare.
5478
028d0ed5
TJB
54792011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5480
5481 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5482 prepare_execute_command.
5483 * top.c (prepare_execute_command): Return cleanup.
5484 (execute_command): Use cleanup from prepare_execute_command.
5485 * top.h (prepare_execute_command): Change prototype to return
5486 cleanup.
5487 * defs.h (struct value): Add opaque declaration.
5488 (make_cleanup_value_free_to_mark): Add prototype.
5489 * utils.c (do_value_free_to_mark): New function.
5490 (make_cleanup_value_free_to_mark): Likewise.
5491
b087e0ed
TT
54922011-05-12 Tom Tromey <tromey@redhat.com>
5493
5494 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5495 cast left-hand-side to unsigned.
5496
8a9b8146
TT
54972011-05-12 Tom Tromey <tromey@redhat.com>
5498
5499 PR gdb/12617:
5500 * value.h (value_from_contents): Declare.
5501 * value.c (value_from_contents): New function.
5502 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5503 (dwarf2_get_die_type): New function.
5504 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5505 (allocate_piece_closure): Acquire reference to values.
5506 (read_pieced_value): Update for value-based expressions.
5507 (write_pieced_value): Likewise.
5508 (free_pieced_value_closure): Call value_free as needed.
5509 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5510 Update for value-based expressions.
5511 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5512 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5513 <get_base_type>: New field.
5514 (struct dwarf_expr_piece) <v.value>: Change type.
5515 <v.regno>: New field.
5516 (struct dwarf_expr_context) <mark>: New field.
5517 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5518 (dwarf_expr_pop, dwarf_expr_push): Remove.
5519 (dwarf_expr_push_address): Declare.
5520 * dwarf2expr.c (dwarf_arch_cookie): New global.
5521 (struct dwarf_gdbarch_types): New.
5522 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5523 functions.
5524 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5525 static.
5526 (dwarf_expr_push_address): New function.
5527 (dwarf_expr_pop): Now static.
5528 (dwarf_expr_fetch): Change return type.
5529 (dwarf_require_integral): New function.
5530 (dwarf_expr_fetch): Simplify.
5531 (add_piece): Update.
5532 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5533 functions.
5534 (execute_stack_op) <sign_ext>: Remove.
5535 Use values for DWARF stack.
5536 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5537 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5538 New cases.
5539 (_initialize_dwarf2expr): New function.
5540 (add_piece): Update.
5541 (new_dwarf_expr_context): Set new field.
5542 (free_dwarf_expr_context): Call value_free_to_mark.
5543 * dwarf2-frame.c (no_base_type): New function.
5544 (execute_stack_op): Set get_base_type field. Update.
5545
e8d28ef4
TT
55462011-05-12 Tom Tromey <tromey@redhat.com>
5547
5548 * dwarf2read.c (read_common_block): Fix formatting.
5549
d248b706
KY
55502011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5551
5552 * breakpoint.c (disable_breakpoint): Disable all locations
5553 associated with a tracepoint on target if a trace experiment is
5554 running.
5555 (disable_command): Disable a specific tracepoint location on target if
5556 a trace experiment is running.
5557 (do_enable_breakpoint): Enable all locations associated with a
5558 tracepoint on target if a trace experiment is running.
5559 (enable_command) Enable a specific tracepoint location on target if a
5560 trace experiment is running.
5561 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5562 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5563 to_disable_tracepoint.
5564 * target.h: Add declaration of struct bp_location.
5565 (struct target_ops): Add new functions
5566 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5567 to_disable_tracepoint to target operations.
5568 (target_supports_enable_disable_tracepoint): New macro.
5569 (target_enable_tracepoint): New macro.
5570 (target_disable_tracepoint): New macro.
5571 * remote.c (struct remote_state): Add new field.
5572 (remote_enable_disable_tracepoint_feature): New.
5573 (remote_protocol_features): Add new entry.
5574 (remote_supports_enable_disable_tracepoint): New.
5575 (remote_enable_tracepoint): New.
5576 (remote_disable_tracepoint): New.
5577 (init_remote_ops): Add remote_enable_tracepoint,
5578 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5579 to remote operations.
5580 * tracepoint.c (start_tracing): Allow tracing to start without any
5581 tracepoints enabled with just a warning if they can be re-enabled
5582 later.
5583 * NEWS: Add news item for the new behaviour of the enable and disable
5584 GDB commands when applied to tracepoints.
5585 Add news items for the new remote packets QTEnable and QTDisable.
5586
cc88a640
JK
55872011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5588
5589 * config.in: Regenerate.
5590 * configure: Regenerate.
5591 * configure.ac <--with-system-readline> (for readline_echoing_p):
5592 Remove the test.
5593 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5594 (tui_old_rl_echoing_p): ... here.
5595 (tui_setup_io): Rename extern declaration readline_echoing_p to
5596 _rl_echoing_p. Adjust assignments for the both renames.
5597
1f84b619
TJB
55982011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5599
5600 * symtab.c (lookup_symtab): Run cleanup before returning.
5601
74ac6d43
TT
56022011-05-11 Tom Tromey <tromey@redhat.com>
5603
5604 * dwarf2read.c (handle_data_member_location): New function.
5605 (dwarf2_add_field): Use it.
5606 (read_common_block): Likewise.
5607
5488dafb
JK
56082011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5609
5610 Make addrs->SECTINDEX always defined.
5611 * symfile.c (relative_addr_info_to_section_offsets): Check for
5612 SECTINDEX -1, not for zero ADDR.
5613 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5614 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5615 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5616 on its validity.
5617
84e578fb
DE
56182011-05-10 Doug Evans <dje@google.com>
5619
2471d008
DE
5620 * linux-thread-db.c: Whitespace cleanup.
5621 (try_thread_db_load_1): Fix comment.
5622
84e578fb
DE
5623 * linux-thread-db.c (set_libthread_db_search_path): New function.
5624 (_initialize_thread_db): Add setter for libthread-db-search-path.
5625
673c2bbe
DE
56262011-05-09 Doug Evans <dje@google.com>
5627
478aac75
DE
5628 * NEWS: Mention --with-iconv-bin.
5629 * configure.ac: New option --with-iconv-bin.
5630 * configure: Regenerate.
5631 * config.in: Regenerate.
5632 * defs.h (relocate_gdb_directory): Declare.
5633 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5634 removed progname parameter, and exported. All callers updated.
5635 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5636
673c2bbe
DE
5637 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5638 adding missing call to restore_child_signals_mask.
5639
e4c8541f
PA
56402011-05-09 Pedro Alves <pedro@codesourcery.com>
5641
5642 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5643 parameter.
5644 * infrun.c (proceed, start_remote): Adjust.
5645 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5646 and adjust to not handle it.
5647 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5648 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5649 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5650 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5651 * windows-nat.c (do_initial_windows_stuff): Adjust.
5652 * infcmd.c (attach_command): Adjust.
5653 (notice_new_inferior): Adjust.
5654
a536c6d7
UW
56552011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5656
5657 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5658 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5659 * spu-tdep.c (op_selb): Use correct value.
5660
7845b013
UW
56612011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5662
5663 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5664 "parent" parameter to symbol_file_add_from_bfd call.
5665
9c06b0b4
TJB
56662011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5667 Thiago Jung Bauermann <bauerman@br.ibm.com>
5668
5669 Implement support for PowerPC BookE masked watchpoints.
5670 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5671 section.
5672 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5673 method. Initialize to NULL in all existing breakpoint_ops instances.
5674 (struct breakpoint) <hw_wp_mask>: New field.
5675 * breakpoint.c (is_masked_watchpoint): Add prototype.
5676 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5677 breakpoint's breakpoint_ops.works_in_software_mode if available.
5678 (watchpoints_triggered): Handle the case of a hardware masked
5679 watchpoint trigger.
5680 (watchpoint_check): Likewise.
5681 (works_in_software_mode_watchpoint): New function.
5682 (insert_masked_watchpoint, remove_masked_watchpoint)
5683 (resources_needed_masked_watchpoint)
5684 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5685 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5686 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5687 functions.
5688 (masked_watchpoint_breakpoint_ops): New structure.
5689 (watch_command_1): Check for the existence of the `mask' parameter.
5690 Set b->ops according to the type of hardware watchpoint being created.
5691 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5692 (ppc_linux_remove_mask_watchpoint)
5693 (ppc_linux_masked_watch_num_registers): New functions.
5694 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5695 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5696 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5697 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5698 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5699 (target_masked_watch_num_registers): New functions.
5700 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5701 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5702 methods.
5703 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5704 (target_masked_watch_num_registers): Add prototypes.
5705
8be455d7
JK
57062011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5707
5708 PR 12573
5709 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5710 (producer_is_gcc_ge_4_0): New function.
5711 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5712 symtab->language code.
5713 (var_decode_location): Set cu->has_loclist.
5714 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5715 skip. Intialize force_skip from locations_valid. Move the prologue
5716 skipping code into two passes.
5717 * symtab.h (struct symtab): Make the primary field a bitfield. New
5718 field locations_valid.
5719
d8228535
JK
57202011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5721
5722 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5723 (classify_inner_name): Call cp_lookup_nested_type with
5724 yylval.tsym.type.
5725 * cp-namespace.c (cp_lookup_nested_type): New variable
5726 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5727 type_name_no_tag_or_error with saved_parent_type.
5728 * dwarf2read.c (load_partial_dies): Read in any children of
5729 DW_TAG_typedef with complaint in such case.
5730 * gdbtypes.c (type_name_no_tag_or_error): New function.
5731 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5732 * valops.c (destructor_name_p): New comment for parameter type. Remove
5733 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5734 * value.h (destructor_name_p): Remove type const.
5735
1976171a
JK
57362011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5737
5738 * symtab.c (compare_symbol_name): New function.
5739 (completion_list_add_name, expand_partial_symbol_name): Call it,
5740 remove the variable ncmp.
5741 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5742 gdb_assert it.
5743
a9634178
TJB
57442011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5745
5746 Demote to sw watchpoint only in update_watchpoint.
5747 * breakpoint.c (update_watchpoint): Change between software and
5748 hardware watchpoint for all kinds of watchpoints, not just
5749 read/write ones. Determine b->exact value here instead of
5750 in watch_command_1. Error out if there are not enough resources
5751 for a read or access hardware watchpoint.
5752 (watch_command_1): Remove logic of checking whether there are
5753 enough resources available, since update_watchpoint will do that
5754 work now. Don't set b->exact here. Catch exceptions thrown by
5755 update_watchpoint and delete the watchpoint.
5756 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5757 Use target_exact_watchpoints instead.
5758 (delete_breakpoint): Notify observers only if deleted watchpoint
5759 has a breakpoint number assigned to it.
5760
4c67c798
JJ
57612011-05-05 Janis Johnson <janisjo@codesourcery.com>
5762
5763 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5764
a3fcb948
JG
57652011-05-05 Jerome Guitton <guitton@adacore.com>
5766
5767 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5768 New functions.
5769 (i386_stack_tramp_frame_unwind): New static global.
5770 (i386_match_pattern): New function, extracted from i386_match_insn.
5771 (i386_match_insn): Use i386_match_pattern.
5772 (i386_match_insn_block): New function.
5773 (i386_tramp_chain_in_reg_insns)
5774 (i386_tramp_chain_on_stack_insns): New static variables.
5775 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5776 of unwinders.
5777
4d393d60
JM
57782011-05-04 Joseph Myers <joseph@codesourcery.com>
5779
5780 * configure.host (xscale*): Don't handle target.
5781 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5782 handle targets.
5783
f70bd40b
YQ
57842011-05-04 Yao Qi <yao@codesourcery.com>
5785
5786 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5787
dd3295ee
JB
57882011-05-03 Joel Brobecker <brobecker@adacore.com>
5789
5790 Revert:
5791 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5792 | * elfread.c (elf_symtab_read): Stop memory leak.
5793
90375a0e
PM
57942011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5795
5796 * nto-tdep.c (nto_target): Replace deprecated call to
5797 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5798
d07205c2
JK
57992011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5800
5801 Fix false GCC warning.
5802 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5803
1e718ff1
TJB
58042011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5805
5806 * breakpoint.c (update_watchpoint): Move code to change
5807 the enable state of breakpoint from here ...
5808 (do_enable_breakpoint): ... to here.
5809
35bef4fd
TT
58102011-04-26 Andrew Gontarek <andrewg@cray.com>
5811
78290264
PP
5812 * valprint.c (val_print_array_elements): Fixed poor performance
5813 of printing very large arrays with repeat_count_threshold set
5814 to unlimited. New comment.
35bef4fd 5815
38a714bb
TT
58162011-04-29 Tom Tromey <tromey@redhat.com>
5817
5818 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5819 (mi_parse): Likewise.
5820 * breakpoint.c (break_range_command): Use sizeof char*, not
5821 char**.
5822 (create_breakpoint): Likewise.
5823 (parse_breakpoint_sals): Likewise.
5824
eb73ad13
PA
58252011-04-29 Pedro Alves <pedro@codesourcery.com>
5826
5827 * linux-nat.c (linux_child_remove_fork_catchpoint)
5828 (linux_child_remove_vfork_catchpoint)
5829 (linux_child_remove_exec_catchpoint): New functions.
5830 (linux_target_install_ops): Install them.
5831
d65aec65
PM
58322011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5833
5834 PR mi/12531
5835
5836 * varobj.c (install_default_visualizer): Do not install a
5837 visualizer if the varobj is CPLUS_FAKE_CHILD.
5838 (construct_visualizer): Likewise.
5839
165195f4
JK
58402011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5841
5842 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5843 case insensitive comparison.
5844
30852783
UW
58452011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5846
5847 * infrun.c (proceed): Revert previous change.
5848 (resume): Instead, handle the case of signal delivery while stepping
5849 off a breakpoint location here, and only if software single-stepping
5850 is used. Handle nested signals.
5851
7ff120b4
YQ
58522011-04-28 Yao Qi <yao@codesourcery.com>
5853
5854 * arm-tdep.c (copy_unmodified): Rename to ...
5855 (arm_copy_unmodified): .. this. New.
5856 (copy_preload): Move common part to ...
5857 (install_preload): .. this. New.
5858 (arm_copy_preload): New.
5859 (copy_preload_reg): Move common part to ...
5860 (install_preload_reg): ... this. New.
5861 (arm_copy_preload_reg): New.
5862 (copy_b_bl_blx): Move common part to ...
5863 (install_b_bl_blx): .. this. New.
5864 (arm_copy_b_bl_blx): New.
5865 (copy_bx_blx_reg): Move common part to ...
5866 (install_bx_blx_reg): ... this. New.
5867 (arm_copy_bx_blx_reg): New.
5868 (copy_alu_reg): Move common part to ...
5869 (install_alu_reg): ... this. New.
5870 (arm_copy_alu_reg): New.
5871 (copy_alu_shifted_reg): Move common part to ...
5872 (install_alu_shifted_reg): ... this. New.
5873 (copy_ldr_str_ldrb_strb): Move common part to ...
5874 (install_ldr_str_ldrb_strb): ... this. New.
5875 (arm_copy_ldr_str_ldrb_strb): New.
5876 (copy_copro_load_store): Move some common part to ...
5877 (install_copy_copro_load_store): ... this. New.
5878 (arm_copy_copro_load_store): New.
5879 (copy_svc): Delete.
5880 (arm_copy_svc): Renamed from copy_svc.
5881 (copy_undef): Delete.
5882 (arm_copy_undef): Renamed from copy_undef.
5883 (decode_ext_reg_ld_st): Delete.
5884 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5885 (decode_svc_copro): Delete.
5886 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5887 (copy_copro_load_store, copy_alu_imm): update callers.
5888 (copy_extra_ld_st, copy_block_xfer): Likewise.
5889 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5890 (decode_miscellaneous, decode_dp_misc): Likewise.
5891 (decode_ld_st_word_ubyte, decode_media): Likewise.
5892 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5893 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5894 (decode_unconditional, decode_miscellaneous): Likewise.
5895 (decode_media, decode_b_bl_ldmstm): Likewise.
5896 (arm_process_displaced_insn): Likewise..
5897 (decode_misc_memhint_neon): Delete.
5898 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5899 (decode_miscellaneous): Delete.
5900 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5901 (decode_dp_misc): Delete.
5902 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5903 (decode_ld_st_word_ubyte): Delete.
5904 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5905 (decode_media): Delete.
5906 (arm_decode_media): Renamed from decode_media.
5907 (decode_b_bl_ldmstm): Delete.
5908 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5909 (decode_ext_reg_ld_st): Delete.
5910 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5911 (decode_unconditional): Delete.
5912 (arm_decode_unconditional): Renamed from decode_unconditional.
5913
559a7a62
JK
59142011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5915
5916 Case insensitive lookups implementation.
5917 * dwarf2read.c: Include ctype.h.
5918 (struct mapped_index): New field version.
5919 (mapped_index_string_hash): New parameter index_version. New comment
5920 for it. Call tolower appropriately.
5921 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5922 Choose the right index version for mapped_index_string_hash.
5923 (dwarf2_read_index): Support also the index version 5. Initialize the
5924 new struct mapped_index field version.
5925 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5926 (find_slot): Explain the version needs. Pass INT_MAX for the new
5927 parameter.
5928 (write_psymtabs_to_index): Produce version 5.
5929 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5930 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5931 * psymtab.c (lookup_partial_symbol): Find the
5932 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5933 entries.
5934 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5935 NAME lowercasing.
5936 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5937 (completion_list_add_name): New variable ncmp, initialize it, use it.
5938 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5939 * utils.c (strcmp_iw): Support case_sensitive_off.
5940 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5941 New function comment part. New variables saved_string1,
5942 saved_string2 and case_pass. Add a proper second pass.
5943
681bf369
JK
59442011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5945
5946 Replace re_comp/re_exec by regcomp/regexec.
5947 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5948 (search_symbols_name_matches): Use them, use regexec.
5949 (search_symbols): New variable retval_chain, adjust the use of
5950 old_chain against it. Replace re_comp by regcomp. Use the new struct
5951 search_symbols_data fields, use regexec instead of re_exec.
5952
b11b1f88
JK
59532011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5954
5955 Format the code for the next patch.
5956 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5957 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5958 New variables c1 and c2.
5959
2484c66b
UW
59602011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5961
5962 * infrun.c (proceed): Do not single-step into signal delivery
5963 when stepping off a breakpoint location.
5964 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5965 (insert_step_resume_breakpoint_at_caller): Likewise.
5966 (insert_step_resume_breakpoint_at_sal): Likewise.
5967 (insert_longjmp_resume_breakpoint): Likewise.
5968
47423772
YQ
59692011-04-27 Yao Qi <yao@codesourcery.com>
5970
5971 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5972
13bdd2e7
JB
59732011-04-27 Joel Brobecker <brobecker@adacore.com>
5974
5975 * procfs.c (procfs_pass_signals): Fix advance declaration.
5976
2455069d
UW
59772011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5978
5979 * target.h (struct target_ops): Remove to_notice_signals;
5980 add to_pass_signals.
5981 (target_notice_signals): Remove.
5982 (target_pass_signals): Add prototype.
5983 * target.c (update_current_target): Remove to_notice_signals;
5984 mention to_pass_signals.
5985 (target_pass_signals): New function.
5986 (debug_to_notice_signals): Remove.
5987 (setup_target_debug): Do not install debug_to_notice_signals.
5988
5989 * infrun.c (signal_pass): New global.
5990 (resume): Call target_pass_signals.
5991 (handle_inferior_event): Report all signals while stepping over
5992 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5993 are re-inserted when stepping over a signal handler.
5994 (signal_cache_update): New function.
5995 (signal_stop_update): Call it.
5996 (signal_print_update): Likewise.
5997 (signal_pass_update): Likewise.
5998 (handle_command): Call signal_cache_update and target_pass_signals
5999 instead of target_notice_signals.
6000 (_initialize_infrun): Initialize signal_pass.
6001
6002 * linux-nat.c (pass_mask): New global.
6003 (linux_nat_pass_signals): New function.
6004 (linux_nat_create_inferior): Report all signals initially.
6005 (linux_nat_attach): Likewise.
6006 (linux_nat_resume): Use pass_mask to decide whether to directly
6007 handle an inferior signal.
6008 (linux_nat_wait_1): Likewise.
6009 (linux_nat_add_target): Install to_pass_signals callback.
6010
6011 * nto-procfs.c (notice_signals): Remove.
6012 (procfs_resume): Do not call notice_signals.
6013 (procfs_notice_signals): Remove.
6014 (procfs_pass_signals): New function.
6015 (init_procfs_ops): Install to_pass_signals callback instead of
6016 to_notice_signals callback.
6017 (_initialize_procfs): Report all signals initially.
6018
6019 * procfs.c (procfs_notice_signals): Remove.
6020 (procfs_pass_signals): New function.
6021 (procfs_target): Install to_pass_signals callback instead of
6022 to_notice_signals callback.
6023 (register_gdb_signals): Remove.
6024 (procfs_debug_inferior): Report all signals initially.
6025 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6026
6027 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6028 parameters; use them instead of calling signal_..._state routines.
6029 (remote_notice_signals): Remove.
6030 (remote_start_remote): Report all signals initially.
6031 (remote_resume): Do not call remote_pass_signals.
6032 (_initialize_remote): Install to_pass_signals callback instead of
6033 to_notice_signals callback.
6034
46c6471b
PA
60352011-04-27 Pedro Alves <pedro@codesourcery.com>
6036
6037 * breakpoint.c (user_settable_breakpoint): Delete.
6038 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6039 (delete_command): Check user_breakpoint_p instead of looking at
6040 the breakpoint's type.
6041 (disable_command): Ditto.
6042 (enable_command): Ditto.
6043 (delete_trace_command): Use user_breakpoint_p instead of looking
6044 at the breakpoint number directly. When checking if there are
6045 user visible tracepoints, in order to know whether to ask the user
6046 for confirmation, check whether the breakpoint is actually a
6047 tracepoint.
6048
f6d90398
VP
60492011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6050
6051 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6052 compilation.
6053
8d3788bd
VP
60542011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6055
6056 MI breakpoint notifications.
6057
f33edef8
PP
6058 * annotate.c (breakpoint_changed): Adjust parameter type.
6059 * breakpoint.c (set_breakpoint_condition): Adjust to change
6060 in breakpoint_modified type.
6061 (breakpoint_set_commands): Likewise.
6062 (do_map_commands_command): Likewise.
6063 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6064 changed after bumping hit count.
6065 (bpstat_stop_status): Likewise.
6066 (print_one_breakpoint_location): Don't wrap in tuple here.
6067 (print_one_breakpoint): Always print individual locations.
6068 For locations, use unnamed tuple.
6069 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6070 has changed.
6071 (create_catchpoint, create_syscall_event_catchpoint): Call
6072 breakpoint_created obsever.
6073 (mention): Don't call breakpoint_created observer.
6074 (create_breakpoint_sal): Call breakpoint_created observer.
6075 (create_breakpoint, watch_command_1): Likewise.
6076 (create_ada_exception_breakpoint): Likewise.
6077 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6078 (locations_are_equal): New.
6079 (update_breakpoint_locations): If locations were changed, notify.
6080 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6081 Call breakpoint_modified observer.
6082
6083 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6084 (mi_cmd_break_insert): Don't set observers for modify and delete.
6085 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6086 (mi_breakpoint_created, mi_breakpoint_deleted)
6087 (mi_breakpoint_modified): New.
6088 (mi_interpreter_init): Hook the above.
6089 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6090 while -break-* commands are executing.
6091 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6092 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6093 (mi_redirect): New.
6094 (mi_ui_out_impl): Hook in mi_redirect.
6095 (mi_field_skip): True to the name, skip the field, don't output
6096 a field with an empty value.
6097
6098 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6099 (gdbpy_breakpoint_deleted): Adjust.
6100 * tui/tui-hooks.c (tui_event_create_breakpoint)
6101 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6102
a8f42b45
UW
61032011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6104
6105 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6106 (procfs_remove_hw_watchpoint): Likewise.
6107
57e12211
TT
61082011-04-26 Michael Walle <michael@walle.cc>
6109
6110 * remote.c (remote_start_remote): Ack packet after sending the
6111 interrupt sequence.
6112
af96c192
YQ
61132011-04-26 Yao Qi <yao@codesourcery.com>
6114
f33edef8
PP
6115 * linux-nat.c: Move common macros to ...
6116 Include linux-ptrace.h.
6117 * common/linux-ptrace.h: ... here. New.
af96c192 6118
3e03848b
JK
61192011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6120
6121 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6122 !objfile_has_partial_symbols. New comment.
6123 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6124 SYM_READ_PSYMBOLS is not present. Extend the comment.
6125 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6126
1ae0d051
JK
61272011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6128
6129 * defs.h (ENUM_BITFIELD): Remove.
6130
03f2bd59
JK
61312011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6132 Eli Zaretskii <eliz@gnu.org>
6133
6134 * NEWS: Document the new gdbserver --once option.
6135
4161fbb0
JZ
61362011-04-21 Jie Zhang <jzhang918@gmail.com>
6137
6138 * MAINTAINERS: Update my email address.
6139
bcb28afc
PM
61402011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6141
6142 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6143 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6144 function call if __STDC_ISO_10646__ macro is defined.
6145 (intermediate_encoding): New prototype.
6146 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6147 to generate compile time error for unsupported gdb_wchar_t size.
6148 (ENDIAN_SUFFIX): New macro.
6149 (intermediate_encoding): New function.
6150
7b08b9eb
JK
61512011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6152
6153 * ada-lang.c (struct add_partial_datum): Update the comment for
6154 expand_partial_symbol_name.
6155 (ada_add_partial_symbol_completions): Rename to ...
6156 (ada_expand_partial_symbol_name): ... here, change return type, update
6157 function comment, call symbol_completion_match instead of
6158 symbol_completion_add.
6159 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6160 and ada_expand_partial_symbol_name.
6161 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6162 FILE_MATCHER.
6163 (dw2_map_symbol_names): Remove.
6164 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6165 * psymtab.c (map_symbol_names_psymtab): Remove.
6166 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6167 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6168 order.
6169 (psym_functions): Unlist map_symbol_names_psymtab.
6170 (map_partial_symbol_names): Rename to ...
6171 (expand_partial_symbol_names): ... here, change the FUN type, call
6172 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6173 * psymtab.h (map_partial_symbol_names): Rename to ...
6174 (expand_partial_symbol_names): ... here, change the FUN type.
6175 * symfile.h (struct quick_symbol_functions): Update the description of
6176 expand_symtabs_matching. Remove map_symbol_names.
6177 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6178 (struct add_name_data): Update the comment for
6179 expand_partial_symbol_name.
6180 (add_partial_symbol_name): Rename to ...
6181 (expand_partial_symbol_name): ... here. Replace
6182 completion_list_add_name call by strncmp.
6183 (default_make_symbol_completion_list_break_on): Use now
6184 expand_partial_symbol_names and expand_partial_symbol_name.
6185 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6186
90476074
TT
61872011-04-20 Tom Tromey <tromey@redhat.com>
6188
6189 * dwarf2read.c (save_gdb_index_command): Replace format
6190 documentation with a pointer to the manual.
6191
c21236dc
PA
61922011-04-20 Pedro Alves <pedro@codesourcery.com>
6193
6194 * regcache.c: Include remote.h.
6195 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6196 (regcache_dump): Handle regcache_dump_remote.
6197 (maintenance_print_remote_registers): New function.
6198 (_initialize_regcache): Install "maint print remote-registers"
6199 command.
6200 * remote.c (map_regcache_remote_table): New function, factored out
6201 from ...
6202 (init_remote_state): ... here.
6203 (remote_register_number_and_offset): New.
6204 * remote.h (remote_register_number_and_offset): Declare.
6205
b78974c3
PA
62062011-04-20 Pedro Alves <pedro@codesourcery.com>
6207
6208 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6209 null_ptid, assume and allow a NULL address space, instead of
6210 asking the target for the ptid's address space.
6211 * infrun.c (ptid_is_pid): Remove assertion.
6212
7a9dd1b2
TT
62132011-04-19 Tom Tromey <tromey@redhat.com>
6214
6215 * windows-tdep.c (windows_xfer_shared_library):
6216 * windows-nat.c (get_module_name, windows_make_so):
6217 * v850-tdep.c (v850_handle_pushm):
6218 * utils.c (null_cleanup, gdb_realpath):
6219 * ui-out.c (get_next_header):
6220 * tracepoint.c (clear_traceframe_info):
6221 * symtab.c (lookup_symtab):
6222 * serial.h (struct serial_ops):
6223 * mipsread.c (read_alphacoff_dynamic_symtab):
6224 * infcmd.c (print_return_value):
6225 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6226 * f-exp.y (parse_number):
6227 * exceptions.c (catch_exceptions):
6228 * dummy-frame.c (dummy_frame_this_id):
6229 * defs.h (struct cleanup):
6230 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6231 * arm-tdep.c (arm_push_dummy_call):
6232 * amd64-tdep.h (amd64_collect_xsave):
6233 * amd64-tdep.c (amd64_collect_xsave):
6234 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6235 * README (typing): Remove duplicate words.
6236 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6237 * infrun.c (siginfo_value_read): Fix typo.
6238 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6239 * top.c (source_line_number): Add comma.
6240
9941e0c5
MK
62412011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6242
6243 * thread.c (any_live_thread_of_process): Prioritize threads
6244 that are not executing.
6245 * gdbthread.h (any_live_thread_of_process): Update comment
6246 as per above change.
6247
ed4b0e6a
AS
62482011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6249
6250 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6251 (scan_xcoff_symtab): Likewise.
6252
9b13a2db
PM
62532011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6254
6255 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6256 inside if clause.
6257
1c6e1b0d
PM
62582011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6259 Pedro Alves <pedro@codesourcery.com>
6260
6261 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6262 variables to simplify code and avoid == operator at end of
6263 line as this is against GNU coding standards.
6264
74de0234
PM
62652011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6266
6267 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6268 lm_name to name_lm to avoid conflict with lm_name function.
6269
b23518f0
PM
62702011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6271
6272 ARI fixes: Use only lowercase function name for static functions.
6273 * nto-tdep.c (LM_ADDR): Rename to...
6274 (lm_addr): New function name.
6275 (nto_relocate_section_addresses): Adapt to change above.
6276 * solib-sunos.c (LM_ADDR): Rename to...
6277 (lm_addr): New function name.
6278 (LM_NEXT): Rename to...
6279 (lm_next): New function name.
6280 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6281 function name changes above.
6282 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6283 (lm_addr_from_link_map): New function name.
6284 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6285 (has_lm_dynamic_from_link_map): New function name.
6286 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6287 (lm_dynamic_from_link_map): New function name.
6288 (LM_ADDR_CHECK): Rename to...
6289 (lm_addr_check): New function name.
6290 (LM_NEXT): Rename to...
6291 (lm_next): New function name.
6292 (LM_PREV): Rename to...
6293 (lm_prev): New function name.
6294 (LM_NAME): Rename to...
6295 (lm_name): New function name.
6296 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6297 (ignore_first_link_map_entry): New function name.
6298 (svr4_keep_data_in_core): Adapt to function name changes above.
6299 (svr4_current_sos): Likewise.
6300 (enable_break): Likewise.
6301 (svr4_relocate_section_addresses): Likewise.
6302
1448a0a2
PM
63032011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6304
6305 ARI cleanup.
6306 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6307 sprintf. Simplify code and avoid loosing memory.
6308 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6309 (call0_frame_cache): Remove && operator from end of line.
6310
02835898
JK
63112011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6312
6313 Fix libraries displacement if they change whether they were prelinked.
6314 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6315 does not match. Comment why.
6316
9a845ea2
JK
63172011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6318
6319 * corelow.c: Include wrapper.h.
6320 (core_open): Call now gdb_target_find_new_threads.
6321 * wrapper.c: Include target.h.
6322 (gdb_target_find_new_threads): New.
6323 * wrapper.h (gdb_target_find_new_threads): New declaration.
6324
254f582e
JK
63252011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6326
6327 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6328 even if !TARGET_HAS_EXECUTION.
6329
63524580
JK
63302011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6331
6332 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6333 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6334 bfd_get_synthetic_symtab.
6335 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6336 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6337 parameter parent, remove the call to add_separate_debug_objfile.
6338 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6339 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6340 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6341 parent, new comment for it, call add_separate_debug_objfile for it.
6342 (symbol_file_add_separate): Pass objfile as the parameter parent,
6343 remove the call to add_separate_debug_objfile.
6344 (symbol_file_add_from_bfd): New parameter parent, pass it.
6345 (symbol_file_add): Pass NULL to the new parameter parent.
6346 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6347
90359a16
JK
63482011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6349
6350 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6351 BSF_SYNTHETIC.
6352
626e7282
JK
63532011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6354
6355 Fix Python access to inlined frames.
6356 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6357 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6358
cf31e6f9
TT
63592011-04-15 Tom Tromey <tromey@redhat.com>
6360
6361 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6362
c8d895f1
GB
63632011-04-15 Gary Benson <gbenson@redhat.com>
6364
6365 * MAINTAINERS: Add myself to write-after-approval section.
6366
56a9aa1d
MF
63672011-04-14 Mike Frysinger <vapier@gentoo.org>
6368
6369 * remote-sim.c (sim_command_completer): New function.
6370 (_initialize_remote_sim): Set completer to sim_command_completer.
6371
ba770c9c
TJB
63722011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6373
6374 * breakpoint.c (print_exception_catchpoint): Rename to ...
6375 (print_it_exception_catchpoint): ... this.
6376 (gnu_v3_exception_catchpoint_ops): Update with new name
6377 for print_it_exception_catchpoint.
6378
51bf2553
EBM
63792011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6380
6381 * MAINTAINERS: Add myself for write after approval privileges.
6382
d242658c
MP
63832011-04-13 Marek Polacek <mpolacek@redhat.com>
6384
6385 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6386
4a4106ca
TJB
63872011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6388
6389 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6390
26063d49
TJB
63912011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6392
6393 * breakpoint.c (save_breakpoints): Verify whether
6394 breakpoint_ops.print_recreate is defined before calling it.
6395
7782b183
GB
63962011-04-11 Gary Benson <gbenson@redhat.com>
6397
6398 Fix failure with --enable-maintainer-mode.
6399 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6400
e8930875
JK
64012011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6402
6403 Code cleanup.
6404 * symtab.c (search_symbols): Reorder the KIND description in the
6405 function comment. Remove the unused 4th element of types, types2,
6406 types3 and types4. New gdb_assert on KIND.
6407 (symtab_symbol_info): Remove the unused 4th element of classnames.
6408 New gdb_assert on KIND.
6409 * symtab.h (enum search_domain): New warning in the enum comment.
6410 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6411 TYPES_DOMAIN.
6412
b4f2f049
JK
64132011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6414
6415 Fix crash of gdb save-index on a STABS file.
6416 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6417 PSYMTABS_ADDRMAP.
6418
60d5a603
JK
64192011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6420
6421 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6422 * dwarf2read.c: Include ctype.h.
6423 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6424 functions.
6425 (dwarf2_add_field): Fix new_field->accessibility by calling
6426 dwarf2_default_access_attribute. Restructure setting accessibility
6427 vs. virtuality.
6428 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6429 is_private and is_protected by calling
6430 dwarf2_default_access_attribute.
6431
e0f68161
KB
64322011-04-08 Kevin Buettner <kevinb@redhat.com>
6433
6434 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6435 to the initialization.
6436
2e1aae43
SE
64372011-04-08 Steve Ellcey <sje@cup.hp.com>
6438
6439 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6440 initalization.
6441
c6ca3dab
PM
64422011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6443
6444 Remove support for old Cygwin 1.5 versions.
6445 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6446 function on old Cygwin version.
6447 * windows-nat.c: Remove cygwin version check and always define
6448 __USEWIDE for Cygwin compilation.
6449
bd18283a
YQ
64502011-04-07 Yao Qi <yao@codesourcery.com>
6451
6452 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6453 and TO.
6454 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6455 (arm_copy_svc): Remove parameters INSN and TO.
6456 (decode_svc_copro): Update caller.
6457 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6458 from function pointer `copy_svc_os'.
6459
8c8dba6d
YQ
64602011-04-07 Yao Qi <yao@codesourcery.com>
6461
6462 * arm-tdep.c (cleanup_branch): Set a correct return address in
6463 LR for ARM and Thumb.
6464
59d7bcaf
JK
64652011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6466
6467 Code cleanup.
6468 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6469 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6470 in the function comment, a new note on values compatibility.
6471 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6472 * symtab.h (SYMBOL_HASH_NEXT): New.
6473
e7db58ea
TJB
64742011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6475
6476 * ppc-linux-nat.c (check_condition): Add len output parameter.
6477 Set it based on the memory region referenced in the condition
6478 expression. Update all callers.
6479
9f743ef6
JK
64802011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6481
6482 Fix crash regression on systems featuring .gdb_index.
6483 * objfiles.c (free_objfile): Move the
6484 forget_cached_source_info_for_objfile call earlier. Comment it.
6485 Extend the comment for objfile_free_data.
6486
9182c5bc
JK
64872011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6488
6489 Fix regression of displaying the debug format.
6490 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6491 subfile.
6492
04bd08de
TT
64932011-04-04 Tom Tromey <tromey@redhat.com>
6494
6495 * cli/cli-interp.c (struct captured_execute_command_args):
6496 Remove.
6497 (do_captured_execute_command): Remove.
6498 (safe_execute_command): Use TRY_CATCH.
6499 * cli/cli-script.c (struct wrapped_read_command_file_args):
6500 Remove.
6501 (wrapped_read_command_file): Remove.
6502 (script_from_file): Use TRY_CATCH.
6503 * exceptions.c (catch_exception): Remove.
6504 * exceptions.h (catch_exception): Remove.
6505 (deprecated_throw_reason): Update comment.
6506 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6507 argument to 'context'.
6508 (mi_execute_command): Use TRY_CATCH.
6509 * remote.c (struct start_remote_args): Remove.
6510 (remote_start_remote): Update; change arguments.
6511 (remote_open_1): Use TRY_CATCH.
6512
58438ac1
TT
65132011-04-04 Tom Tromey <tromey@redhat.com>
6514
6515 * tracepoint.c (scope_info): Update.
6516 * symtab.c (decode_line_spec): Update.
6517 * python/python.c (gdbpy_decode_line): Update.
6518 * linespec.h (decode_line_1): Update.
6519 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6520 (decode_compound, find_method, symtab_from_filename)
6521 (decode_variable): Likewise.
6522 * cli/cli-cmds.c (edit_command): Update.
6523 (list_command): Update.
6524 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6525 argument.
6526 (create_breakpoint): Update.
6527 (until_break_command): Update.
6528 (addr_string_to_sals): Update.
6529 (decode_line_spec_1): Update.
6530
b78a6381
TT
65312011-04-04 Tom Tromey <tromey@redhat.com>
6532
6533 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6534 (do_captured_parse_breakpoint): Remove.
6535 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6536 Use TRY_CATCH directly.
6537
00174a86
TT
65382011-04-04 Tom Tromey <tromey@redhat.com>
6539
6540 * symtab.h (free_symtab): Remove.
6541 (forget_cached_source_info_for_objfile): Declare.
6542 * symmisc.c (free_symtab): Remove.
6543 * source.c (forget_cached_source_info_for_objfile): New function.
6544 (forget_cached_source_info): Use it.
6545 * objfiles.c (free_objfile): Simplify check before calling
6546 clear_current_source_symtab_and_line. Call
6547 forget_cached_source_info_for_objfile.
6548
30cc903e
TT
65492011-04-04 Tom Tromey <tromey@redhat.com>
6550
6551 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6552 (new_symtab): Don't set `free_code' on symtab.
6553 (new_linetable): Properly handle size==0.
6554 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6555 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6556 free_func.
6557 * jv-lang.c (struct jv_per_objfile_data): New.
6558 (jv_per_objfile_free): Free the data.
6559 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6560 (get_java_class_symtab): Set the `dict' field on the
6561 jv_per_objfile_data.
6562 (free_class_block): Remove.
6563 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6564 the symtab.
6565
0c2e6019
TT
65662011-04-04 Tom Tromey <tromey@redhat.com>
6567
6568 * symfile.c (reread_symbols): Update.
6569 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6570 field.
6571 * objfiles.c (allocate_objfile): Update.
6572 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6573 declare.
6574 * cp-namespace.c (lookup_symbol_file): Don't call
6575 lookup_possible_namespace_symbol.
6576 (initialize_namespace_symtab, get_possible_namespace_block)
6577 (free_namespace_block, cp_check_possible_namespace_symbols)
6578 (check_possible_namespace_symbols_loop)
6579 (check_one_possible_namespace_symbol)
6580 (lookup_possible_namespace_symbol): Remove.
6581 (maintenance_cplus_namespace): Replace with notice.
6582 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6583
554d387d
TT
65842011-04-04 Tom Tromey <tromey@redhat.com>
6585
6586 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6587 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6588 * symmisc.c (free_symtab): Don't free debugformat.
6589 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6590 (record_debugformat, record_producer): Document.
6591 * buildsym.c (end_symtab): Don't save debugformat and producer
6592 names on obstack.
6593 (end_symtab): Don't free debugformat and producer fields.
6594 (record_debugformat): Don't call xstrdup.
6595 (record_producer): Likewise.
6596
d4d4db8a
TT
65972011-04-04 Tom Tromey <tromey@redhat.com>
6598
6599 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6600 (source_line_charpos, source_charpos_line): Remove.
6601
8903c50d
TT
66022011-04-04 Tom Tromey <tromey@redhat.com>
6603
6604 * symtab.h (domain_enum): Split in two...
6605 (enum search_domain): New.
6606 (search_symbols): Update.
6607 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6608 redundant declarations.
6609 (search_symbols): Change 'kind' argument to search_domain.
6610 Update.
6611 (print_symbol_info): Likewise.
6612 (symtab_symbol_info): Likewise.
6613 * symfile.h (struct quick_symbol_functions)
6614 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6615 <expand_symtabs_matching>: Likewise.
6616 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6617 (expand_symtabs_matching_via_partial): Update.
6618 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6619 (dw2_expand_symtabs_for_function): Update.
6620 * block.h: Moved anonymous enum...
6621 * defs.h (enum block_enum): ... here. Now named.
6622
d9351f5f 66232011-04-03 Joel Brobecker <brobecker@adacore.com>
6624
6625 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6626 * version.in: Bump version to 7.3.50.20110403-cvs.
6627
d6e00af6
JB
66282011-04-03 Joel Brobecker <brobecker@adacore.com>
6629
6630 * NEWS: Create a new section for the next release branch.
6631 Rename the section of the current branch, now that it has
6632 been cut.
6633
2b9e5ea6
UW
66342011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6635
6636 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6637 for "fpscr" in target description.
6638
0cf03b49
JK
66392011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6640
6641 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6642 initialize it. Delay HASH initialization. Strip the part after open
6643 parenthesis for languages with qualifiers. Call do_cleanups.
6644
5d901a73
TT
66452011-04-01 Tom Tromey <tromey@redhat.com>
6646
6647 * utils.c (report_command_stats): Don't print `-' for negative
6648 number.
6649
b0dd7688
JB
66502011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6651
6652 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6653 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6654 typedefs.
6655
956a9fb9
JB
66562011-04-01 Joel Brobecker <brobecker@adacore.com>
6657
6658 * breakpoint.h (bpdisp_text): Add declaration.
6659 * breakpoint.c (bpdisp_text): Make non-static.
6660 * ada-lang.c: #include "mi/mi-common.h".
6661 (print_it_exception): Rewrite to improve GDB/MI output.
6662
3352110b
PA
66632011-04-01 Pedro Alves <pedro@codesourcery.com>
6664
6665 * arm-tdep.h (struct address_space): Add forward declaration.
6666
18819fa6
UW
66672011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6668
6669 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6670 * arm-tdep.c (arm_override_mode): New global.
6671 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6672 execution mode heuristics.
6673 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6674 second single-step breakpoint if needed, using
6675 arm_insert_single_step_breakpoint.
6676 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6677 ARM execution mode, do not call thumb_get_next_pc_raw.
6678 (arm_get_next_pc): Encode execution mode in return value. Call
6679 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6680 (arm_insert_single_step_breakpoint): New function.
6681 (arm_software_single_step): Call it.
6682 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6683 argument to return execution mode of sigreturn target.
6684 (arm_linux_syscall_next_pc): Use it.
6685 (arm_linux_copy_svc): Update call.
6686 (arm_linux_software_single_step): Call
6687 arm_insert_single_step_breakpoint.
6688
a6e293d1
JK
66892011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6690
6691 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6692 the comment.
6693
a4c8e806
TT
66942011-03-31 Tom Tromey <tromey@redhat.com>
6695
6696 * varobj.c (update_dynamic_varobj_children): Properly handle
6697 errors from iterator.
6698
df5c6c50
JK
66992011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6700
6701 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6702 struct linkage name twice.
6703
1dae3efc
TT
67042011-03-31 Tom Tromey <tromey@redhat.com>
6705
6706 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6707 missing ">" to message.
6708
f4f7ab05
TT
67092011-03-31 Tom Tromey <tromey@redhat.com>
6710
6711 * varobj.c (instantiate_pretty_printer): Remove duplicate
6712 'return'.
6713
fcf250e2
UW
67142011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6715
6716 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6717 if neither saved value nor register available (e.g. signal frame).
6718
ee6436e3
TJB
67192011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6720
6721 * macroexp.c (expand): Avoid uninitialized variable
6722 compiler warning.
6723
423f41a5
TJB
67242011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6725
6726 * breakpoint.c (break_range_command): Fix typo in comment.
6727
f1310107
TJB
67282011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6729 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6730
6731 Implement support for PowerPC BookE ranged breakpoints.
6732 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6733 * breakpoint.h (struct bp_target_info) <length>: New member
6734 variable.
6735 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6736 instead of struct breakpoint as argument, and also add ASPACE
6737 and BP_ADDR arguments. Update all callers.
6738 (struct breakpoint_ops) <print_one_detail>: New method.
6739 (struct breakpoint) <addr_string_range_end>: New member variable.
6740 * breakpoint.c (breakpoint_location_address_match): Add function
6741 prototype.
6742 (insert_bp_location): Set bl->target_info.length.
6743 (breakpoint_here_p): Call breakpoint_location_address_match.
6744 (moribund_breakpoint_here_p): Likewise.
6745 (regular_breakpoint_inserted_here_p): Likewise.
6746 (breakpoint_thread_match): Likewise.
6747 (bpstat_stop_status): Likewise.
6748 (bpstat_check_location): Move call to
6749 breakpoint_ops.breakpoint_hit to the top.
6750 (print_one_breakpoint_location): Call
6751 breakpoint_ops.print_one_detail if available.
6752 (breakpoint_address_match_range): New function.
6753 (breakpoint_location_address_match): Likewise.
6754 (breakpoint_locations_match): Compare the length field of the
6755 locations too.
6756 (hw_breakpoint_used_count): Count resources used by all locations
6757 in a breakpoint, and use breakpoint_ops.resources_needed if
6758 available.
6759 (breakpoint_hit_ranged_breakpoint): New function.
6760 (resources_needed_ranged_breakpoint): Likewise.
6761 (print_it_ranged_breakpoint): Likewise.
6762 (print_one_ranged_breakpoint): Likewise.
6763 (print_one_detail_ranged_breakpoint): Likewise.
6764 (print_mention_ranged_breakpoint): Likewise.
6765 (print_recreate_ranged_breakpoint): Likewise.
6766 (ranged_breakpoint_ops): New structure.
6767 (find_breakpoint_range_end): New function.
6768 (break_range_command): Likewise.
6769 (delete_breakpoint): Free addr_string_range_end.
6770 (update_breakpoint_locations): Add SALS_END argument. Update
6771 all callers. Calculate breakpoint length if a non-zero SALS_END
6772 is given. Call breakpoint_locations_match instead of
6773 breakpoint_address_match.
6774 (reset_breakpoint): Find SaL of the end of the range if B is a
6775 ranged breakpoint.
6776 (_initialize_breakpoint): Register break-range command.
6777 * defs.h (print_core_address): Add function prototype.
6778 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6779 function.
6780 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6781 (ppc_linux_remove_hw_breakpoint): Likewise.
6782 (_initialize_ppc_linux_nat): Initialize
6783 to_ranged_break_num_registers.
6784 * target.c (update_current_target): Add comment about
6785 to_ranged_break_num_registers.
6786 (target_ranged_break_num_registers): New function.
6787 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6788 New method.
6789 (target_ranged_break_num_registers): Add function prototype.
6790 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6791 * utils.c (print_core_address): ... here.
6792
02d20e4a
UW
67932011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6794
6795 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6796 variable compiler warning.
6797
ef23e705
TJB
67982011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6799
6800 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6801 code from here ...
6802 (re_set_breakpoint): ... to here ...
6803 (addr_string_to_sals): ... and here.
6804
311e6ab3
PM
68052011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6806
6807 * Makefile.in (SFILES): Add missing C sources.
6808 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6809 Add missing headers.
6810
acd1d99c
MF
68112011-03-29 Mike Frysinger <vapier@gentoo.org>
6812
6813 * .gitignore: New file.
6814
66ee2731
MF
68152011-03-29 Mike Frysinger <vapier@gentoo.org>
6816
6817 * NEWS: Mention new cfi device simulation.
6818
53832f31
TT
68192011-03-29 Tom Tromey <tromey@redhat.com>
6820
6821 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6822 otherwise anonymous types.
6823 (dwarf2_name): Likewise.
6824 * valops.c (value_struct_elt_for_reference): Refine artificial
6825 type logic. Call error if j==-1.
6826
09b58708
JK
68272011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6828
6829 Fix false GCC warning.
6830 * infcall.c (find_function_addr): Initialize funaddr.
6831
6023c606
PM
68322011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6833
6834 Fix mingw compilation with --enable-targets=all.
6835 * remote-mips.c (gdb_usleep.h): Include header.
6836 (mips_enter_debug): Use gdb_usleep instead of sleep.
6837
0e30163f
JK
68382011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6839
6840 Support resolution of STT_GNU_IFUNC via breakpoints.
6841 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6842 bp_gnu_ifunc_resolver_return.
6843 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6844 the loop. Support bp_gnu_ifunc_resolver and
6845 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6846 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6847 breakpoints.
6848 (bptype_string, print_one_breakpoint_location): Support
6849 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6850 (user_settable_breakpoint): Return true also for
6851 bp_gnu_ifunc_resolver.
6852 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6853 bp_gnu_ifunc_resolver_return.
6854 (set_breakpoint_location_function): New parameter explicit_loc,
6855 describe it. Call find_pc_partial_function_gnu_ifunc with new
6856 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6857 EXPLICIT_LOC is not set.
6858 (set_raw_breakpoint): Set EXPLICIT_LOC for
6859 set_breakpoint_location_function.
6860 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6861 set_breakpoint_location_function.
6862 (mention): Support bp_gnu_ifunc_resolver and
6863 bp_gnu_ifunc_resolver_return.
6864 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6865 set_breakpoint_location_function.
6866 (update_breakpoint_locations): Remove static.
6867 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6868 bp_gnu_ifunc_resolver_return.
6869 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6870 bp_gnu_ifunc_resolver_return.
6871 (update_breakpoint_locations): New declaration.
6872 * elfread.c: Include gdbthread.h and regcache.h.
6873 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6874 functions.
6875 (elf_gnu_ifunc_fns): Install them.
6876 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6877 (stub_gnu_ifunc_resolver_return_stop): New functions.
6878 (stub_gnu_ifunc_fns): Install them.
6879 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6880 and gnu_ifunc_resolver_return_stop.
6881 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6882
07be84bf
JK
68832011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6884
6885 STT_GNU_IFUNC reader implementation.
6886 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6887 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6888 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6889 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6890 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6891 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6892 (elf_gnu_ifunc_resolve_addr): New.
6893 (elf_symfile_read): Call elf_rel_plt_read.
6894 (elf_gnu_ifunc_fns): New.
6895 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6896 Install elf_gnu_ifunc_fns.
6897 * infcall.c (find_function_return_type): New function.
6898 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6899 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6900 (stub_gnu_ifunc_resolve_name): New functions.
6901 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6902 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6903 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6904
300f8e10
JK
69052011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6906
6907 Code cleanup for later STT_GNU_IFUNC support.
6908 * infcall.c (find_function_addr): Remove variable code, use explicit
6909 dereferences for it. Move VALUE_TYPE initialization later.
6910
11c81455
JK
69112011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6912
6913 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6914 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6915 (clear_pc_function_cache): Clear it.
6916 (find_pc_partial_function): Rename to ...
6917 (find_pc_partial_function_gnu_ifunc): ... this function. New
6918 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6919 (find_pc_partial_function): New wrapper for this function.
6920 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6921
0875794a
JK
69222011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6923
6924 GDB internal type support for STT_GNU_IFUNC.
6925 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6926 (elf_symtab_read): Set mst_text_gnu_ifunc for
6927 BSF_GNU_INDIRECT_FUNCTION.
6928 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6929 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6930 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6931 nodebug_got_plt_symbol.
6932 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6933 (TYPE_GNU_IFUNC): New.
6934 (struct main_type): New field flag_gnu_ifunc.
6935 (struct builtin_type): New field builtin_func_func.
6936 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6937 nodebug_got_plt_symbol.
6938 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6939 (in_gnu_ifunc_stub): New.
6940 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6941 mst_text_gnu_ifunc.
6942 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6943 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6944 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6945 in_gnu_ifunc_stub.
6946 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6947 * symtab.c (search_symbols): Likewise.
6948 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6949 and mst_slot_got_plt.
6950 (in_gnu_ifunc_stub): New declaration.
6951
d0fb5eae
JK
69522011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6953
6954 Support a ring of related breakpoints.
6955 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6956 other functions, add gdb_assert.
6957 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6958 watchpoint_del_at_next_stop.
6959 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6960 (bpstat_stop_status): Handle ring in related_breakpoint.
6961 (set_raw_breakpoint_without_location): Initialize ring in
6962 related_breakpoint.
6963 (delete_breakpoint): Handle ring in related_breakpoint, use
6964 watchpoint_del_at_next_stop.
6965 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6966
9cded63f
TT
69672011-03-28 Tom Tromey <tromey@redhat.com>
6968
6969 PR symtab/12441:
6970 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6971 with `language_minimal'.
6972
467d42c4
UW
69732011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6974
6975 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6976 instead of checking for STT_ARM_TFUNC symbol type.
6977
62853458
TT
69782011-03-25 Tom Tromey <tromey@redhat.com>
6979
6980 * linespec.c (symbol_found): Restore line-based result for
6981 non-LOC_LABEL symbols.
6982
a7417d46
KT
69832011-03-25 Kai Tietz <ktietz@redhat.com>
6984
6985 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6986 instead of strcmp for comparison.
6987 (tui_source_is_displayed): Likewise.
6988 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6989
55f1336d
TT
69902011-03-24 Mark Wielaard <mjw@redhat.com>
6991
f33edef8
PP
6992 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6993 complaint.
6994 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6995 (find_partial_die_in_comp_unit): Likewise in comment.
6996 (read_attribute_value): Likewise.
6997 (lookup_die_type): Likewise.
6998 (dwarf_form_name): Likewise.
6999 (dump_die_shallow): Likewise.
7000 (follow_die_ref_or_sig): Likewise.
55f1336d 7001
9ef07c8c
TT
70022011-03-24 Tom Tromey <tromey@redhat.com>
7003
7004 PR breakpoints/11816:
7005 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7006 (decode_compound): Update.
7007 (find_function_symbol): New function.
7008 (decode_dollar): Update.
7009 (decode_label): Add 'function_symbol' parameter. Handle
7010 function-relative labels.
7011 (decode_variable): Update.
7012 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7013 not its line. Set `special_display' and canonical name for
7014 labels.
7015
56435ebe
TT
70162011-03-24 Tom Tromey <tromey@redhat.com>
7017
7018 * linespec.h (struct linespec_result) <special_display>: New
7019 field.
7020 * breakpoint.h (struct breakpoint) <display_canonical>: New
7021 field.
7022 * breakpoint.c (print_breakpoint_location): Respect
7023 display_canonical.
7024 (create_breakpoint_sal): Add 'display_canonical' parameter.
7025 (create_breakpoints_sal): Update.
7026 (create_breakpoint): Update.
7027
7efd8fc2
TT
70282011-03-24 Tom Tromey <tromey@redhat.com>
7029
7030 * symtab.c (decode_line_spec): Update.
7031 * linespec.c (build_canonical_line_spec): Change type of
7032 'canonical'.
7033 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7034 (find_method, decode_all_digits, decode_dollar, decode_label)
7035 (symbol_found): Likewise.
7036 (init_linespec_result): New function.
7037 * breakpoint.c (struct captured_parse_breakpoint_args)
7038 <canonical_p>: New field, replaces addr_string_p.
7039 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7040 'addr_string'.
7041 (parse_breakpoint_sals): Likewise.
7042 (do_captured_parse_breakpoint): Update.
7043 (create_breakpoint): Use struct linespec_result.
7044 (until_break_command): Update.
7045 (breakpoint_re_set_one): Update.
7046 (decode_line_spec_1): Update.
7047 * linespec.h (struct linespec_result): New.
7048 (init_linespec_result): Declare.
7049
788c8b10
PA
70502011-03-23 Pedro Alves <pedro@codesourcery.com>
7051
7052 * regcache.c (regcache_raw_read): If the target didn't supply a
7053 given raw register, mark it as unavailable.
7054
0ba1096a
KT
70552011-03-23 Kai Tietz <ktietz@redhat.com>
7056
7057 * breakpoint.c (clear_command): Use filename_cmp
7058 instead of strcmp for comparison.
7059 * buildsym.c (watch_main_source_file_lossage): Likewise.
7060 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7061 checking just for slash.
7062 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7063 strrchr and filename_cmp instead of strcmp for filenames.
7064 (add_old_header_file): Use filename_cmp
7065 instead of strcmp for comparison.
7066 * exec.c (exec_set_section_address): Likewise.
7067 * macrotab.c (macro_lookup_inclusion): Likewise.
7068 (macro_lookup_inclusion): Likewise.
7069 * elfread.c (_initialize_elfread): Likewise.
7070 (elfstab_offset_sections): Likewise.
7071 (elfstab_offset_sections): Use lbasename instead of
7072 strrchr.
7073 * mdebugread.c (parse_partial_symbols): Likewise.
7074 (arse_partial_symbols): Use filename_(n)cmp instead of
7075 str(n)cmp for comparison.
7076 * minsyms.c (lookup_minimal_symbol): Likewise.
7077 * psymtab.c (read_psymtabs_with_filename): Likewise.
7078 * solib.c (solib_read_symbols): Likewise.
7079 (reload_shared_libraries_1): Likewise.
7080 * symmisc.c (maintenance_print_symbols): Likewise.
7081 * symfile.c (separate_debug_file_exists): Likewise.
7082 (reread_symbols): Likewise.
7083 (find_separate_debug_file_by_debuglink): Likewise.
7084 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7085 * source.c (add_path): Likewise.
7086 * symtab.c (filename_seen): Likewise.
7087 (file_matches): Likewise.
7088 (print_symbol_info): Likewise.
7089 (maybe_add_partial_symtab_filename): Likewise.
7090 (make_source_files_completion_list): Likewise.
7091 * xml-syscall.c (init_sysinfo): Likewise.
7092 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7093 IS_DIR_SEPARATOR for checking for trailing path separator.
7094
dd90784c
JK
70952011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7096
7097 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7098 label abort_expression.
7099 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7100 DWARF_VALUE_OPTIMIZED_OUT.
7101
3167638f
JK
71022011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7103
7104 Code cleanup.
7105 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7106 to linkage_name. Invert its value. Update the function comment.
7107 (c_type_print_varspec_suffix): Invert it at the caller.
7108 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7109
ce406537
PA
71102011-03-22 Pedro Alves <pedro@codesourcery.com>
7111
7112 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7113 errors when reading the `stop_pc'.
7114 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7115 get_frame_pc.
7116
da5d4055
PM
71172011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7118
7119 * NEWS: Document gdb.Write stream keyword.
7120
29e0eb9c
JK
71212011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7122
7123 Revert:
7124 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7125 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7126 (dwarf2_add_field): Fix new_field->accessibility for
7127 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7128
05775840
PM
71292011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7130
f33edef8 7131 PR python/12183
05775840
PM
7132
7133 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7134 other error classes. Do not print stack trace.
7135
a0cb7835
JK
71362011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7137
7138 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7139 (dwarf2_add_field): Fix new_field->accessibility for
7140 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7141
d19f7eee
UW
71422011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7143
7144 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7145 encountering a load via a non-SP register.
7146
4a2fbb50
UW
71472011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7148
7149 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7150 field in returned unwinder.
7151
3489610d
JB
71522012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7153
7154 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7155
8c1a34e7
JB
71562012-03-21 Joel Brobecker <brobecker@adacore.com>
7157
7158 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7159 of xmalloc.
7160
8fbca658
PA
71612012-03-18 Pedro Alves <pedro@codesourcery.com>
7162
7163 * frame.c (frame_unwind_register): Throw an error if unwinding the
7164 register failed.
7165 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7166 an unwind stop reason.
7167 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7168 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7169 UNWIND_UNAVAILABLE>: New.
7170 * inline-frame.c (inline_frame_unwind): Install
7171 default_frame_unwind_stop_reason.
7172 * frame-unwind.c: Include "exceptions.h".
7173 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7174 (default_frame_unwind_stop_reason): New.
7175 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7176 (default_frame_unwind_stop_reason): Declare.
7177 (struct frame_unwind) <stop_reason>: New function pointer.
7178
7179 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7180 * dwarf2-frame.c: Include exceptions.h.
7181 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7182 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7183 computing the CFA. If such an error was thrown, set
7184 unavailable_retaddr.
7185 (dwarf2_frame_unwind_stop_reason): New.
7186 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7187 unavailable.
7188 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7189 (dwarf2_signal_frame_unwind): Ditto.
7190
7191 * amd64-tdep.c: Include "exceptions.h".
7192 (struct amd64_frame_cache): New field "base_p".
7193 (amd64_init_frame_cache): Clear it.
7194 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7195 Avoid reading registers with functions that throw if the register
7196 is not necessary to compute the frame base.
7197 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7198 swallowing NOT_AVAILABLE_ERROR.
7199 (amd64_frame_unwind_stop_reason): New.
7200 (amd64_frame_this_id): Don't build a frame id if the frame base
7201 was unavailable.
7202 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7203 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7204 base_p if the frame base was computable.
7205 (amd64_sigtramp_frame_unwind_stop_reason): New.
7206 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7207 frame base was unavailable.
7208 (amd64_sigtramp_frame_unwind): Install
7209 amd64_sigtramp_frame_unwind_stop_reason.
7210 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7211 base_p if the frame base was computable.
7212 (amd64_epilogue_frame_unwind_stop_reason): New.
7213 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7214 frame base was unavailable.
7215 (amd64_epilogue_frame_unwind): Install
7216 amd64_epilogue_frame_unwind_stop_reason.
7217 * i386-tdep.c: Include "exceptions.h".
7218 (struct i386_frame_cache): New field "base_p".
7219 (i386_init_frame_cache): Clear it.
7220 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7221 Avoid reading registers with functions that throw if the register
7222 is not necessary to compute the frame base.
7223 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7224 swallowing NOT_AVAILABLE_ERROR.
7225 (i386_frame_unwind_stop_reason): New.
7226 (i386_frame_this_id): Don't build a frame id if the frame base was
7227 unavailable.
7228 (i386_frame_prev_register): Handle unavailable SP.
7229 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7230 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7231 base_p if the frame base was computable.
7232 (i386_epilogue_frame_unwind_stop_reason): New.
7233 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7234 base was unavailable.
7235 (i386_epilogue_frame_unwind): Install
7236 i386_epilogue_frame_unwind_stop_reason.
7237 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7238 base_p if the frame base was computable.
7239 (i386_sigtramp_frame_unwind_stop_reason): New.
7240 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7241 base was unavailable.
7242 (i386_sigtramp_frame_unwind): Install
7243 i386_sigtramp_frame_unwind_stop_reason.
7244 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7245 type's size, not the register's.
7246 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7247
7248 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7249 default_frame_unwind_stop_reason.
7250 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7251 (alpha_heuristic_frame_unwind): Ditto.
7252 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7253 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7254 * avr-tdep.c (avr_frame_unwind): Ditto.
7255 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7256 Ditto.
7257 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7258 * frv-tdep.c (frv_frame_unwind): Ditto.
7259 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7260 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7261 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7262 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7263 (hppa_stub_frame_unwind): Ditto.
7264 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7265 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7266 (ia64_libunwind_frame_unwind)
7267 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7268 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7269 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7270 * m32c-tdep.c (m32c_unwind): Ditto.
7271 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7272 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7273 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7274 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7275 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7276 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7277 * mep-tdep.c (mep_frame_unwind): Ditto.
7278 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7279 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7280 (mips_stub_frame_unwind): Ditto.
7281 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7282 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7283 * mt-tdep.c (mt_frame_unwind): Ditto.
7284 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7285 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7286 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7287 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7288 (s390_sigtramp_frame_unwind): Ditto.
7289 * score-tdep.c (score_prologue_unwind): Ditto.
7290 * sh-tdep.c (sh_frame_unwind): Ditto.
7291 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7292 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7293 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7294 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7295 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7296 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7297 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7298 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7299 (sparc64obsd_trapframe_unwind): Ditto.
7300 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7301 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7302 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7303 * v850-tdep.c (v850_frame_unwind): Ditto.
7304 * vax-tdep.c (vax_frame_unwind): Ditto.
7305 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7306 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7307 * xtensa-tdep.c (xtensa_unwind): Ditto.
7308
f23d1b92
PA
73092011-03-18 Pedro Alves <pedro@codesourcery.com>
7310
7311 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7312 there's always a frame. Use get_frame_pc_if_available instead of
7313 get_frame_pc, and if there's no PC available, don't look up a
7314 symtab.
7315
1d4f5741
PA
73162011-03-18 Pedro Alves <pedro@codesourcery.com>
7317
7318 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7319 unavailable PC.
7320
dba09041
PA
73212011-03-18 Pedro Alves <pedro@codesourcery.com>
7322
7323 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7324 gracefully.
7325
9a26e44c
PA
73262011-03-18 Pedro Alves <pedro@codesourcery.com>
7327
7328 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7329 * frame.c (frame_unwind_caller_pc_if_available): New.
7330 * stack.c (frame_info): Handle unavailable PC.
7331
73322011-03-18 Pedro Alves <pedro@codesourcery.com>
7333
7334 * frame.c (frame_unwind_pc): Rename to ...
7335 (frame_unwind_pc_if_available): ... this. New `pc' output
7336 parameter. Change return type to int. Gracefully handle
7337 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7338 happened, or 1 otherwise.
7339 (frame_unwind_pc): Reimplement on top of
7340 frame_unwind_pc_if_available.
7341 (get_frame_func): Rename to ...
7342 (get_frame_func_if_available): New `pc' output parameter. Change
7343 return type to int. Gracefully handle the PC not being available.
7344 (get_frame_func): Reimplement on top of
7345 get_frame_func_if_available.
7346 (select_frame): Handle the PC being unavailable.
7347 (get_prev_frame): Handle the PC being unavailable.
7348 (get_frame_pc_if_available): New.
7349 (get_frame_address_in_block_if_available): New.
7350 (find_frame_sal): Handle the frame PC not being available.
7351 * frame.h (get_frame_pc_if_available): Declare.
7352 (get_frame_address_in_block_if_available): Declare.
7353 (get_frame_func_if_available): Declare.
7354 * stack.c (print_frame_info): Handle the PC being unavailable.
7355 (find_frame_funname): Ditto.
7356 (print_frame): Handle the PC being unavailable.
7357 (get_frame_language): Ditto.
7358 * blockframe.c (get_frame_block): Ditto.
7359 * macroscope.c (default_macro_scope): Ditto.
7360 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7361
73622011-03-18 Pedro Alves <pedro@codesourcery.com>
7363
7364 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7365 NOT_AVAILABLE_ERROR when evaluating the location expression.
7366
73672011-03-18 Pedro Alves <pedro@codesourcery.com>
7368
7369 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7370 returning that the register piece is unavailable/optimized out.
7371 (write_pieced_value): Handle get_frame_register_bytes returning
7372 that the register piece is unavailable/optimized out when doing a
7373 read-modify write of a bitfield.
7374 * findvar.c (value_from_register): Handle get_frame_register_bytes
7375 returning that the register piece is unavailable/optimized out.
7376 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7377 and `unavailablep'. Throw error on bad debug info. Use
7378 frame_register instead of frame_register_read, to fill in the new
7379 arguments.
7380 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7381 and `unavailablep'.
7382 * valops.c: (value_assign): Adjust, and handle
7383 get_frame_register_bytes failing.
7384 * spu-tdep.c: Include exceptions.h.
7385 (spu_software_single_step): Adjust, and handle
7386 get_frame_register_bytes failing.
7387 (spu_get_longjmp_target): Ditto.
7388 * gdbarch.sh (register_to_value): Change to return int. New
7389 parameters `optimizedp' and `unavailablep'.
7390 * gdbarch.h, gdbarch.c: Regenerate.
7391 * i386-tdep.c (i386_register_to_value): Adjust to new
7392 gdbarch_register_to_value interface.
7393 * i387-tdep.c (i387_register_to_value): Ditto.
7394 * i387-tdep.h (i387_register_to_value): Ditto.
7395 * alpha-tdep.c (alpha_register_to_value): Ditto.
7396 * ia64-tdep.c (ia64_register_to_value): Ditto.
7397 * m68k-tdep.c (m68k_register_to_value): Ditto.
7398 * mips-tdep.c (mips_register_to_value): Ditto.
7399 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7400
0fdb4f18
PA
74012011-03-18 Pedro Alves <pedro@codesourcery.com>
7402
7403 * findvar.c (value_of_register): Mark the value as unavailable, if
7404 the register is unavailable.
7405 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7406 (frame_register): New `unavailablep' parameter.
7407 (frame_register_read): Update comment.
7408 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7409 Set it if the register is unavailable. If the register is
7410 unavailable, clear the output buffer.
7411 (frame_register): New `unavailablep' parameter. Pass it down.
7412 (frame_unwind_register): Adjust.
7413 (put_frame_register): Adjust.
7414 (frame_register_read): Adjust. Also return false if the register
7415 is not available.
7416 (frame_register_unwind_location): Adjust.
7417 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7418 is unavailable, mark the value accordingly.
7419 * stack.c (frame_info): Handle unavailable registers.
7420
e69aa73e
PA
74212011-03-18 Pedro Alves <pedro@codesourcery.com>
7422
7423 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7424 simplify, using regcache_cooked_read.
7425
05d1431c
PA
74262011-03-18 Pedro Alves <pedro@codesourcery.com>
7427
7428 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7429 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7430 (regcache_raw_read_unsigned, regcache_raw_read_part)
7431 (regcache_cooked_read, regcache_cooked_read_signed)
7432 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7433 (regcache_cooked_read_ftype): Change return to enum
7434 register_status.
7435 * regcache.c: Include exceptions.h
7436 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7437 (do_cooked_read): Change return to enum register_status. Always
7438 forward to regcache_cooked_read.
7439 (regcache_raw_read): Change return to enum register_status. If
7440 the register is not REG_VALID, memset the buffer. Return the
7441 register's status.
7442 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7443 return the register's status.
7444 (regcache_raw_read_unsigned): Ditto.
7445 (regcache_cooked_read): Change return to enum register_status.
7446 Assert that with read-only regcaches, the register's status must
7447 be known. If the regcache is read-only, and the register is not
7448 REG_VALID, memset the buffer. Return the register's status.
7449 (regcache_cooked_read_signed): Change return to enum
7450 register_status. Handle non-REG_VALID registers and return the
7451 register's status.
7452 (regcache_cooked_read_unsigned): Change return to enum
7453 register_status. Handle non-REG_VALID registers and return the
7454 register's status.
7455 (regcache_xfer_part, regcache_raw_read_part)
7456 (regcache_cooked_read_part): Change return to enum
7457 register_status. Return the register's status.
7458 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7459 unavailable.
7460 (regcache_dump): Handle unavailable cooked registers.
7461 * frame.c (do_frame_register_read): Adjust interface to match
7462 regcache_cooked_read_ftype.
7463 * gdbarch.sh (pseudo_register_read): Change return to enum
7464 register_status.
7465 * gdbarch.h, gdbarch.c: Regenerate.
7466
7467 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7468 register_status.
7469 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7470 register_status. If reading a raw register indicates the raw
7471 register is not valid, return the raw register's status,
7472 otherwise, return REG_VALID.
7473 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7474 register_status. Handle non-REG_VALID raw registers and return
7475 the register's status.
7476 * arm-tdep.c (arm_neon_quad_read)
7477 (arm_pseudo_read): Change return to enum register_status. Handle
7478 non-REG_VALID raw registers and return the register's status.
7479 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7480 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7481 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7482 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7483 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7484 register_status.
7485 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7486 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7487 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7488 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7489 (m32c_pseudo_register_read): Change return to enum
7490 register_status. Adjust.
7491 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7492 enum register_status. Return the register's status.
7493 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7494 register_status. Return the register's status.
7495 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7496 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7497 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7498 * rs6000-tdep.c (move_ev_register_func): New typedef.
7499 (e500_move_ev_register): Use it. Change return to enum
7500 register_status. Return the register's status.
7501 (do_regcache_raw_read): New function.
7502 (do_regcache_raw_write): New function.
7503 (e500_pseudo_register_read): Change return to enum
7504 register_status. Return the register's status. Use
7505 do_regcache_raw_read.
7506 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7507 (dfp_pseudo_register_read): Change return to enum register_status.
7508 Return the register's status.
7509 (vsx_pseudo_register_read): Ditto.
7510 (efpr_pseudo_register_read): Ditto.
7511 (rs6000_pseudo_register_read): Ditto.
7512 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7513 register_status. Return the register's status.
7514 * sh64-tdep.c (pseudo_register_read_portions): New function.
7515 (sh64_pseudo_register_read): Change return to enum
7516 register_status. Use pseudo_register_read_portions. Return the
7517 register's status.
7518 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7519 register_status. Return the register's status.
7520 * sh-tdep.c (pseudo_register_read_portions): New function.
7521 (sh_pseudo_register_read): Change return to enum register_status.
7522 Use pseudo_register_read_portions. Return the register's status.
7523 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7524 enum register_status. Return the register's status.
7525 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7526 * spu-tdep.c (spu_pseudo_register_read_spu)
7527 (spu_pseudo_register_read): Ditto.
7528 * xtensa-tdep.c (xtensa_register_read_masked)
7529 (xtensa_pseudo_register_read): Ditto.
7530 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7531
e10abd8f
PM
75322011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7533
7534 * python/py-value.c (valpy_getitem): Fix formatting of error function
7535 call.
7536
7ea6d463
PM
75372011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7538
7539 ARI fixes: Add missing internationalization markups throughout
7540 C source files.
7541 * darwin-nat-info.c: Ditto.
7542 * record.c: Ditto.
7543 * remote.c: Ditto.
7544 * mi/mi-main.c: Ditto.
7545
001083c6
PM
75462011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7547
7548 ARI fixes: Add missing internationalization markups throughout
7549 yacc files.
7550 * c-exp.y: Ditto.
7551 * cp-name-parser.y: Ditto.
7552 * f-exp.y: Ditto.
7553 * m2-exp.y: Ditto.
7554 * objc-exp.y: Ditto.
7555 * p-exp.y: Ditto.
7556
4f1cdeec
PM
75572011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7558
7559 ARI fixes: Messages should have no trailing new lines.
7560 * darwin-nat.c (mach_check_error): Remove trailing new line from
7561 warning function call message.
7562 * record.c (bfdcore_read): Idem for error call.
7563
28e698f1
PM
75642011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7565
7566 * common/signals.c (target_signal_from_host): Add _ markup to error
7567 function call message.
7568 (target_signal_to_host): Add _ markup and remove trailing new line
7569 from warning call message.
7570 (target_signal_from_command): Add _ markup to error function call
7571 message.
7572
99c3dc11
PM
75732011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7574
f33edef8 7575 PR python/12149
99c3dc11
PM
7576
7577 * python/python.c (gdbpy_write): Accept a stream argument and
7578 operate to the appropriate stream.
7579 (gdbpy_flush): Likewise.
7580 (_initialize_python): Add stream constants.
7581 (finish_python_initialization): Add GdbOutputErrorFile class.
7582
c20800be
KY
75832011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7584
7585 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7586
f4a1794a
KY
75872011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7588
7589 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7590 to store_signed_integer. Add debug message when relocating CALL
7591 instructions. Fix formatting of debug message.
7592 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7593
d4862372
JB
75942011-03-17 Joel Brobecker <brobecker@gnat.com>
7595
7596 * target.h (struct target_ops): Remove to_lookup_symbol field.
7597 (target_lookup_symbol): Delete macro.
7598 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7599 (update_current_target, setup_target_debug): Remove handling
7600 of to_lookup_symbol target_ops field.
7601 * ada-tasks.c (get_known_tasks_addr): Remove use of
7602 target_lookup_symbol.
7603 * coffread.c (coff_symtab_read): Likewise.
7604 * dbxread.c (read_dbx_symtab): Ditto.
7605
d645e32e
JB
76062011-03-17 Joel Brobecker <brobecker@gnat.com>
7607
7608 PR gdb/12116:
7609 * configure.ac: Add getthrds declaration check.
7610 * configure, config.in: Regenerate.
7611 * aix-thread.c (getthrds): Declare only if not already declared
7612 in procinfo.h. More declaration out of get_signaled_thread to
7613 global scope.
7614
29703da4
PM
76152011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7616
7617 * python/py-symtab.c: Populate symtab_object_methods,
7618 sal_object_methods.
7619 (stpy_is_valid): New function.
7620 (salpy_is_valid): Ditto.
7621 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7622 (sympy_is_valid): New function.
7623 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7624 (objfpy_is_valid): New function.
7625 * python/py-inferior.c: Populate inferior_object_methods.
7626 (infpy_is_valid): New function.
7627 * python/py-infthread.c: Populate thread_object_methods.
7628 (thpy_is_valid): New function.
7629 * python/py-block.c: Declare block_object_methods. Populate. Declare
7630 block_iterator_object_methods. Populate.
7631 (blpy_is_valid): New function.
7632 (blpy_iter_is_valid): Ditto.
7633
c00f8484
KS
76342011-03-16 Keith Seitz <keiths@redhat.com>
7635
7636 * linespec.c (find_methods): Canonicalize NAME before looking
7637 up the symbol.
7638 (name_end): New function.
7639 (keep_name_info): New function.
7640 (decode_line_1): Use keep_name_info.
7641 (decode_compound): Likewise.
7642 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7643 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7644
7645 PR c++/12273
7646 * linespec.c (locate_first_half): Keep overload information, too.
7647 (decode_compound): Use a string to represent break characters
7648 to escape the loop.
7649 If P points to a break character, do not increment it.
7650 For C++ and Java, keep overload information and relevant keywords.
7651 If we cannot find a symbol, search the minimal symbols.
7652
7653 PR c++/11734
7654 * linespec.c (decode_compound): Rename SAVED_ARG to
7655 THE_REAL_SAVED_ARG.
7656 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7657 single-quotes.
7658 Pass a valid block to lookup_symbol.
7659 (lookup_prefix_sym): Likewise.
7660 (find_method): Construct search name based on SYM_CLASS instead
7661 of SAVED_ARG.
7662 * psymtab.c (lookup_partial_symbol): Add language parameter.
7663 (lookup_symbol_aux_psymtabs): Likewise.
7664 Don't assume that the psymtab we found was the right one. Search
7665 for the desired symbol in the symtab to be certain.
7666 (psymtab_search_name): New function.
7667 (lookup_partial_symbol): Use psymtab_search_name.
7668 Add language parameter.
7669 (read_symtabs_for_function): Add language parameter and pass to
7670 lookup_partial_symbol.
7671 (find_symbol_file_from_partial): Likewise.
7672
c91513d8
PP
76732011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7674
7675 PR gdb/12528
7676 * dwarf2read.c (noop_record_line): New function.
7677 (dwarf_decode_lines): Ignore line tables for GCd functions.
7678
b37520b6
PM
76792011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7680
7681 Fix ARI warnings about new lines at the end of messages, which
7682 are unneeded as there is a new line added at the end of the message
7683 automatically.
7684 * darwin-nat.c (darwin_stop_inferior): Ditto.
7685 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7686 * dfp.c (decimal_to_number): Ditto.
7687 * exec.c (print_section_info): Ditto.
7688 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7689 * osdata.c (get_osdata): Ditto.
7690 * record.c (bfdcore_write): Ditto.
7691 * remote-mips.c (mips_readchar): Ditto.
7692 * remote.c (read_ptid): Ditto.
7693 * ser-mingw.c (ser_windows_raw): Ditto.
7694 * tracepoint.c (add_local_symbols): Ditto.
7695 * windows-nat.c (fake_create_process): Ditto.
7696
b08ee6a2
TT
76972011-03-16 Tom Tromey <tromey@redhat.com>
7698
7699 * tracepoint.c (stop_tracing): Don't declare.
7700 * event-top.c (after_char_processing_hook): Add `(void)'.
7701
9a6f1302
PM
77022011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7703
7704 * NEWS: Add Parameter sub-classing description.
7705
7ceb86b1
KT
77062011-03-16 Kai Tietz <ktietz@redhat.com>
7707
7708 * MAINTAINERS: Update my e-mail address.
7709
efeff6cf
AT
77102011-03-15 Andreas Tobler <andreast@fgznet.ch>
7711
7712 * MAINTAINERS: Add myself for write after approval privileges.
7713
681c238c
MS
77142011-03-15 Michael Snyder <msnyder@vmware.com>
7715
f3df5b08
MS
7716 * frame.c (find_frame_sal): Assert sym is not null.
7717
13f6513c
MS
7718 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7719
50412521
MS
7720 * objc-lang.c (selectors_info): Check strchr for null result.
7721
681c238c
MS
7722 * stabsread.c (define_symbol): Guard against bad stabstring input.
7723
6ced1581
PM
77242011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7725
7726 Remove trailing spaces and tabulations from pascal language
7727 support sources.
7728 p-exp.y: Ditto.
7729 p-lang.c: Ditto.
7730 p-lang.h: Ditto.
7731 p-valprint.c: Ditto.
7732
9373cf26
JK
77332011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7734
7735 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7736 than LOW. Comment it.
7737 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7738 HIGHPC not strictly higher than LOWPC.
7739
9a1edae6
PM
77402011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7741
7742 Fix formatting of function declarations returning a pointer in
7743 previous commit.
7744 * varobj.c (varobj_add_child): Ditto.
7745 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7746 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7747
24e9cda0
UW
77482011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7749
7750 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7751 for the "generic" vector ABI used with GCC 4.3 and later.
7752 (ppc64_sysv_abi_return_value): Likewise.
7753
77542011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7755
7756 * infcall.c (call_function_by_hand): Function return value is
7757 always a non_lval, even when using struct_return.
7758
c9174737
PA
77592011-03-15 Pedro Alves <pedro@codesourcery.com>
7760
7761 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7762 (map_display_numbers): New.
7763 (do_delete_display): New.
7764 (undisplay_command): Use map_display_numbers.
7765 (do_enable_disable_display): New.
7766 (enable_disable_display_command): New function.
7767 (enable_display): Delete.
7768 (enable_display_command): New.
7769 (disable_display_command): Reimplement.
7770 (_initialize_printcmd): Adjust "enable display" command to use
7771 `enable_display_command' as callback.
7772
350c6c65
PM
77732011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7774
7775 * NEWS: Add Python breakpoint 'stop' operation.
7776
824446ad
PM
77772011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7778
7779 * NEWS: Delete duplicate entry. Fix typo.
7780
2021ad3a
PM
77812011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7782
7783 Fix ARI warning about function names in first column.
7784 Put prototype declaration on same line as return type.
7785 * objc-exp.y: Ditto.
7786 * p-exp.y: Ditto.
7787 * python/py-stopevent.h: Ditto.
7788 For long function names, split parameters to
7789 allow function name on same line as return type.
7790 * solib-pa64.c: Ditto.
7791 * varobj.c: Ditto.
7792 * varobj.h: Ditto.
7793 For long function declaration, use single line.
7794 * hppa-tdep.h: Ditto.
7795 * inferior.h: Ditto.
7796
7371cf6d
PM
77972011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7798
7799 * python/python.h: Declare gdbpy_should_stop and
7800 gdbpy_breakpoint_has_py_cond.
7801 * python/python.c: Add python.h to includes. Remove python.h from
7802 HAVE_PYTHON definition
7803 (gdbpy_should_stop): New dummy function.
7804 (gdbpy_breakpoint_has_py_cond): New dummy function.
7805 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7806 sub-classing capabilities.
7807 (gdbpy_should_stop): New function.
7808 (gdbpy_breakpoint_has_py_cond): New function.
7809 (local_setattro): New function.
7810 * breakpoint.c (condition_command): Add check for Python 'stop'
7811 operation.
7812 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7813 operation function as part of stop/continue tests.
7814
37b50a69
TT
78152011-03-14 Tom Tromey <tromey@redhat.com>
7816
7817 PR gdb/12576:
7818 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7819 (needs_frame_dwarf_call): Likewise.
7820
eeae04df
PM
78212011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7822
7823 Fix ARI warning about functions without parameters that do not
7824 use (void).
7825 * breakpoint.c (all_tracepoints): Replace () by (void).
7826 * f-exp.y (match_string_literal): Ditto.
7827 (yylex): Ditto.
7828 * m2-exp.y (yylex): Ditto.
7829 * mep-tdep.c (current_me_module): Ditto.
7830 (current_options): Ditto.
7831 (current_cop_data_bus_width): Ditto.
7832 (current_cr_names): Ditto.
7833 (current_cr_is_float): Ditto.
7834 (current_ccr_names): Ditto.
7835 * objc-exp.y (yylex): Ditto.
7836 * p-exp.y (yylex): Ditto.
7837 * remote.c (send_interrupt_sequence): Ditto.
7838 * tracepoint.c (current_trace_status): Ditto.
7839 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7840 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7841
6dc3565d
MS
78422011-03-11 Michael Snyder <msnyder@vmware.com>
7843
1427fe5e
MS
7844 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7845 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7846 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7847 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7848 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7849
60bc018f
MS
7850 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7851 (delete_async_event_handler): Ditto.
7852
f3be5b64
MS
7853 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7854
4c2d5724
MS
7855 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7856
6dc3565d
MS
7857 * top.c (set_verbose): Assert showcmd was found.
7858
4e6ca6d5
MG
78592011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7860
7861 * xtensa-tdep.c (warning_once): Correct style issues.
7862
815a83e4
YQ
78632011-03-11 Yao Qi <yao@codesourcery.com>
7864
7865 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7866
f2eb0bc8
AS
78672011-03-11 Andreas Schwab <schwab@redhat.com>
7868
7869 * common/aclocal.m4: Remove.
7870
b801de47
MG
78712011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7872
7873 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7874 (xtensa_write_register, xtensa_read_register): Likewise.
7875 (xtensa_hextochar): Removed.
7876 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7877
dbab50de
MG
78782011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7879
7880 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7881 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7882 (xtensa_alloc_frame_cache): Add initialization for new fields.
7883 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7884 (warning_once): New function.
7885 (xtensa_insn_kind): New item c0opc_and.
7886 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7887 (call0_track_op): Change arguments. New local variable litbase.
7888 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7889 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7890 in the prologue.
dbab50de 7891 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7892 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7893 Add the variety of updates to handle extended prologues, which now can
7894 conduct dynamic stack adjustments.
7895 (call0_frame_cache): Likewise.
7896 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7897 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7898
b2c04452
MS
78992011-03-10 Michael Snyder <msnyder@vmware.com>
7900
f8f67713
MS
7901 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7902 (cmd_qtframe): Ditto.
7903 (cmd_qtbuffer): Ditto.
7904 (cmd_bigqtbuffer): Ditto.
7905
197f0a60
TT
79062011-03-10 Tom Tromey <tromey@redhat.com>
7907
7908 * tracepoint.c (trace_actions_command): Update.
7909 * thread.c (thread_apply_command): Update.
7910 * reverse.c (delete_bookmark_command): Update.
7911 (bookmarks_info): Update.
7912 * printcmd.c (undisplay_command): Update.
7913 * memattr.c (mem_enable_command): Update.
7914 (mem_disable_command): Update.
7915 (mem_delete_command): Update.
7916 * inferior.c (detach_inferior_command): Update.
7917 (kill_inferior_command): Update.
7918 (remove_inferior_command): Update.
7919 * cli/cli-utils.h (struct get_number_or_range_state): New.
7920 (init_number_or_range): Declare.
7921 (get_number_or_range): Update.
7922 * cli/cli-utils.c (init_number_or_range): New function.
7923 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7924 static variables.
7925 (number_is_in_list): Update.
7926 * breakpoint.h (get_tracepoint_by_number): Update.
7927 * breakpoint.c (map_breakpoint_numbers): Update for change to
7928 get_number_or_range.
7929 (find_location_by_number): Use get_number, not
7930 get_number_or_range.
7931 (trace_pass_set_count): New function.
7932 (trace_pass_command): Update for change to get_number_or_range.
7933 Rework loop logic.
7934 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7935 'state' parameter.
7936
ecec24e6
PM
79372011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7938
7939 * python/py-param.c (add_setshow_generic): Add set/show callback
7940 parameters. Register Python object context.
7941 (get_show_value): New function.
7942 (get_set_value): New function.
7943 (call_doc_function): New function.
7944 (get_doc_string): Move behind get_show_value/get_set_value.
7945
6d6c6b1f
JK
79462011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7947
7948 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7949
68d6df83
MG
79502011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7951
dbab50de 7952 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7953 (xtensa_write_register): Likewise.
7954 (xtensa_hextochar): Add comment and update to match coding conventions.
7955 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7956 (execute_l32e, execute_s32e, execute_code): Update comments.
7957 (xtensa_exception_handler_t): Update to match coding conventions.
7958 (xtensa_insn_kind): Likewise.
7959
85c9d6a6
MS
79602011-03-09 Michael Snyder <msnyder@vmware.com>
7961
7962 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7963
91495617
PA
79642011-03-09 Pedro Alves <pedro@codesourcery.com>
7965
7966 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7967
eb8c0621
TT
79682011-03-09 Tom Tromey <tromey@redhat.com>
7969
7970 * thread.c (restore_selected_frame): Handle frame_level == -1.
7971 (make_cleanup_restore_current_thread): Use
7972 get_selected_frame_if_set.
7973 * frame.h (get_selected_frame_if_set): Declare.
7974 * frame.c (get_selected_frame_if_set): New function.
7975
9f37bbcc
PA
79762011-03-09 Pedro Alves <pedro@codesourcery.com>
7977
7978 * cli/cli-cmds.c (shell_escape): Use lbasename.
7979 * coffread.c (coff_start_symtab): Constify parameter.
7980 (complete_symtab): Constify `name' parameter.
7981 (coff_symtab_read): Constify `filestring' local.
7982 (coff_getfilename): Constify return and `result' local.
7983 Use lbasename.
7984 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7985 * linux-fork.c (info_checkpoints_command): Use lbasename.
7986 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7987 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7988 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7989 * procfs.c (procfs_make_note_section): Use lbasename.
7990 * tui/tui-io.c (printable_part): Constity return and parameter.
7991 Use lbasename.
7992 (print_filename): Constify parameters, and local `s'.
7993 (tui_rl_display_match_list): Constify local `temp'.
7994
f8de3c55
JK
79952011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7996
7997 Revert:
7998 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7999 Fix DWARF-3+ DW_AT_accessibility default assumption.
8000 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8001 cu->header.version >= 3.
8002
d9837b00
YQ
80032011-03-09 Yao Qi <yao@codesourcery.com>
8004
8005 * common/Makefile.in: Remove.
8006 * common/configure: Remove.
8007 * common/configure.ac: Remove.
8008
e637a4f5
YQ
80092011-03-09 Yao Qi <yao@codesourcery.com>
8010
8011 Revert:
8012 2011-02-11 Yao Qi <yao@codesourcery.com>
8013
8014 * common/Makefile.in: Add copyright header.
8015
8016 2011-02-11 Yao Qi <yao@codesourcery.com>
8017
8018 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8019 libcommon.a.
8020 * configure.ac: Add common to sub dir.
8021 * configure: Regenerate.
8022
f976a05d
MG
80232011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8024
8025 * xtensa-tdep.c (call0_ret): New function.
8026 (xtensa_skip_prologue): Speed up analysis.
8027
57041825
MG
80282011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8029
8030 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8031 while executing MI command -data-list-changed-registers.
8032
08b9c608
MG
80332011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8034
8035 * xtensa-tdep.c (xtensa_read_register): New function.
8036 (xtensa_write_register): New function.
8037 (xtensa_find_register_by_name): New function.
8038 (xtensa_windowed_frame_cache): Update comments in type description.
8039 (xtensa_frame_cache): Likewise.
8040 (xtensa_window_interrupt_insn): New function.
8041 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8042 (xtensa_insn_kind): Add new instructions.
8043 (rwx_special_register): New function.
8044 (call0_classify_opcode): Add new instructions to the analysis.
8045 (a0_saved, a7_saved, a11_saved): New variables.
8046 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8047 (execute_l32e): New function.
8048 (execute_s32e): New function.
8049 (xtensa_exception_handler_t): New type.
8050 (execute_code): New function.
8051 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8052 analysis for Xtensa Window Exception handlers.
8053
4d1acb11
MG
80542011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8055
98689b25
MG
8056 * xtensa-tdep.c (TX_PS): New.
8057 (windowing_enabled): Update to count for Call0 ABI.
8058 (xtensa_hextochar): New.
8059 (xtensa_init_reggroups): Make algorithm generic.
8060 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8061
80622011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8063
8064 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8065
d3f323f3
MS
80662011-03-08 Michael Snyder <msnyder@vmware.com>
8067
3dcabaa8
MS
8068 * i386-tdep.c (i386_follow_jump): Check return value of
8069 target_read_memory.
8070 (i386_analyze_struct_return): Ditto.
8071 (i386_skip_probe): Ditto.
8072 (i386_match_insn): Ditto.
8073 (i386_skip_noop): Ditto.
8074 (i386_analyze_frame_setup): Ditto.
8075 (i386_analyze_register_saves): Ditto.
8076 (i386_skip_prologue): Ditto.
8077 (i386_skip_main_prologue): Ditto.
8078
13b3fd9b
MS
8079 * target.c (read_whatever_is_readable): Fix memory leak.
8080
d3f323f3
MS
8081 * i386-tdep.c (i386_process_record): Document fall through.
8082
421d5c74
JK
80832011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8084
8085 Fix DWARF-3+ DW_AT_accessibility default assumption.
8086 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8087 cu->header.version >= 3.
8088
63154eca
PA
80892011-03-08 Pedro Alves <pedro@codesourcery.com>
8090
8091 * remote.c (remote_check_symbols): Skip if the target has no
8092 execution.
8093
f1a507a1
JB
80942011-03-08 Joel Brobecker <brobecker@adacore.com>
8095
8096 * target.c (read_whatever_is_readable): Reformat comment,
8097 with a minor typo fix. Minor reformatting of the code.
8098
36073a92
YQ
80992011-03-08 Yao Qi <yao@codesourcery.com>
8100
8101 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8102 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8103 Use cached result instead of calling displaced_in_arm_mode again.
8104 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8105 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8106 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8107 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8108 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8109 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8110 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8111 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8112 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8113 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8114 (arm_catch_kernel_helper_return): Likewise.
8115 * gdb/arm-tdep.h : Update function declarations.
8116
d3f323f3 81172011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8118
e0e40094
MS
8119 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8120
0b2381f5
MS
8121 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8122
0350914a
MS
8123 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8124
69feea6f
MS
8125 * elfread.c (elf_symtab_read): Stop memory leak.
8126
e6040cbd
MS
8127 * main.c (captured_main): Fix memory leak.
8128
052874e8
AS
81292011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8130
8131 * ada-lang.c (compare_names): Call is_name_suffix with string1
8132 instead of string2.
8133
b11896a5
TT
81342011-03-07 Tom Tromey <tromey@redhat.com>
8135
8136 * xcoffread.c (xcoff_sym_fns): Update.
8137 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8138 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8139 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8140 (symbol_file_add_with_addrs_or_offsets): Likewise.
8141 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8142 * somread.c (som_sym_fns): Update.
8143 * psymtab.h (require_partial_symbols): Declare.
8144 * psymtab.c (require_partial_symbols): New function.
8145 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8146 (ALL_OBJFILE_PSYMTABS): Undef.
8147 (ALL_PSYMTABS): Move from psympriv.h.
8148 (lookup_partial_symtab, find_pc_sect_psymtab)
8149 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8150 (find_last_source_symtab_from_partial)
8151 (forget_cached_source_info_partial)
8152 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8153 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8154 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8155 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8156 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8157 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8158 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8159 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8160 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8161 psymtabs.
8162 * mipsread.c (ecoff_sym_fns): Update.
8163 * machoread.c (macho_sym_fns): Update.
8164 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8165 (read_psyms): New function.
8166 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8167 (elf_sym_fns_lazy_psyms): New global.
8168 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8169 dwarf2_build_psymtabs.
8170 * dbxread.c (aout_sym_fns): Update.
8171 * coffread.c (coff_sym_fns): Update.
8172
fda326dd
TT
81732011-03-07 Tom Tromey <tromey@redhat.com>
8174
8175 * infrun.c (print_exited_reason): Include inferior id and pid in
8176 message.
8177
aeaec162
TT
81782011-03-07 Tom Tromey <tromey@redhat.com>
8179
8180 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8181 parameter.
8182 (target_has_execution_1): Update.
8183 (target_has_execution_current): Declare.
8184 (target_has_execution): Call target_has_execution_current.
8185 (default_child_has_execution): Update.
8186 * target.c (default_child_has_execution): Add 'the_ptid'
8187 parameter.
8188 (target_has_execution_1): Likewise.
8189 (target_has_execution_current): New function.
8190 (add_target): Update.
8191 (init_dummy_target): Update.
8192 * remote-m32r-sdi.c (m32r_has_execution): New function.
8193 (init_m32r_ops): Use it.
8194 * record.c (record_core_has_execution): Now static. Add
8195 'the_ptid' parameter.
8196 * inferior.c (have_live_inferiors): Don't save current thread.
8197 Use target_has_execution_1.
8198
08e14083
YQ
81992011-03-07 Yao Qi <yao@codesourcery.com>
8200
8201 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8202
c05d19c5
JB
82032011-03-07 Joel Brobecker <brobecker@adacore.com>
8204
8205 * elfread.c (elf_symtab_read): Minor reformatting.
8206
3e6ef9e4
JB
82072011-03-07 Joel Brobecker <brobecker@adacore.com>
8208
8209 * objc-lang.c (selectors_info): Minor reformatting.
8210
dbb8534f
JB
82112011-03-07 Joel Brobecker <brobecker@adacore.com>
8212
8213 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8214
dd70cc93
JB
82152011-03-07 Joel Brobecker <brobecker@adacore.com>
8216 Michael Snyder <msnyder@vmware.com>
8217
8218 * ada-valprint.c (ada_val_print_array): Move the declaration of
8219 "byte_order" and "elttype" inside the block where these variables
8220 are actually used. Remove some special handling for the case
8221 where "elttype" and "eltlen" are null. Replace by a comment
8222 and a couple of assertion checks.
8223
b27cf2b3
MS
82242011-03-05 Michael Snyder <msnyder@vmware.com>
8225
8226 * source.c (add_path): Replace semicolon at end of block.
8227 * dwarf2expr.c (execute_stack_op): Ditto.
8228
5387a0c6
MF
82292011-03-05 Mike Frysinger <vapier@gentoo.org>
8230
8231 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8232 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8233 (bfin-*-*): Likewise.
8234
e3aa49af
MS
82352011-03-05 Michael Snyder <msnyder@vmware.com>
8236
82ae4854
MS
8237 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8238 * mdebugread.c (parse_symbol): Ditto.
8239 * parse.c (parse_exp_in_context): Ditto.
8240 * source.c (add_path): Ditto.
8241 * utils.c (gnu_debuglink_crc32): Ditto.
8242 * varobj.c (variable_language): Ditto.
8243
e3aa49af
MS
8244 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8245
154f592e
MS
82462011-03-04 Michael Snyder <msnyder@vmware.com>
8247
da3ecdc6
MS
8248 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8249
9cc89665
MS
8250 * symfile.c (simple_overlay_update): Check for null return value
8251 from lookup_minimal_symbol.
8252
154f592e
MS
8253 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8254
63ffa6ee
TJB
82552011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8256
8257 * eval.c (parse_and_eval_address_1): Remove function.
8258 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8259 instead of parse_and_eval_address_1.
8260 * value.h (parse_and_eval_address_1): Remove prototype.
8261
a17d146e
MS
82622011-03-04 Michael Snyder <msnyder@vmware.com>
8263
8264 * remote.c (putpkt_binary): Document that case stmt falls through.
8265
1a6a67de
TJB
82662011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8267
8268 * breakpointc (print_it_typical): Move NULL check from here...
8269 (print_bp_stop_message): ... to here.
8270
488919c4
MS
82712011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8272
8273 * breakpoint.c (enable_command): Use break instead of continue,
8274 and fill in a missing break.
8275 (disable_command): Ditto.
8276
1e182ce8
UW
82772011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8278
8279 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8280 (terminal_save_ours): Remove misleading comment.
8281 (inflow_inferior_data_cleanup): Free ttystate.
8282 (inflow_inferior_exit): Likewise.
8283 (copy_terminal_info): Copy ttystate.
8284
8285 * serial.c (serial_copy_tty_state): New function.
8286 * serial.h (serial_copy_tty_state): Add prototype.
8287 (struct serial_ops): Add copy_tty_state callback.
8288 * ser-base.c (ser_base_copy_tty_state): New function.
8289 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8290 * ser-go32.c (dos_copy_tty_state): New function.
8291 (dos_ops): Install copy_tty_state callback.
8292 * ser-mingw.c (_initialize_ser_windows): Likewise.
8293 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8294 * ser-unix.c (hardwire_copy_tty_state): New function.
8295 (_initialize_ser_hardwire): Install it.
8296
b2c5f112
MS
82972011-03-04 Michael Snyder <msnyder@vmware.com>
8298
2abae994
MS
8299 * breakpoint.c (create_breakpoint): Add missing break statement.
8300
7f5936f9
MS
8301 Reverting this patch:
8302 * infcall.c (call_function_by_hand): Add break statements for lint.
8303
b2c5f112
MS
8304 Reverting this patch:
8305 * cli/cli-script.c (script_from_file): Add break for lint.
8306
42b1321c
MS
83072011-03-04 Michael Snyder <msnyder@vmware.com>
8308
8309 * solib.c (reload_shared_libraries_1): Close memory leak.
8310
3e2a0cee
TT
83112011-03-03 Tom Tromey <tromey@redhat.com>
8312
8313 PR gdb/12538:
8314 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8315 DW_STRING is NULL.
8316
58397cb7
MS
83172011-03-03 Michael Snyder <msnyder@vmware.com>
8318
2e3fd767
MS
8319 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8320 fields of struct 'st' to zero.
8321
58397cb7
MS
8322 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8323 sal.pspace before calling set_current_source_symtab_and_line.
8324
ced54c8f
YQ
83252011-03-03 Yao Qi <yao@codesourcery.com>
8326
8327 * Makefile.in (configure-common): Remove. Let Makefile
8328 in dir common to rebuild itself.
8329 (common/Makefile): Likewise.
8330
3351ea09
JB
83312011-03-03 Joel Brobecker <brobecker@adacore.com>
8332
8333 * utils.c (parse_escape): Add i18n markup in error message.
8334
bf9f652a
YQ
83352011-03-03 Yao Qi <yao@codesourcery.com>
8336
8337 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8338 ARM_PC_REGNUM.
8339 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8340 (displaced_write_reg, displaced_read_reg): Likewise.
8341 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8342 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8343 (cleanup_branch): Replace magic number 14 and 15 with
8344 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8345
d42de051
MS
83462011-03-02 Michael Snyder <msnyder@vmware.com>
8347
240f9570
MS
8348 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8349
10dd8b54
MS
8350 * cli/cli-script.c (script_from_file): Add break for lint.
8351
b98bd911
MS
8352 * mdebugread.c (parse_partial_symbols): Fix indent.
8353
3494b66d
MS
8354 * target-descriptions.c (tdesc_gdb_type): No need to call
8355 xstrdup, callee saves a copy.
8356
daac021a
MS
8357 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8358
c38d16a7
MS
8359 * infcall.c (call_function_by_hand): Add break statements for lint.
8360
905b671b
MS
8361 * utils.c (parse_escape): Escape the escape char.
8362
f2eb0bc8 8363 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8364 PyList_Append fails.
8365 (gdbpy_inferiors): Error out if build_inferior_list fails.
8366
8c6a60d1
MS
8367 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8368 a function call.
8369
d42de051
MS
8370 * record.c (record_restore): Move printf to before error return.
8371
4db71c0b
YQ
83722011-03-02 Yao Qi <yao@codesourcery.com>
8373
8374 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8375 is_thumb and insn_size.
8376 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8377 on both ARM and Thumb mode.
8378 (arm_process_displaced_insn): Set is_thumb and insn_size.
8379 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8380 (arm_displaced_step_fixup): Likewise.
8381
a9dc8dcc
MS
83822011-03-01 Michael Snyder <msnyder@vmware.com>
8383
53624a93
MS
8384 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8385
77766669
MS
8386 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8387
62d5b8da
MS
8388 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8389
5e9e105f
MS
8390 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8391
dc19db01
MS
8392 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8393 with xmalloc.
8394
5ce64950
MS
8395 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8396 which shadows function parameter.
8397
a0aa2878
MS
8398 * tracepoint.c (create_tsv_from_upload): Superfluous call
8399 to xstrdup. Callee already calls xstrdup.
8400
e325fb69
MS
8401 * linespec.c (decode_line_1): Remove unnecessary null check.
8402
21cbba77
MS
8403 * tracepoint.c (scope_info): Fix mem leak, remove underused
8404 variable.
8405
63360adc
MS
8406 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8407 superfluous null check.
8408
18ea20ac 8409 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8410 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8411
d014929c
MS
8412 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8413
6e9130cf
MS
8414 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8415 be null.
8416
5f01dbc0
MS
8417 * linespec.c (decode_line_1): Check for null before dereference.
8418
d684ab85
MS
8419 * reverse.c (record_restore): Move null-check to before pointer
8420 dereference.
8421
bfffb7e3
MS
8422 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8423
a9dc8dcc
MS
8424 * objc-lang.c (selectors_info): Add explanitory comment.
8425 (classes_info): Ditto.
8426
478fd957
UW
84272011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8428
8429 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8430 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8431 versions of the trampoline. Handle Thumb vs. ARM addresses.
8432 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8433 (arm_linux_init_abi): Install it.
8434 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8435 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8436
0480cefa
MS
84372011-02-28 Michael Snyder <msnyder@vmware.com>
8438
ac50ab3b
MS
8439 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8440 a little bigger, to avoid possibility of an overflow.
8441
f63fbe86
MS
8442 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8443 buffers a little bigger, to avoid possibility of an overflow.
8444
9e91a352
MS
8445 * coffread.c (coff_getfilename): Add check to avoid overflow.
8446
f2eb0bc8 8447 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8448 avoid overflow.
8449 (classes_info): Error out on too long REGEXP.
8450
098ab512
MS
8451 * infrun.c (handle_inferior_event): Remove unused function call.
8452
bcbd1de9
MS
8453 * fork-child.c (fork_inferior): Remove ifdef'd code and
8454 unused variable.
8455
2e456570
MS
8456 * linux-thread-db.c (attach_thread): Discard unused value.
8457
14571dad
MS
8458 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8459
a9cbf802
MS
8460 * remote.c (remote_get_noisy_reply): Discard unused value.
8461 (remote_vcont_resume): Ditto.
8462 (remote_stop_ns): Ditto.
8463
5715d26e
MS
8464 * linespec.c (decode_objc): Delete unused variable.
8465
4a9bca80
MS
8466 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8467
f47fb265
MS
8468 * dwarf2read.c (add_partial_symbol): Discard unused values.
8469 (read_base_type): Delete unused variable.
8470
e81cff30
MS
8471 * dbxread.c (read_dbx_symtab): Discard unused value.
8472
262acaeb
MS
8473 * eval.c (evaluate_subexp_standard): Delete unused variable,
8474 and discard unused values.
8475
df983543
MS
8476 * infcmd.c (_initialize_infcmd): Discard unused values.
8477
89acf84d
MS
8478 * stabsread.c (rs6000_builtin_type): Missing break statement.
8479
ab8b8aca
MS
8480 * dbxread.c (process_one_symbol): Discard unused value.
8481
6b4511ab
MS
8482 * coffread.c (coff_end_symtab): Delete unused variable.
8483
e8e80198
MS
8484 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8485 (dwarf2_add_typedef): Delete unused variable.
8486 (read_namespace): Ditto.
8487 (dwarf_decode_macros): Ditto.
8488
976aa66e
MS
8489 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8490
5b92b49f
MS
8491 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8492
91e8df85
MS
8493 * p-valprint.c (pascal_val_print): Discard unused value.
8494
899500d6
MS
8495 * utils.c (nquery): Call va_end before return;
8496 (yquery): Ditto.
8497 (query): Ditto.
8498
0480cefa
MS
8499 * proc-service.c (ps_plog): Call va_end before return.
8500
fb6a3ed3
TT
85012011-02-28 Tom Tromey <tromey@redhat.com>
8502
8503 * python/python.c (gdbpy_value_cst): New global.
8504 (_initialize_python): Initialize it.
8505 * python/python-internal.h (gdbpy_value_cst): Declare.
8506 * python/py-value.c (convert_value_from_python): Use
8507 gdbpy_value_cst.
8508
c05202a1
MS
85092011-02-28 Michael Snyder <msnyder@vmware.com>
8510
e463f587
MS
8511 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8512
c38eea1a
MS
8513 * breakpoint.c (catch_syscall_completer): Free malloced list.
8514
3ef09ab5
MS
8515 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8516
8f9a01ee
MS
8517 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8518 (lval_func_check_synthetic_pointer): Ditto.
8519 (lval_func_free_closure): Fix use-after-free.
c05202a1 8520
477d0d57
TT
85212011-02-28 Tom Tromey <tromey@redhat.com>
8522
8523 * psymtab.c (expand_partial_symbol_tables): Use
8524 ALL_OBJFILE_PSYMTABS.
8525
20937029
JK
85262011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8527
8528 * objc-lang.c (selectors_info): Error on too long REGEXP.
8529
907b7f4f
MS
85302011-02-28 Michael Snyder <msnyder@vmware.com>
8531
92e96192
MS
8532 * python/py-param.c (set_parameter_value): Add missing
8533 break statement.
8534
907b7f4f
MS
8535 * linux-record.c (record_linux_system_call): Add missing
8536 break statement.
8537
12c5a436
UW
85382011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8539
8540 * breakpoint.c (print_one_breakpoint_location): Remove unused
8541 argument PRINT_ADDRESS_BITS. Update callers.
8542 (print_one_breakpoint): Likewise.
8543
170b53b2
UW
85442011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8545
8546 * breakpoint.c (wrap_indent_at_field): New function.
8547 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8548 Allocate ui_stream locally instead of using STB argument.
8549 (print_one_breakpoint_location): Update call.
8550 * ui-out.c (ui_out_query_field): New function.
8551 * ui-out.h (ui_out_query_field): Add prototype.
8552
8ab1f94d
JB
85532011-02-28 Joel Brobecker <brobecker@adacore.com>
8554
8555 From Michael Snyder <msnyder@vmware.com>
8556 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8557
7d488639
MS
85582011-02-27 Michael Snyder <msnyder@vmware.com>
8559
ae179fba
MS
8560 * objc-lang.c (selectors_info): Prevent string overrun.
8561
086dbf66
MS
8562 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8563 error in strncpy.
8564
f2eb0bc8 8565 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8566 outer scope.
8567
7d488639
MS
8568 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8569 param with a local variable of the same name.
8570
3bd0f5ef
MS
85712011-02-27 Michael Snyder <msnyder@vmware.com>
8572
8573 * value.c (value_from_history_ref): New function.
8574 * value.h (value_from_history_ref): Export.
8575 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8576 to parse value history references.
8577 * cli/cli-utils.h (get_number_trailer): Update comment.
8578
85792011-02-27 Michael Snyder <msnyder@vmware.com>
8580
8581 * inferior.c (detach_inferior_command): Use get_number_or_range.
8582 (kill_inferior_command): Ditto.
8583 (remove_inferior_command): Ditto.
8584 (initialize_inferiors): Make command names plural.
8585 Update help strings.
8586
766062f6
MS
85872011-02-27 Michael Snyder <msnyder@vmware.com>
8588
8589 * darwin-nat-info.c: Fix comment typo.
8590 * dwarf2expr.h: Ditto.
8591 * fbsd-nat.c: Ditto.
8592 * fbsd-nat.h: Ditto.
8593 * frame-unwind.h: Ditto.
8594 * frame.h: Ditto.
8595 * hppa-hpux-tdep.c: Ditto.
8596 * i386-linux-nat.c: Ditto.
8597 * linux-nat.c: Ditto.
8598 * nbsd-nat.c: Ditto.
8599 * nbsd-nat.h: Ditto.
8600 * ppc-linux-tdep.c: Ditto.
8601 * serial.c: Ditto.
8602 * ui-file.h: Ditto.
8603 * tui/tui-winsource.c: Ditto.
8604
f2c4ead5
MS
86052011-02-26 Michael Snyder <msnyder@vmware.com>
8606
86b887df
MS
8607 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8608
66fd3b1e
MS
8609 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8610
8c814cdd
MS
8611 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8612 with a local variable of the same name.
8613
6d5e094a 8614 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8615 param with a local variable of the same name.
6d5e094a 8616 (i387_supply_xsave): Ditto.
e5b3d7d6 8617
5eee517d
MS
8618 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8619 that it does not shadow a function parameter.
8620
8fbf6b93
MS
8621 * i386-nat.c (i386_length_and_rw_bits): Document that case
8622 statement is meant to fall through.
8623
cb969d61
MS
8624 * expprint.c (dump_subexp_body_standard): Document that case
8625 statement is meant to fall through.
8626
f2c4ead5
MS
8627 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8628 dead if statement. Condition can't be false.
8629
b021a221
MS
86302011-02-25 Michael Snyder <msnyder@vmware.com>
8631
8632 * arm-tdep.c: Fix typos in comments.
8633 * bsd-uthread.c: Ditto.
8634 * completer.c: Ditto.
8635 * corelow.c: Ditto.
8636 * cp-namespace.c: Ditto.
8637 * cp-support.c: Ditto.
8638 * cris-tdep.c: Ditto.
8639 * dbxread.c: Ditto.
8640 * dwarf2read.c: Ditto.
8641 * frame.h: Ditto.
8642 * gdbtypes.h: Ditto.
8643 * inferior.h: Ditto.
8644 * mdebugread.c: Ditto.
8645 * mips-tdep.c: Ditto.
8646 * ppc-linux-nat.c: Ditto.
8647 * ppc-linux-tdep.c: Ditto.
8648 * printcmd.c: Ditto.
8649 * sol-thread.c: Ditto.
8650 * solib-frv.c: Ditto.
8651 * solist.h: Ditto.
8652 * sparc64-tdep.c: Ditto.
8653 * spu-tdep.c: Ditto.
8654 * stabsread.c: Ditto.
8655 * symfile.c: Ditto.
8656 * valops.c: Ditto.
8657 * varobj.c: Ditto.
8658 * vax-nat.c: Ditto.
8659 * python/py-block.c: Ditto.
8660 * python/py-symbol.c: Ditto.
8661 * python/py-symtab.c: Ditto.
8662 * python/py-value.c: Ditto.
8663 * tui/tui-win.c: Ditto.
8664
c82c0b55
MS
86652011-02-25 Michael Snyder <msnyder@vmware.com>
8666
8667 * inferior.c (print_inferior): Accept a string instead of an int
8668 for requested_inferiors, and use get_number_or_range to parse it.
8669 (info_inferiors_command): Pass args string to print_inferior.
8670 (initialize_inferiors): Change help string for info inferiors.
8671 * inferior.h (print_inferior): Export prototype change.
8672
ee00cd23
TT
86732011-02-25 Tom Tromey <tromey@redhat.com>
8674
8675 * common/ax.def (invalid2): Set to 0x31.
8676
0502ed8c
JK
86772011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8678
8679 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8680 L and plongest.
8681 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8682 use L and plongest.
8683 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8684
2c9de912
MS
86852011-02-24 Michael Snyder <msnyder@vmware.com>
8686
8687 * Makefile.in (clean): Make clean should remove generated files
8688 observer.h and observer.inc.
8689
a04b0428
JB
86902011-02-24 Joel Brobecker <brobecker@adacore.com>
8691
8692 Revert the following patch (not approved yet):
8693 2011-02-21 Hui Zhu <teawater@gmail.com>
8694 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8695 * ax-gdb.c (gen_printf_expr_callback): New function.
8696 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8697 * ax-general.c (ax_memcpy): New function.
8698 (ax_print): Handle "printf".
8699 (ax_reqs): Ditto.
8700 * ax.h (ax_memcpy): Forward declare.
8701 * common/ax.def (invalid2): Removed.
8702 (printf): New entry.
8703 * printcmd.c (printcmd.h): New include.
8704 (string_printf): New function.
8705 (ui_printf): Removed.
8706 (printf_command): Remove static. Call string_printf.
8707 (eval_command): Call string_printf.
8708 * printcmd.h: New file.
8709 * tracepoint.c (validate_actionline,
8710 encode_actions_1): handle printf_command.
8711
2b52013f
TT
87122011-02-23 Tom Tromey <tromey@redhat.com>
8713
8714 * ax-general.c (ax_pick): Add missing newline.
8715
e5a67952
MS
87162011-02-23 Michael Snyder <msnyder@vmware.com>
8717
8718 * breakpoint.c (breakpoint_1): Change first argument from an int
8719 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8720 breakpoints rather than just one. Use new function
e5a67952
MS
8721 'number_is_in_list' to implement.
8722 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8723 (watchpoints_info): Ditto.
8724 (tracepoints_info): Ditto.
8725 (maintenance_info_breakpoints): Ditto.
8726 (_initialize_breakpoint): Update help strings to reflect the fact
8727 that these functions can now take more than one argument.
8728 * cli/cli-utils.c (number_is_in_list): New function.
8729 * cli/cli-utils.h (number_is_in_list): Export.
8730
87312011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8732
8733 * memattr.c (mem_enable_command): Use get_number_or_range.
8734 (mem_disable_command): Ditto.
8735 (mem_delete_command): Ditto.
8736 (_initialize_mem): Tweak usage message to reflect multiple
8737 arguments.
8738
6e6fbe60
DE
87392011-02-22 Doug Evans <dje@google.com>
8740
8741 Add gdb.lookup_global_symbol python function.
8742 * NEWS: Add entry.
8743 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8744 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8745 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8746
79b97fa8
TT
87472011-02-22 Tom Tromey <tromey@redhat.com>
8748
8749 * language.c (language_class_name_from_physname): Rename
8750 'curr_language' argument to 'lang'; use in body.
8751
298f437a
MS
87522011-02-22 Michael Snyder <msnyder@vmware.com>
8753
8754 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8755
b7ea3126
PA
87562011-02-22 Pedro Alves <pedro@codesourcery.com>
8757
8758 * frame-unwind.h: Fix comment to mention the this frame, not the
8759 next.
8760
58ee6d60
TT
87612011-02-22 Tom Tromey <tromey@redhat.com>
8762
8763 * symfile.c (auto_solib_limit): Remove.
8764 * symfile.h (auto_solib_limit): Remove.
8765
36238dbc
JB
87662011-02-22 Joel Brobecker <brobecker@adacore.com>
8767
8768 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8769
aea5b279
MS
87702011-02-21 Michael Snyder <msnyder@vmware.com>
8771
8772 * gdbthread.h (print_thread_info): Change prototype.
8773 * thread.c (print_thread_info): Accept char* instead of int for
8774 requested_threads argument. Use new function number_is_in_list
8775 to determine which threads to list.
8776 (info_threads_command): Pass char* to print_thread_info.
8777 * cli/cli-utils.c (number_is_in_list): New function.
8778 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8779 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8780 print_thread_info.
8781 (print_one_inferior): Ditto.
8782 (mi_cmd_list_thread_groups): Ditto.
8783
8caa75ee
JK
87842011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8785
8786 * common/Makefile.in (CFLAGS): New.
8787 (COMPILE): Add $(CFLAGS).
8788
ea666128
TT
87892011-02-21 Tom Tromey <tromey@redhat.com>
8790
8791 * breakpoint.c (catch_syscall_command_1): Fix typo.
8792
e9cafbcc
TT
87932011-02-21 Tom Tromey <tromey@redhat.com>
8794
8795 * reverse.c: Include cli-utils.h.
8796 * printcmd.c: Include cli-utils.h.
8797 (string_printf): Use skip_spaces.
8798 * cli/cli-utils.h: New file.
8799 * cli/cli-utils.c: New file.
8800 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8801 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8802 * breakpoint.h (get_number, get_number_or_range): Move to
8803 cli-utils.h.
8804 * breakpoint.c: Include cli-utils.h.
8805 (get_number_trailer, get_number, get_number_or_range)
8806 (ep_skip_leading_whitespace): Move to cli-utils.c.
8807 (create_breakpoint_sal, find_condition_and_thread)
8808 (decode_static_tracepoint_spec, watch_command_1)
8809 (watch_maybe_just_location, ep_parse_optional_if_clause)
8810 (catch_fork_command_1, catch_exec_command_1)
8811 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8812 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8813 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8814 (HFILES_NO_SRCDIR): Add cli-utils.h.
8815 (cli-utils.o): New target.
8816
f67fd822
PM
88172011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8818
8819 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8820 before calling discard_all_inferiors.
8821
c9def01d
UW
88222011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8823
8824 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8825 (struct builtin_opencl_type): Remove.
8826 (builtin_opencl_type): Change return type to "struct type **".
8827 (lookup_opencl_vector_type): Update caller.
8828 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8829 (build_opencl_types): Install plain array of "struct type *"
8830 instead of "struct builtin_opencl_type".
8831
e3039479
UW
88322011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8833 Ulrich Weigand <uweigand@de.ibm.com>
8834
8835 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8836 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8837 (struct arm_linux_hwbp_cap): New type.
8838 (arm_linux_get_hwbp_cap): New function.
8839 (arm_linux_get_hw_breakpoint_count): Likewise.
8840 (arm_linux_get_hw_watchpoint_count): Likewise.
8841 (arm_linux_can_use_hw_breakpoint): Likewise.
8842 (arm_hwbp_type): New type.
8843 (arm_hwbp_control_t): Likewise.
8844 (struct arm_linux_hw_breakpoint): Likewise.
8845 (struct arm_linux_thread_points): Likewise.
8846 (arm_threads): New global variable.
8847 (arm_linux_find_breakpoints_by_tid): New function.
8848 (arm_hwbp_control_initialize): Likewise.
8849 (arm_hwbp_control_is_enabled): Likewise.
8850 (arm_hwbp_control_disable): Likewise.
8851 (arm_linux_hw_breakpoint_initialize): Likewise.
8852 (arm_linux_get_hwbp_type): Likewise.
8853 (arm_linux_hw_watchpoint_initialize): Likewise.
8854 (arm_linux_hw_breakpoint_equal): Likewise.
8855 (arm_linux_insert_hw_breakpoint1): Likewise.
8856 (arm_linux_remove_hw_breakpoint1): Likewise.
8857 (arm_linux_insert_hw_breakpoint): Likewise.
8858 (arm_linux_remove_hw_breakpoint): Likewise.
8859 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8860 (arm_linux_insert_watchpoint): Likewise.
8861 (arm_linux_remove_watchpoint): Likewise.
8862 (arm_linux_stopped_data_address): Likewise.
8863 (arm_linux_stopped_by_watchpoint): Likewise.
8864 (arm_linux_watchpoint_addr_within_range): Likewise.
8865 (arm_linux_new_thread): Likewise.
8866 (arm_linux_thread_exit): Likewise.
8867 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8868 related target callbacks. Register arm_linux_new_thread and
8869 arm_linux_thread_exit.
8870 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8871 * arm-tdep.c (arm_pc_is_thumb): Make global.
8872 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8873
b5db5dfc
UW
88742011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8875
8876 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8877 per-frame locations while within a function epilogue.
8878
e25b2cfa
PM
88792011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8880
8881 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8882 to GNU coding standards.
8883
4af53f97
PM
88842011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8885
8886 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8887 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8888 (ser_windows_close): Only call CancelIo if function exists.
8889 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8890 to check for existence of CancelIo function in kernel32 DLL.
8891
d0e92d82
HZ
88922011-02-21 Hui Zhu <teawater@gmail.com>
8893
8894 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8895 * ax-gdb.c (gen_printf_expr_callback): New function.
8896 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8897 * ax-general.c (ax_memcpy): New function.
8898 (ax_print): Handle "printf".
8899 (ax_reqs): Ditto.
8900 * ax.h (ax_memcpy): Forward declare.
8901 * common/ax.def (invalid2): Removed.
8902 (printf): New entry.
8903 * printcmd.c (printcmd.h): New include.
8904 (string_printf): New function.
8905 (ui_printf): Removed.
8906 (printf_command): Remove static. Call string_printf.
8907 (eval_command): Call string_printf.
8908 * printcmd.h: New file.
8909 * tracepoint.c (validate_actionline,
8910 encode_actions_1): handle printf_command.
8911
7d357efd
MS
89122011-02-19 Michael Snyder <msnyder@vmware.com>
8913
8914 * reverse.c (delete_one_bookmark): Argument is now bookmark
8915 id rather than pointer to bookmark struct.
8916 (delete_bookmark_command): Use get_number_or_range.
8917 (goto_bookmark_command): Parse with get_number instead of strtoul.
8918 (bookmark_1): New function. Print info for one bookmark.
8919 (bookmarks_info): Use get_number_or_range and bookmark_1.
8920
7a45ebd7
MS
89212011-02-18 Michael Snyder <msnyder@vmware.com>
8922
f2eb0bc8 8923 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8924 get_number_or_range.
65ebfb52 8925 (thread_apply_command): Ditto.
7a45ebd7 8926
94d5e490
TT
89272011-02-18 Tom Tromey <tromey@redhat.com>
8928
8929 * common/ax.def: New file.
8930 * ax.h (enum agent_op): Use ax.def.
8931 * ax-general.c (aop_map): Use ax.def.
8932
c7f96d2b
TT
89332011-02-18 Tom Tromey <tromey@redhat.com>
8934
8935 * ax-general.c (aop_map): Add pick and rot.
8936 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8937 <DW_OP_rot>: Implement.
8938 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8939 (ax_pick): Declare.
8940 * ax-general.c (ax_pick): New function.
8941
66694b75
TT
89422011-02-18 Tom Tromey <tromey@redhat.com>
8943
8944 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8945
eeaafae2
JK
89462011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8947 Tom Tromey <tromey@redhat.com>
8948
8949 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8950 make_symbol_overload_list_block with NULL BLOCK.
8951 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8952
3c3fe74c
PA
89532011-02-18 Pedro Alves <pedro@codesourcery.com>
8954
8955 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8956 * breakpoint.h (get_number_or_range): Declare.
8957 * printcmd.c (ALL_DISPLAYS): Declare.
8958 (delete_display): Reimplement taking a display pointer.
8959 (undisplay_command): Accept a range of displays to delete, using
8960 get_number_or_range.
8961
13163d80
PM
89622011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8963
8964 * c-valprint.c (c_val_print): Add embedded_offset to address
8965 for arrays of unspecified length.
8966 * p-valprint.c (pascal_val_print): Likewise.
8967
b434a28f
YQ
89682011-02-18 Yao Qi <yao@codesourcery.com>
8969
8970 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8971 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8972 (thumb_process_displaced_insn): New.
8973 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8974 call to arm_process_displaced_insn.
8975 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8976
9f6f94ff
TT
89772011-02-17 Tom Tromey <tromey@redhat.com>
8978
8979 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8980 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8981 compile_dwarf_to_ax. No longer static. Call
8982 dwarf2_compile_cfa_to_ax.
8983 (locexpr_tracepoint_var_ref): Update.
8984 (loclist_tracepoint_var_ref): Update.
8985 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8986 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8987 argument; add 'gdbarch' and 'pc'.
8988 (dwarf2_compile_cfa_to_ax): New function.
8989 (dwarf2_frame_cache): Update.
8990
e67ad678
JB
89912011-02-17 Joel Brobecker <brobecker@adacore.com>
8992
8993 * ada-lang.c (ada_type_of_array): Fix the size of the array
8994 in the case of an unconstrained packed array.
8995
946ebb0d
YQ
89962011-02-17 Yao Qi <yao@codesourcery.com>
8997
8998 * common/Makefile.in: Add more targets for make.
8999
1ba1b353
TT
90002011-02-16 Tom Tromey <tromey@redhat.com>
9001
9002 * dwarf2loc.c (unimplemented): Fix typo.
9003
b1bfef65
TT
90042011-02-16 Tom Tromey <tromey@redhat.com>
9005
9006 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9007 (compile_dwarf_to_ax) <default>: Use unimplemented.
9008 <DW_OP_deref>: Update.
9009 (disassemble_dwarf_expression): Update.
9010 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9011 (decode_locdesc): Update.
9012 * dwarf2expr.h (dwarf_stack_op_name): Update.
9013
5f1e6f19
TT
90142011-02-16 Tom Tromey <tromey@redhat.com>
9015
9016 * ax.h (struct aop_map) <name>: Now const.
9017
a0c78a73
PA
90182011-02-16 Tom Tromey <tromey@redhat.com>
9019
9020 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9021 than axs_rvalue.
9022
946ebb0d 90232011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9024
9025 * infrun.c (get_displaced_step_closure_by_addr): New.
9026 * inferior.h: Declare it.
9027 * arm-tdep.c: (arm_pc_is_thumb): Call
9028 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9029 returns non-NULL.
9030
08807d5a
PA
90312011-02-16 Pedro Alves <pedro@codesourcery.com>
9032 Jan Kratochvil <jan.kratochvil@redhat.com>
9033
9034 gdb/
9035 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9036
29976f3f
PA
90372011-02-16 Pedro Alves <pedro@codesourcery.com>
9038 Jan Kratochvil <jan.kratochvil@redhat.com>
9039
9040 * value.c (value_contents_copy_raw): Extend describing comment.
9041 Assert that the destination contents we're overwriting are wholly
9042 available.
fb68ae73 9043 (value_contents_copy): Extend describing comment.
29976f3f 9044
cd24cfaa
PA
90452011-02-16 Pedro Alves <pedro@codesourcery.com>
9046 Jan Kratochvil <jan.kratochvil@redhat.com>
9047
9048 * value.c (value_available_contents_eq): Remove redundant local
9049 variables. Fix available contents comparision.
9050 * value.h (value_available_contents_eq): Extend describing
9051 comment.
9052
60bbf338
YQ
90532011-02-16 Yao Qi <yao@codesourcery.com>
9054
9055 * thread.c (info_threads_command): Add missing i18n markup and remove
9056 trailing newline.
9057
17450429
PP
90582011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9059
9060 * breakpoint.c (longjmp_names): New variable.
9061 (struct breakpoint_objfile_data): New type.
9062 (breakpoint_objfile_key): New variable.
9063 (msym_not_found): New variable.
9064 (msym_not_found_p): New predicate.
9065 (get_breakpoint_objfile_data): New function.
9066 (create_overlay_event_breakpoint): Check per-objfile cache for
9067 symbols first.
9068 (create_longjmp_master_breakpoint): Likewise.
9069 (create_std_terminate_master_breakpoint): Likewise.
9070 (create_exception_master_breakpoint): Likewise.
9071 (_initialize_breakpoint): Register per-objfile data key.
9072
af02033e
PP
90732011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9074
9075 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9076 parameter value.
9077 (create_longjmp_master_breakpoint): Loop over longjmp names.
9078 (create_std_terminate_master_breakpoint): Const-propagate parameter
9079 value.
9080 (update_breakpoints_after_exec): Adjust.
9081 (breakpoint_re_set): Adjust.
9082
60f98dde
MS
90832011-02-15 Michael Snyder <msnyder@vmware.com>
9084
cdf99611
MS
9085 * thread.c (info_threads_command): Process arg as thread id,
9086 or list of thread ids.
9087 (thread_find_command): New command.
9088 (_initialize_thread): Document argument for info threads.
9089 Document 'thread find' command.
9090 * NEWS: Document new command "thread find".
60f98dde 9091
0feedb2c
JK
90922011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9093
9094 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9095 * aclocal.m4: Regenerated with aclocal-1.11.1.
9096 * common/configure: Regenerate with autoconf-2.64.
9097
648cd113
KW
90982011-02-15 Ken Werner <ken.werner@de.ibm.com>
9099
9100 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9101 bool data type to a size of one byte.
9102
5657161f
PA
91032011-02-15 Pedro Alves <pedro@codesourcery.com>
9104 Jan Kratochvil <jan.kratochvil@redhat.com>
9105
9106 * target.c (memory_xfer_live_readonly_partial): Document where to
9107 look for interface description.
9108
494e194e
YQ
91092011-02-15 Yao Qi <yao@codesourcery.com>
9110
9111 PR tdep/12352
9112 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9113 order to store PC value on stack instead of text section.
9114
d9492458
TJB
91152011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9116
9117 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9118 the EFP register set size.
9119 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9120 data from the VMX register.
9121 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9122 and write data from/to the VMX register.
9123
cdf99611
MS
91242011-02-14 Michael Snyder <msnyder@vmware.com>
9125
9126 * command.h (enum command_class): New class 'no_set_class', for
9127 "show" commands without a corresponding "set" command.
9128 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9129 * copying.c (_initialize_copying): Ditto for "show copying" and
9130 "show warranty".
9131 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9132 "show version".
9133 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9134 which there is no corresponding "set" command (eg. "show copying").
9135
424447ee
PA
91362011-02-14 Pedro Alves <pedro@codesourcery.com>
9137 Jan Kratochvil <jan.kratochvil@redhat.com>
9138
9139 * exec.c (section_table_available_memory): Change `len' parameter
9140 type to ULONGEST.
9141 * exec.h (section_table_available_memory): Ditto.
9142 * value.h (read_value_memory): Rename the `offset' parameter to
9143 `embedded_offset'.
9144
c0f61f9c 91452011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9146 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9147
9148 * memrange.c (compare_mem_ranges): Mention sort order in
9149 describing comment.
9150 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9151 * tracepoint.c (traceframe_available_memory): Extend comment to
9152 mention what happens to RESULT when the target does not support
9153 the query.
9154
6bfc80c7
PA
91552011-02-14 Pedro Alves <pedro@codesourcery.com>
9156 Jan Kratochvil <jan.kratochvil@redhat.com>
9157
9158 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9159 range.
9160
e7303042
PA
91612011-02-14 Pedro Alves <pedro@codesourcery.com>
9162
9163 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9164 No longer handle NULL values.
9165
8af8e3bc
PA
91662011-02-14 Pedro Alves <pedro@codesourcery.com>
9167
9168 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9169 * value.c: Include "exceptions.h".
9170 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9171 generic error.
9172 * cp-abi.c: Include gdb_assert.h.
9173 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9174 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9175 errors.
9176 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9177 parameters. No longer returns -1 on error.
9178 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9179 `val' parameters.
9180 * cp-valprint.c: Include exceptions.h.
9181 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9182 the baseclass_offset. Handle unavailable base classes. Use
9183 val_print_invalid_address.
9184 * p-valprint.c: Include exceptions.h.
9185 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9186 when fetching the baseclass_offset. No longer expect
9187 baseclass_offset returning -1. Handle unavailable base classes.
9188 Use val_print_invalid_address.
9189 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9190 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9191 `embedded_offset' and `val' parameters. Adjust.
9192 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9193 parameter, and change its type to gdb_byte pointer. Add
9194 `embedded_offset' and `val' parameters. Adjust. No longer expect
9195 baseclass_offset returning -1.
9196 (value_dynamic_cast): Use value_contents_for_printing rather than
9197 value_contents. Adjust.
9198 (search_struct_field): No longer expect baseclass_offset returning
9199 -1.
9200 (search_struct_method): If reading memory from the target is
9201 necessary, wrap it in a new value to pass to baseclass_offset. No
9202 longer expect baseclass_offset returning -1.
9203 (find_method_list): No longer expect baseclass_offset returning
9204 -1. Use value_contents_for_printing rather than value_contents.
9205 * valprint.c (val_print_invalid_address): New function.
9206 * valprint.h (val_print_invalid_address): Declare.
9207 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9208 and `val' parameters. No longer expect baseclass_offset returning
9209 -1. Adjust.
9210 * gnu-v2-abi.c: Include "exceptions.h".
9211 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9212 parameters. Handle unavailable memory. Recurse through
9213 gnuv2_baseclass_offset directly, rather than through
9214 baseclass_offset. No longer returns -1 on not found, instead
9215 throw an error.
9216 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9217 `val' parameters. Adjust.
9218
1b28d0b3
PA
92192011-02-14 Pedro Alves <pedro@codesourcery.com>
9220
9221 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9222 almost but not quite adjacent.
9223
ec0a52e1
PA
92242011-02-14 Pedro Alves <pedro@codesourcery.com>
9225
9226 * value.h (value_entirely_available): Declare.
9227 * value.c (value_entirely_available): New function.
9228 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9229 real type if the pointer is unavailable.
9230
24e6bcee
PA
92312011-02-14 Pedro Alves <pedro@codesourcery.com>
9232
9233 * valops.c (value_repeat): Use read_value_memory instead of
9234 read_memory.
9235
39d37385
PA
92362011-02-14 Pedro Alves <pedro@codesourcery.com>
9237
9238 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9239 * value.c (value_contents_copy_raw, value_contents_copy): New
9240 functions.
9241 (value_primitive_field): Use value_contents_copy_raw instead of
9242 memcpy.
9243 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9244 memcpy.
9245 (value_array, value_slice): Ditto.
9246 * valarith.c (value_subscripted_rvalue): Use
9247 value_contents_copy_raw instead of memcpy.
9248
a3d34bf4
PA
92492011-02-14 Pedro Alves <pedro@codesourcery.com>
9250
9251 <unavailable> references.
9252
9253 * valops.c (get_value_at): Use value_from_contents_and_address,
9254 avoiding read_memory.
9255
9fc6d940
PA
92562011-02-14 Pedro Alves <pedro@codesourcery.com>
9257
9258 * c-valprint.c (c_val_print): Print a string with unavailable
9259 contents as an array.
9260
5467c6c8
PA
92612011-02-14 Pedro Alves <pedro@codesourcery.com>
9262
9263 * value.h (unpack_bits_as_long): Delete declaration.
9264 (unpack_value_bits_as_long): Declare.
9265 (unpack_value_field_as_long): Declare.
9266 (value_field_bitfield): Declare.
9267 * value.c (unpack_bits_as_long): Rename to...
9268 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9269 value parameters. Return the extracted result in a new output
9270 parameter. If the value contents are unavailable, return false,
9271 otherwise return true.
9272 (unpack_value_bits_as_long): New.
9273 (unpack_field_as_long): Rename to...
9274 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9275 Add embedded_offset and value parameters. Return the extracted
9276 result in a new output parameter. If the value contents are
9277 unavailable, return false, otherwise return true.
9278 (unpack_value_field_as_long): New.
9279 (unpack_field_as_long_1): New.
9280 (unpack_field_as_long): Reimplement as wrapper around
9281 unpack_value_field_as_long_1.
9282 (value_field_bitfield): New function.
9283 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9284 unpack_value_bits_as_long. Mark the value as unavailable, if it
9285 is unavailable.
9286 * jv-valprint.c (java_print_value_fields): Use
9287 value_field_bitfield.
9288 * p-valprint.c (pascal_object_print_value_fields): Use
9289 value_field_bitfield.
9290 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9291
3158c6ed
PA
92922011-02-14 Pedro Alves <pedro@codesourcery.com>
9293
9294 * value.c (get_internalvar_integer): Also return the int value of
9295 TYPE_CODE_INT INTERNALVAR_VALUE values.
9296 (set_internalvar): Don't special case TYPE_CODE_INT.
9297
9fbdca0d
PA
92982011-02-14 Pedro Alves <pedro@codesourcery.com>
9299
9300 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9301 INTERNALVAR_POINTER.
9302 <pointer>: Delete.
9303 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9304 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9305 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9306
c8c1c22f
PA
93072011-02-14 Pedro Alves <pedro@codesourcery.com>
9308
9309 * value.h (value_available_contents_eq): Declare.
9310 * value.c (find_first_range_overlap): New function.
9311 (value_available_contents_eq): New function.
9312 * valprint.c (val_print_array_elements): Use
9313 value_available_contents_eq.
9314 * ada-valprint.c (val_print_packed_array_elements): Use
9315 value_available_contents_eq.
9316 * jv-valprint.c (java_value_print): Use
9317 value_available_contents_eq.
9318
e6e4e701
PA
93192011-02-14 Pedro Alves <pedro@codesourcery.com>
9320
9321 * target.c (target_read_live_memory): New function.
9322 (memory_xfer_live_readonly_partial): New.
9323 (memory_xfer_partial): If reading from a traceframe, fallback to
9324 reading unavailable read-only memory from read-only regions of
9325 live target memory.
9326 * tracepoint.c (disconnect_tracing): Adjust.
9327 (set_current_traceframe): New, factored out from
9328 set_traceframe_number.
9329 (set_traceframe_number): Reimplement to only change the traceframe
9330 number on the GDB side.
9331 (do_restore_current_traceframe_cleanup): Adjust.
9332 (make_cleanup_restore_traceframe_number): New.
9333 (cur_traceframe_number): New global.
9334 (tfile_open): Set cur_traceframe_number to no traceframe.
9335 (set_tfile_traceframe): New function.
9336 (tfile_trace_find): If looking up a traceframe using any method
9337 other than by number, make sure the current tfile traceframe
9338 matches gdb's current traceframe. Update the current tfile
9339 traceframe if the lookup succeeded.
9340 (tfile_fetch_registers, tfile_xfer_partial)
9341 (tfile_get_trace_state_variable_value): Make sure the remote
9342 traceframe matches gdb's current traceframe.
9343 * remote.c (remote_traceframe_number): New global.
9344 (remote_open_1): Set it to -1.
9345 (set_remote_traceframe): New function.
9346 (remote_fetch_registers, remote_store_registers)
9347 (remote_xfer_memory, remote_xfer_partial)
9348 (remote_get_trace_state_variable_value): Make sure the remote
9349 traceframe matches gdb's current traceframe.
9350 (remote_trace_find): If looking up a traceframe using any method
9351 other than by number, make sure the current remote traceframe
9352 matches gdb's current traceframe. Update the current remote
9353 traceframe if the lookup succeeded.
9354 * infrun.c (fetch_inferior_event): Adjust.
9355 * tracepoint.h (set_current_traceframe): Declare.
9356 (get_traceframe_number, set_traceframe_number): Add describing
9357 comments.
9358
e6ca34fc
PA
93592011-02-14 Pedro Alves <pedro@codesourcery.com>
9360
9361 Mark pieces of values as unavailable if the corresponding memory
9362 is unavailable.
9363
9364 * valops.c: Include tracepoint.h.
9365 (value_fetch_lazy): Use read_value_memory.
9366 (read_value_memory): New.
9367 * value.h (read_value_memory): Declare.
9368 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9369 * exec.c (section_table_available_memory): New function.
9370 * exec.h (section_table_available_memory): Declare.
9371
2a7498d8
PA
93722011-02-14 Pedro Alves <pedro@codesourcery.com>
9373
9374 * Makefile.in (SFILES): Add memrange.c.
9375 (HFILES_NO_SRCDIR): Add memrange.h.
9376 (COMMON_OBS): Add memrange.o.
9377 * memrange.c: New file.
9378 * memrange.h: New file.
9379 * tracepoint.c: Include memrange.h.
9380 (struct mem_range): Delete.
9381 (mem_range_s): Delete.
9382 (traceframe_available_memory): New function.
9383 * tracepoint.h (traceframe_available_memory): Declare.
9384
b3b9301e
PA
93852011-02-14 Pedro Alves <pedro@codesourcery.com>
9386
9387 * target.h (struct traceframe_info): Forward declare.
9388 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9389 (struct target_ops) <to_traceframe_info>: New field.
9390 (target_traceframe_info): New.
9391 * target.c (update_current_target): Inherit and default
9392 to_traceframe_info.
9393 * remote.c (PACKET_qXfer_traceframe_info): New.
9394 (remote_protocol_features): Register qXfer:traceframe-info:read.
9395 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9396 (remote_traceframe_info): New.
9397 (init_remote_ops): Install it.
9398 (_initialize_remote): Install "set/show remote traceframe-info"
9399 commands.
9400 * tracepoint.h (parse_traceframe_info): Declare.
9401 * tracepoint.c (struct mem_range): New.
9402 (mem_range_s): New typedef.
9403 (struct traceframe_info): New.
9404 (traceframe_info): New global.
9405 (free_traceframe_info): New function.
9406 (clear_traceframe_info): New function.
9407 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9408 info.
9409 (build_traceframe_info): New function.
9410 (tfile_traceframe_info): New function.
9411 (init_tfile_ops): Install tfile_traceframe_info.
9412 (traceframe_info_start_memory, free_result): New functions.
9413 (memory_attributes, traceframe_info_elements): New globals.
9414 (parse_traceframe_info, get_traceframe_info): New functions.
9415 * features/traceframe-info.dtd: New file.
9416 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9417
4e07d55f
PA
94182011-02-14 Pedro Alves <pedro@codesourcery.com>
9419
9420 Base support for <unavailable> value contents.
9421
4e07d55f
PA
9422 * value.h (value_bytes_available): Declare.
9423 (mark_value_bytes_unavailable): Declare.
9424 * value.c (struct range): New struct.
9425 (range_s): New typedef.
9426 (ranges_overlap): New function.
9427 (range_lessthan): New function.
9428 (ranges_contain_p): New function.
9429 (struct value) <unavailable>: New field.
9430 (value_bytes_available): New function.
9431 (mark_value_bytes_unavailable): New function.
9432 (require_not_optimized_out): Constify parameter.
9433 (require_available): New function.
9434 (value_contents_all, value_contents): Require all bytes be
9435 available.
9436 (value_free): Free `unavailable'.
9437 (value_copy): Copy `unavailable'.
9438 * valprint.h (val_print_unavailable): Declare.
9439 * valprint.c (valprint_check_validity): Rename `offset' parameter
9440 to `embedded_offset'. If printing a scalar, check whether the
9441 value chunk is available.
9442 (val_print_unavailable): New.
9443 (val_print_scalar_formatted): Check whether the value is
9444 available.
9445 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9446 pretty-printing unavailable values.
9447
bc9a5551
JK
94482011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9449
9450 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9451 * c-typeprint.c (c_type_print_args): Update the function comment. New
9452 variable param_type, initialize it. Remove const/volatile qualifiers
9453 for language_cplus and !show_artificial. Use param_type.
9454
93b55aa1
JK
94552011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9456
9457 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9458 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9459 * symtab.h (struct symtab) <next>: Comment extension.
9460
181d9476
YQ
94612011-02-12 Yao Qi <yao@codesourcery.com>
9462
9463 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9464
b708a5c7
JK
94652011-02-11 Yao Qi <yao@codesourcery.com>
9466
9467 * common/Makefile.in: Add copyright header.
9468
c5187ac6
PA
94692011-02-11 Pedro Alves <pedro@codesourcery.com>
9470
9471 * infrun.c (proceed): Move switching out and in of tfind mode from
9472 here ...
9473 (fetch_inferior_event): ... to here.
9474
4f3e6fb7
YQ
94752011-02-11 Yao Qi <yao@codesourcery.com>
9476
9477 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9478 libcommon.a.
9479 * configure.ac: Add common to sub dir.
9480 * configure: Regenerate.
9481
b708a5c7
JK
94822011-02-11 Yao Qi <yao@codesourcery.com>
9483
9484 Build libcommon.a.
9485
9486 * common/Makefile.in: New.
9487 * common/configure.ac: New.
9488 * common/aclocal.m4: New.
9489 * common/configure: Generate.
9490
2287cc7e
PA
94912011-02-10 Pedro Alves <pedro@codesourcery.com>
9492
9493 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9494 side of the parenthesis.
9495
9496 Merge from GCC:
9497 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9498 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9499
fd62cb89
MS
95002011-02-08 Michael Snyder <msnyder@vmware.com>
9501
9502 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9503
56d2815c
JK
95042011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9505
9506 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9507 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9508 psubd and paddd.
9509
4f7d61a8
JK
95102011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9511
9512 PR 12361.
9513 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9514 phsubsw.
9515 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9516 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9517
54fcddd0
UW
95182011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9519
9520 * dwarf2read.c (read_subroutine_type): Set special calling
9521 convention flag for functions compiled by IBM XL C for OpenCL.
9522 * ppc-sysv-tdep.c: Include "dwarf2.h"
9523 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9524 calling convention.
9525 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9526 IBM OpenCL vector types calling convention.
9527 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9528 (ppc_sysv_abi_broken_return_value): Likewise.
9529 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9530 types calling convention.
9531 (ppc64_sysv_abi_return_value): Likewise.
9532 * spu-tdep.c: Include "dwarf2.h"
9533 (spu_return_value): Implement IBM OpenCL vector types calling
9534 convention.
9535
d6dafb7c
UW
95362011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9537
9538 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9539 correct ABI for AltiVec vector arguments.
9540
32b72a42
PA
95412011-02-07 Pedro Alves <pedro@codesourcery.com>
9542
9543 * valprint.c (val_print): Extend comment.
9544 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9545 interface explanation to val_print.
9546 (ada_val_print_array): Adjust comment to current interface.
9547 (print_field_values): Adjust comment to current interface.
9548 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9549 explanation to val_print.
9550 * f-valprint.c (f_val_print): Ditto.
9551 * jv-valprint.c (java_val_print): Ditto.
9552 * m2-valprint.c (m2_val_print): Ditto.
9553 * p-valprint.c (pascal_val_print): Ditto.
9554
9998af43
TJB
95552011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9556
9557 * breakpoint.c (parse_breakpoint_sals): Fix description.
9558
505500db 95592011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9560 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9561
9562 * python/py-inferior.c (python_on_normal_stop): New function.
9563 (python_on_resume): New function.
9564 (python_inferior_exit): New function.
9565 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9566 inferior_exit observers.
9567 * python/py-evtregistry.c: New file.
9568 * python/py-threadevent.c : New file.
9569 * python/py-event.c: New file.
9570 * python/py-evts.c: New file.
9571 * python/py-continueevent.c: New file.
9572 * python/py-bpevent.c: New file.
9573 * python/py-signalevent.c: New file.
9574 * python/py-exetiedevent.c: New file.
9575 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9576 Move struct breakpoint_object from here...
9577 * python/python-internal.h: ... to here.
9578 * python/py-event.h: New file.
9579 * python/py-events.h: New file.
9580 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9581 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9582 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9583 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9584 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9585 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9586 Add build rules for all the above.
9587
9e0ac564
TT
95882011-02-04 Tom Tromey <tromey@redhat.com>
9589
9590 * dwarf2read.c (dwarf2_section_empty_p): New function.
9591 (dwarf2_read_section): Use dwarf2_section_empty_p.
9592 (dwarf2_section_size): New function.
9593 (dwarf2_get_section_info): Unconditionally read section.
9594 (dwarf2_read_index): Use dwarf2_section_empty_p.
9595 (partial_read_comp_unit_head): Use dwarf2_section_size.
9596 (dwarf2_symbol_mark_computed): Likewise.
9597
eee5b35e
DD
95982011-02-04 David Daney <ddaney@caviumnetworks.com>
9599
9600 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9601
385203ed
DD
96022011-02-04 David Daney <ddaney@caviumnetworks.com>
9603
9604 * mips-linux-tdep.c: Include xml-syscall.h.
9605 (mips_linux_get_syscall_number): New function.
9606 (mips_linux_init_abi): Add calls to
9607 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9608 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9609 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9610 * syscalls/mips-n32-linux.xml: New file.
9611 * syscalls/mips-n64-linux.xml: New file.
9612 * syscalls/mips-o32-linux.xml: New file.
9613
9277c30c
UW
96142011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9615
9616 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9617 Complain about inverted range entries.
9618 (dwarf2_record_block_ranges): Likewise.
9619
a3be7890
TJB
96202011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9621
9622 Fix some typos.
9623 * breakpoint.c (update_watchpoint): Fix name of the
9624 update_global_location_list function.
9625 (print_one_breakpoint): Fix typo.
9626 (_initialize_breakpoint): Remove extra space in hbreak help
9627 string.
9628 * breakpoint.h (struct bp_location) <length>: Fix field
9629 description.
9630
041274d8
PA
96312011-02-04 Pedro Alves <pedro@codesourcery.com>
9632
9633 * regcache.c (registers_changed_ptid): Don't explictly always
9634 clear `current_regcache'. Only clear current_thread_ptid and
9635 current_thread_arch when PTID matches. Only reinit the frame
9636 cache if PTID matches the current inferior_ptid. Move alloca(0)
9637 call to ...
9638 (registers_changed): ... here.
9639
c1c2ab58
UW
96402011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9641
9642 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9643 starts with __stack_chk_guard as stack guard symbol.
9644
9011945e
AB
96452011-02-03 Andrew Burgess <aburgess@broadcom.com>
9646
9647 * disasm.c (compare_lines): Handle the end of sequence markers
9648 within the line table to better support disassembling over
9649 compilation unit boundaries.
9650
e0634ccf
UW
96512011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9652
9653 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9654 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9655 implementation even if no symbols are available.
9656 (thumb_analyze_prologue): Update call to skip_prologue_function.
9657 (arm_analyze_prologue): Likewise.
9658
0e9e9abd
UW
96592011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9660
9661 * arm-tdep.c: Include "observer.h".
9662 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9663 (arm_exidx_data_key): New static variable.
9664 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9665 (struct arm_exidx_data): Likewise.
9666 (arm_exidx_data_free): New function.
9667 (arm_compare_exidx_entries): Likewise.
9668 (arm_obj_section_from_vma): Likewise.
9669 (arm_exidx_new_objfile): Likewise.
9670 (arm_find_exidx_entry): Likewise.
9671 (arm_exidx_fill_cache): Likewise.
9672 (arm_exidx_unwind_sniffer): Likewise.
9673 (arm_exidx_unwind): New global variable.
9674 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9675 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9676 observer. Register arm_exidx_data_key as objfile data.
9677
2e9e421f
UW
96782011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9679
9680 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9681 due to accessing uninitialized variable. Fix indentation.
9682
580688f3
PA
96832011-02-02 Pedro Alves <pedro@codesourcery.com>
9684
9685 * c-valprint.c (c_value_print): When doing virtual base pointer
9686 adjustment, create a new value with adjusted contents rather than
9687 changing the contents of the value being printed (and getting it
9688 wrong).
9689
3d2c1d41
PA
96902011-02-02 Pedro Alves <pedro@codesourcery.com>
9691
9692 * xml-support.c (xml_find_attribute): New.
9693 (xinclude_start_include): Use it.
9694 * xml-support.h (xml_find_attribute): Declare.
9695 * memory-map.c (memory_map_start_memory)
9696 (memory_map_start_property): Use xml_find_attribute.
9697 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9698 xml_find_attribute.
9699 * remote.c (start_thread): Use xml_find_attribute.
9700 * solib-target.c (library_list_start_segment)
9701 (library_list_start_section, library_list_start_library)
9702 (library_list_start_list): Use xml_find_attribute.
9703 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9704 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9705 (tdesc_start_field): Use xml_find_attribute.
9706
0af3e2db
UW
97072011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9708
9709 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9710 (BUILD_OCL_VTYPES): Update.
9711
c1039e3c
JB
97122011-02-02 Joel Brobecker <brobecker@adacore.com>
9713
9714 * configure.ac: Work around non-GNU sed limitation when computing
9715 python version number.
9716 * configure: Regenerate.
9717
600ea1be
JK
97182011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 Fix debug printing of TYPE_INSTANCE.
9721 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9722 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9723
56c12414
JK
97242011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9725
9726 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9727 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9728 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9729 * ada-operator.inc: Rename the file to ...
9730 * ada-operator.def: ... here, wrap all the entries by macro OP.
9731 * expprint.c (op_name_standard): Remove all the entries. Include
9732 "std-operator.def" instead.
9733 * expression.h (enum exp_opcode): Include "std-operator.def" and
9734 "ada-operator.def". Move all the entries ...
9735 * std-operator.def: ... here, wrap all the entries by macro OP.
9736
c52b559d
PP
97372011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9738
9739 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9740 * breakpoint.c (remove_jit_event_breakpoints): New function.
9741 * jit.c (jit_descriptor_addr): Delete.
9742 (registering_code): Delete.
9743 (clear_int): Delete.
9744 (jit_inferior_data): New variable.
9745 (struct jit_inferior_data): New type.
9746 (get_jit_inferior_data): New function.
9747 (jit_inferior_data_cleanup): New function.
9748 (jit_read_descriptor): Adjust.
9749 (jit_register_code): Adjust.
9750 (jit_breakpoint_re_set_internal): New function; move code here ...
9751 (jit_inferior_init): ... from here.
9752 (jit_breakpoint_re_set): Adjust.
9753 (jit_reset_inferior_data_and_breakpoints): New function.
9754 (jit_inferior_created_observer): Adjust.
9755 (jit_inferior_exit_hook): Adjust.
9756 (jit_executable_changed_observer): New function.
9757 (jit_event_handler): Adjust.
9758 (_initialize_jit): Adjust.
9759
e839132d
MS
97602011-01-31 Michael Snyder <msnyder@vmware.com>
9761
9762 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9763 line.
9764
47a80e90
TT
97652011-01-31 Tom Tromey <tromey@redhat.com>
9766
9767 PR python/12216:
9768 * python/python.c (execute_gdb_command): Call
9769 prevent_dont_repeat.
9770 * top.c (suppress_dont_repeat): New global.
9771 (dont_repeat): Use it.
9772 (prevent_dont_repeat): New function.
9773 * command.h (prevent_dont_repeat): Declare.
9774
45a43567
TT
97752011-01-31 Tom Tromey <tromey@redhat.com>
9776
9777 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9778 * python/py-breakpoint.c (bppy_set_silent): Use
9779 breakpoint_set_silent.
9780 (bppy_set_thread): Use breakpoint_set_thread.
9781 (bppy_set_task): Use breakpoint_set_task.
9782 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9783 (breakpoint_set_task): Declare.
9784 (make_breakpoint_silent): Remove.
9785 * breakpoint.c (breakpoint_set_silent): New function.
9786 (breakpoint_set_thread): Likewise.
9787 (breakpoint_set_task): Likewise.
9788 (make_breakpoint_silent): Remove.
9789
09d682a4
TT
97902011-01-31 Tom Tromey <tromey@redhat.com>
9791
9792 * breakpoint.h (user_breakpoint_p): Declare.
9793 * breakpoint.c (user_breakpoint_p): New function.
9794 (breakpoint_1): Use it.
9795 (save_breakpoints): Likewise.
9796
9c4ea6c5
JB
97972011-01-31 Joel Brobecker <brobecker@adacore.com>
9798
9799 * configure.ac: Add handling of Python distribution on Windows.
9800 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9801 sysconfig variables are not defined, then do not use them.
9802 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9803 instead. On Windows, return all paths using forward-slashes
9804 rather than backslashes.
9805
ac534cba
JB
98062011-01-31 Joel Brobecker <brobecker@adacore.com>
9807
9808 * configure.ac: Remove fallback behavior for building
9809 against Python. Remove tweaking of Python include path.
9810 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9811 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9812 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9813 Always restore CPPFLAGS and LIBS after linking test.
9814 * configure: Regenerated.
9815 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9816 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9817 * python/python-internal.h: Adjust includes of Python .h files.
9818
c2f0d045
JB
98192011-01-31 Joel Brobecker <brobecker@adacore.com>
9820
9821 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9822 in error message.
9823
6b0c4c1f
JB
98242011-01-31 Joel Brobecker <brobecker@adacore.com>
9825
9826 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9827 value test.
9828
672c9795
YQ
98292011-01-31 Yao Qi <yao@codesourcery.com>
9830
9831 * arm-linux-nat.c: Update calls to regcache_register_status
9832 instead of regcache_valid_p.
9833 * aix-thread.c: Likewise.
9834 * i386gnu-nat.c: Likewise.
9835
80b23b6a
JK
98362011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9837
9838 Fix crash.
9839 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9840 touching TYPE_FIELD_ARTIFICIAL.
9841
4cd712bd
RE
98422011-01-28 Richard Earnshaw <rearnsha@arm.com>
9843
9844 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9845 Committers.
9846
ffd5ec24
PA
98472011-01-28 Pedro Alves <pedro@codesourcery.com>
9848
9849 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9850 selected, don't try iterating over the traceframe's blocks.
9851 (tfile_has_stack): If there's no traceframe selected, then there's
9852 no stack.
9853 (tfile_has_registers): If there's no traceframe selected, then
9854 there's no registers.
9855
e8c9e0a1
PA
98562011-01-28 Pedro Alves <pedro@codesourcery.com>
9857
9858 * target.c (memory_xfer_partial): No need to restore shadows if we
9859 haven't read anything.
9860
de15c4ab
PA
98612011-01-28 Pedro Alves <pedro@codesourcery.com>
9862
9863 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9864 and val_print_scalar_formatted.
9865
9f41c731
PA
98662011-01-27 Pedro Alves <pedro@codesourcery.com>
9867
9868 * tracepoint.c (tfile_read): New.
9869 (tfile_open): Use it.
9870 (tfile_get_traceframe_address): Use it.
9871 (tfile_trace_find): Use it.
9872 (walk_blocks_callback_func): New typedef.
9873 (match_blocktype): New function.
9874 (traceframe_walk_blocks): New function.
9875 (traceframe_find_block_type): New function.
9876 (tfile_fetch_registers, tfile_xfer_partial)
9877 (tfile_get_trace_state_variable_value): Use
9878 traceframe_find_block_type and tfile_read.
9879
cdefc55d
KB
98802011-01-26 Kevin Buettner <kevinb@redhat.com>
9881
9882 * remote-mips.c: Add internationalization mark ups. Remove
9883 trailing \n from already marked up strings.
9884
a81766d8
TT
98852011-01-26 Tom Tromey <tromey@redhat.com>
9886
9887 * python/py-prettyprint.c (print_string_repr): Clear
9888 'addressprint' option when calling val_print_string.
9889 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9890 option when calling val_print_string.
9891
74aedc46
TT
98922011-01-26 Tom Tromey <tromey@redhat.com>
9893
9894 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9895 GDB_PY_LL_ARG.
9896 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9897 macros.
9898 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9899 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9900 (gdb_py_long_as_ulongest): New defines.
9901 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9902 (gdb_py_int_as_long): Declare.
9903 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9904 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9905 (valpy_long): Add comment.
9906 * python/py-utils.c (get_addr_from_python): Use
9907 gdb_py_long_as_ulongest. Handle overflow properly.
9908 (gdb_py_object_from_longest): New function.
9909 (gdb_py_object_from_ulongest): Likewise.
9910 (gdb_py_int_as_long): Likewise.
9911 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9912 * python/py-symtab.c (salpy_get_pc): Use
9913 gdb_py_long_from_ulongest.
9914 (salpy_get_line): Use PyInt_FromLong.
9915 * python/py-param.c (set_parameter_value): Use
9916 gdb_py_int_as_long.
9917 * python/py-lazy-string.c (stpy_get_address): Use
9918 gdb_py_long_from_ulongest.
9919 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9920 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9921 * python/py-breakpoint.c (bppy_set_thread): Use
9922 gdb_py_int_as_long.
9923 (bppy_set_task): Likewise.
9924 (bppy_set_ignore_count): Likewise.
9925 (bppy_set_hit_count): Likewise.
9926 * python/py-block.c (blpy_get_start): Use
9927 gdb_py_object_from_ulongest.
9928 (blpy_get_end): Likewise.
9929 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9930
e4f6d2ec
TJB
99312011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9932
9933 PR/symtab 11766:
9934 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9935 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9936 equality test for objfile, initialize addr_low if needed.
9937
b30aa278
PA
99382011-01-25 Pedro Alves <pedro@codesourcery.com>
9939
9940 * tui/tui-regs.c (tui_register_format): Remove dead code.
9941
ab2188aa
PA
99422011-01-25 Pedro Alves <pedro@codesourcery.com>
9943
9944 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9945 instead of print_scalar_formatted.
9946 (print_scalar_formatted): Don't handle 's' format strings here,
9947 and add an assertion that we never see such format here.
9948 * valprint.h (val_print_scalar_formatted): Declare.
9949 * valprint.c (val_print_scalar_formatted): New.
9950 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9951 instead of print_scalar_formatted.
9952 * jv-valprint.c (java_val_print): Ditto.
9953 * p-valprint.c (pascal_val_print): Ditto.
9954 * ada-valprint.c (ada_val_print_1): Ditto.
9955 * f-valprint.c (f_val_print): Ditto.
9956 * infcmd.c (registers_info): Ditto.
9957 * m2-valprint.c (m2_val_print): Ditto.
9958
66d61a4c
PA
99592011-01-25 Pedro Alves <pedro@codesourcery.com>
9960
9961 * m2-valprint.c (print_unbounded_array): Pass
9962 value_contents_for_printing rather than value_contents, to
9963 m2_print_array_contents. Also pass in the value.
9964
831adc1f
JK
99652011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9966
9967 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9968 (save_gdb_index_command): Switch to .gdb_index version 4.
9969
20622269
PA
99702011-01-25 Pedro Alves <pedro@codesourcery.com>
9971
9972 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9973 than frame_register, and always pass a valid value to val_print.
9974
585fdaa1
PA
99752011-01-25 Pedro Alves <pedro@codesourcery.com>
9976
9977 Centralize printing "<optimized out>".
9978
9979 * valprint.h (val_print_optimized_out): Declare.
9980 * cp-valprint.c (cp_print_value_fields): Use
9981 val_print_optimized_out.
9982 * jv-valprint.c (java_print_value_fields): Ditto.
9983 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9984 * printcmd.c (print_formatted): Ditto.
9985 * valprint.c (valprint_check_validity): Ditto.
9986 (value_check_printable): Ditto.
9987 (val_print_optimized_out): New.
9988
29ec5263
PA
99892011-01-25 Pedro Alves <pedro@codesourcery.com>
9990
9991 * infcmd.c (default_print_registers_info): Allocate values so to
9992 never pass a NULL value to val_print.
9993
de4127a3
PA
99942011-01-25 Pedro Alves <pedro@codesourcery.com>
9995
9996 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9997 boolean. Make sure to always pass a value that matches the
9998 contents buffer to callees. Preserve `address' for following
9999 iterations.
10000 * value.c (value_contents_for_printing_const): New.
10001 (value_address): Constify value argument.
10002 * value.h (value_contents_for_printing_const): Declare.
10003 (value_address): Constify value argument.
10004
ee99023e
PA
100052011-01-25 Pedro Alves <pedro@codesourcery.com>
10006
10007 * regcache.c (struct regcache_descr): Rename
10008 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10009 and sizeof_cooked_register_valid_p to
10010 sizeof_cooked_register_status.
10011 (init_regcache_descr): Adjust.
10012 (struct regcache): Rename register_valid_p field to
10013 register_status.
10014 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10015 (do_cooked_read): Adjust.
10016 (regcache_valid_p): Rename to ...
10017 (regcache_register_status): ... this. Adjust.
10018 (regcache_invalidate): Adjust.
10019 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10020 Adjust.
10021 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10022 as unavailable, not valid.
10023 (regcache_dump): Adjust.
10024 * regcache.h (enum register_status): New.
10025 (regcache_register_status): Declare.
10026 (regcache_invalidate): Delete declaration.
10027 * corelow.c (get_core_registers): Adjust.
10028 * tracepoint.c (tfile_fetch_registers): Adjust.
10029 * trad-frame.c (REG_VALUE): Rename to ...
10030 (TF_REG_VALUE): ... this.
10031 (REG_UNKNOWN): Rename to ...
10032 (TF_REG_UNKNOWN): ... this.
10033 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10034 * mi/mi-main.c (register_changed_p): Adjust.
10035
99e42fd8
PA
100362011-01-25 Pedro Alves <pedro@codesourcery.com>
10037
10038 * regcache.c (struct regcache_descr): Remove outdated comment.
10039 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10040 overallocate hack.
10041 (regcache_xmalloc): Rename to ...
10042 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10043 Allocate the regcache type accordingly.
10044 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10045 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10046 cooked registers, not raw.
10047 (regcache_dup_no_passthrough): Delete.
10048 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10049 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10050 mention obsolete write_register_bytes.
10051 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10052
f7605bc2
PA
100532011-01-25 Pedro Alves <pedro@codesourcery.com>
10054
10055 Stop remote_read_bytes from handling partial reads itself.
10056
10057 * remote-fileio.c: Include target.h.
10058 (remote_fileio_write_bytes): Delete.
10059 (remote_fileio_func_open, remote_fileio_func_write)
10060 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10061 target_read_memory.
10062 (remote_fileio_func_stat): Use target_read_memory and
10063 target_write_memory.
10064 (remote_fileio_func_gettimeofday): Use target_write_memory.
10065 (remote_fileio_func_system): Use target_read_memory.
10066 * remote.c (remote_write_bytes): Make it static.
10067 (remote_read_bytes): Don't handle partial reads here.
10068 * remote.h (remote_read_bytes): Delete declaration.
10069
efc0eabd
PA
100702011-01-25 Pedro Alves <pedro@codesourcery.com>
10071
10072 Simplify XML parsing a bit.
10073
10074 * xml-support.h (gdb_xml_parse_quick): Declare.
10075 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10076 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10077 parameter.
10078 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10079 gdb_xml_create_parser_and_cleanup_1.
10080 (gdb_xml_parse_quick): New.
10081 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10082 * osdata.c (osdata_parse): Ditto.
10083 * remote.c (remote_threads_info): Ditto.
10084 * solib-target.c (solib_target_parse_libraries): Ditto.
10085 * xml-syscall.c (syscall_parse_xml): Ditto.
10086 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10087
314d366a
KB
100882011-01-24 Kevin Buettner <kevinb@redhat.com>
10089
10090 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10091 with remote-mips.o added to gdb_target_obs.
10092 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10093
a491d753
PA
100942011-01-24 Pedro Alves <pedro@codesourcery.com>
10095
10096 * ada-valprint.c (val_print_packed_array_elements): Pass the
10097 correct struct value to val_print.
10098 (ada_val_print_1): Ditto.
10099
490f124f
PA
101002011-01-24 Pedro Alves <pedro@codesourcery.com>
10101
10102 Don't lose embedded_offset in printing routines throughout.
10103
10104 * valprint.h (val_print_array_elements): Change prototype.
10105 * valprint.c (val_print_array_elements): Add `embedded_offset'
10106 parameter, and adjust to pass it down to val_print, while passing
10107 `valaddr' or `address' unmodified. Take embedded_offset into
10108 account when checking repetitions.
10109 * c-valprint.c (c_val_print): Pass embedded_offset to
10110 val_print_array_elements instead of adjusting `valaddr' and
10111 `address'.
10112 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10113 embedded_offset to val_print_array_elements instead of adjusting
10114 `valaddr'.
10115 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10116 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10117 val_print_array_elements and pascal_object_print_value_fields
10118 instead of adjusting `valaddr'.
10119 (pascal_object_print_value_fields): Add `offset' parameter, and
10120 adjust to use it.
10121 (pascal_object_print_value): Add `offset' parameter, and adjust to
10122 use it.
10123 (pascal_object_print_static_field): Use
10124 value_contents_for_printing/value_embedded_offset, rather than
10125 value_contents.
10126 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10127 parameter, and adjust to use it. Use
10128 value_contents_for_printing/value_embedded_offset, rather than
10129 value_contents.
10130 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10131 (ada_val_print_array): Add `offset' parameter, and adjust to use
10132 it.
10133 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10134 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10135 Instead work with offsets. Use
10136 value_contents_for_printing/value_embedded_offset, rather than
10137 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10138 and use value_from_pointer to extract a target pointer, rather
10139 than value_from_longest.
10140 (print_variant_part): Add `offset' parameter. Replace
10141 `outer_valaddr' parameter by a new `outer_offset' parameter.
10142 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10143 (ada_value_print): Use
10144 value_contents_for_printing/value_embedded_offset, rather than
10145 value_contents.
10146 (print_record): Add `offset' parameter, and adjust to pass it
10147 down.
10148 (print_field_values): Add `offset' parameter. Replace
10149 `outer_valaddr' parameter by a new `outer_offset' parameter.
10150 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10151 Use value_contents_for_printing/value_embedded_offset, rather than
10152 value_contents.
10153 * d-valprint.c (dynamic_array_type): Use
10154 value_contents_for_printing/value_embedded_offset, rather than
10155 value_contents.
10156 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10157 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10158 (java_print_value_fields): Take `offset' into account. Don't
10159 re-adjust `valaddr'. Instead pass down adjusted offsets.
10160 (java_val_print): Take `embedded_offset' into account. Pass it to
10161 java_print_value_fields.
10162 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10163 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10164 down adjusted offsets.
10165 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10166 (f_val_print): Take `embedded_offset' into account.
10167
7bfc9434
JB
101682011-01-21 Joel Brobecker <brobecker@adacore.com>
10169
10170 * inflow.c: Include "gdbcmd.h".
10171 (interactive_mode): New static global, moved here from top.c.
10172 (show_interactive_mode): New function, moved here from top.c.
10173 use gdb_has_a_terminal instead of input_from_terminal_p to
10174 determine the current mode.
10175 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10176 setting.
10177 (_initialize_inflow): Add the "set/show interactive-mode"
10178 commands. Moved here from top.c, after having adjusted slightly
10179 the help text.
10180 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10181 to inflow.c.
10182 (input_from_terminal_p): Remove handling of "interactive-mode"
10183 setting, moved to infow.c.
10184 (init_main): Remove creation of the "set/show interactive-mode"
10185 commands, moved to inflow.c.
10186
44603653
JB
101872011-01-19 Joel Brobecker <brobecker@adacore.com>
10188
10189 * NEWS: Add entry for native ia64-hpux support.
10190
4694da01
TT
101912011-01-19 Tom Tromey <tromey@redhat.com>
10192
10193 PR mi/8618:
10194 * thread.c (free_thread): Free 'name'.
10195 (print_thread_info): Emit thread name. Change CLI output.
10196 (thread_name_command): New function.
10197 (do_captured_thread_select): Emit newline.
10198 (_initialize_thread): Register 'thread name' command.
10199 * target.h (struct target_ops) <to_thread_name>: New field.
10200 (target_thread_name): New macro.
10201 * target.c (update_current_target): Handle to_thread_name.
10202 * python/py-infthread.c (thpy_get_name): New function.
10203 (thpy_set_name): Likewise.
10204 (thread_object_getset): Add "name".
10205 * linux-nat.c (linux_nat_thread_name): New function.
10206 (linux_nat_add_target): Set to_thread_name.
10207 * gdbthread.h (struct thread_info) <name>: New field.
10208
10d44370
JB
102092011-01-18 Joel Brobecker <brobecker@adacore.com>
10210
10211 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10212 (ada_val_print_1): Likewise.
10213
e3acb115
JB
102142011-01-18 Joel Brobecker <brobecker@adacore.com>
10215
10216 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10217 upper limit address is not greater than the function end address
10218 when the upper limit could not be computed using the debugging
10219 info.
10220
dc92e161
TT
102212011-01-17 Tom Tromey <tromey@redhat.com>
10222
10223 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10224 get_regcomp_error.
10225 * utils.c: Include gdb_regex.h.
10226 (do_regfree_cleanup): New function.
10227 (make_regfree_cleanup): Likewise.
10228 (get_regcomp_error): Likewise.
10229 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10230
f55af66d
TT
102312011-01-17 Tom Tromey <tromey@redhat.com>
10232
10233 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10234 re_compile_fastmap.
10235
a5a44b53
PM
102362011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10237
10238 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10239 for internal variables.
10240 (last_was_structop): New static variable.
10241 (COMPLETE): New token.
10242 (field_exp): New rule to group all '.' suffix handling.
10243 Add mark_struct_expression calls when approriate to be able
10244 to correctly find fields for completion.
10245 (yylex): Adapt to handle field completion and set INTVAR when
10246 required.
10247
2c291032
YQ
102482011-01-14 Yao Qi <yao@codesourcery.com>
10249
10250 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10251 save_reggroup, restore_reggroup and all_reggroup.
10252
447b483c
JB
102532011-01-14 Joel Brobecker <brobecker@adacore.com>
10254
10255 * ada-valprint. (ada_printchar): Use the correct type length
10256 in call to ada_emit_char.
10257 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10258
7b64a93b
PM
102592011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10260
10261 * solib-som.h (hpux_major_release): Declare variable here.
10262 * solib-som.c: Remove <sys/utsname.h> header.
10263 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10264 (hpux_major_release): Make global, change default value to
10265 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10266 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10267 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10268 Add "solib-som.h" header.
10269 (set_hpux_major_release): New function.
10270 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10271
4e18c053
MF
102722011-01-14 Mike Frysinger <vapier@gentoo.org>
10273
10274 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10275
a9df6b22
JB
102762011-01-14 Joel Brobecker <brobecker@adacore.com>
10277
10278 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10279 new-line at end of warning message.
10280 (ia64_hpux_store_register): Remove trailing new-line at end of
10281 error message.
10282 * ia64-hpux-tdep.c: Rephrase comment.
10283 * solib-ia64-hpux.c (struct dld_info): Change type of field
10284 dld_flags from "long long" to ULONGEST.
10285
ecb956dd
PA
102862011-01-14 Pedro Alves <pedro@codesourcery.com>
10287
10288 * target.h (deprecated_child_ops): Delete declaration.
10289 * target.c (deprecated_child_ops): Delete definition.
10290
76adfcae
PA
102912011-01-14 Pedro Alves <pedro@codesourcery.com>
10292
10293 * Makefile.in (hpux-thread.o): Delete rule.
10294 * configure.ac: Don't check for HPUX DCE threads support.
10295 * configure, config.in: Regenerate.
10296 * hppa-hpux-nat.c (child_suppress_run): Delete.
10297 (hppa_hpux_child_can_run): Delete.
10298 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10299 * hpux-thread.c: Delete.
10300
042e866e
JB
103012011-01-13 Joel Brobecker <brobecker@adacore.com>
10302
10303 * hpux-thread.c (hpux_pid_to_str): Delete.
10304
4ffa5a33
JB
103052011-01-13 Joel Brobecker <brobecker@adacore.com>
10306
10307 * ada-valprint.c (ada_emit_char): Remove strange code.
10308 Check that c is <= UCHAR_MAX before passing it to isascii.
10309 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10310
de8fa76c
JB
103112011-01-13 Joel Brobecker <brobecker@adacore.com>
10312
10313 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10314 to the case where instream is stdin.
10315
c4de7027
JB
103162011-01-13 Joel Brobecker <brobecker@adacore.com>
10317
10318 * ia64-tdep.h (struct regcache): Forward declare.
10319 (struct ia64_infcall_ops): New struct type.
10320 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10321 and "infcall_ops".
10322 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10323 Renames ia64_find_global_pointer.
10324 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10325 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10326 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10327 methods.
10328 (ia64_infcall_ops): New static global constant.
10329 (ia64_gdbarch_init): Set tdep->infcall_ops.
10330 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10331 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10332 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10333 (ia64_hpux_dummy_code): New static global constant.
10334 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10335 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10336 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10337 New function.
10338 (ia64_hpux_infcall_ops): New static global constant.
10339 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10340 for inferior function calls to work properly on ia64-hpux.
10341
77ca787b
JB
103422011-01-13 Joel Brobecker <brobecker@adacore.com>
10343
10344 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10345 * ia64-tdep.h (struct frame_info): forward declaration.
10346 (struct gdbarch_tdep): Add field size_of_register_frame.
10347 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10348 to determine the size of the register frame.
10349 (ia64_size_of_register_frame): New function.
10350 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10351 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10352 (IA64_HPUX_UREG_REASON): New macro.
10353 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10354 New functions.
10355 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10356 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10357 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10358 objects.
10359
92c9a463
JB
103602011-01-13 Joel Brobecker <brobecker@adacore.com>
10361
10362 Add support for ia64-hpux.
10363 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10364 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10365
10366 * configure.host: Add handling for ia64-hpux hosts. Add associated
10367 floatformats.
10368 * configure.tgt: Add handling for ia64-hpux targets.
10369 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10370 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10371 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10372
f688d93f
JB
103732011-01-13 Joel Brobecker <brobecker@adacore.com>
10374
10375 [ttrace] Compute thread list immediately after attach.
10376 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10377 New subprogram.
10378 (inf_ttrace_attach): Use it.
10379
1b89e62f
JB
103802011-01-13 Joel Brobecker <brobecker@adacore.com>
10381
10382 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10383 if we could not determine the frame's function address. Instead,
10384 use the frame's PC, and then continue.
10385
3e5e6e2a
JB
103862011-01-13 Joel Brobecker <brobecker@adacore.com>
10387
10388 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10389 not already defined.
10390
825d6d8a
JB
103912011-01-13 Joel Brobecker <brobecker@adacore.com>
10392
10393 * ia64-tdep.c (ia64_struct_type_p): New function.
10394 (ia64_extract_return_value): Handle integral values that are
10395 less than 8 bytes long.
10396 (ia64_push_dummy_call): Likewise.
10397
7458e667
JB
103982011-01-13 Joel Brobecker <brobecker@adacore.com>
10399
10400 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10401 floatformat_ia64_ext.
10402 (floatformat_ia64_ext_big): New static const.
10403 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10404
1b05df00
TT
104052011-01-12 Tom Tromey <tromey@redhat.com>
10406
10407 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10408 messages.
10409 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10410 (mi_cmd_thread_list_ids): Likewise.
10411 (mi_cmd_data_list_changed_registers): Likewise.
10412 (mi_cmd_data_list_register_values): Likewise.
10413 (mi_cmd_data_write_register_values): Likewise.
10414 (mi_cmd_data_evaluate_expression): Likewise.
10415 (mi_cmd_data_read_memory): Likewise.
10416 (mi_cmd_data_read_memory_bytes): Likewise.
10417 (mi_cmd_data_write_memory): Likewise.
10418 (mi_cmd_enable_timings): Likewise.
10419 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10420 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10421 (mi_cmd_var_delete): Likewise.
10422 (mi_cmd_var_set_format): Likewise.
10423 (mi_cmd_var_show_format): Likewise.
10424 (mi_cmd_var_info_num_children): Likewise.
10425 (mi_cmd_var_list_children): Likewise.
10426 (mi_cmd_var_info_type): Likewise.
10427 (mi_cmd_var_info_expression): Likewise.
10428 (mi_cmd_var_show_attributes): Likewise.
10429 (mi_cmd_var_assign): Likewise.
10430 (mi_cmd_var_update): Likewise.
10431 (mi_cmd_enable_pretty_printing): Likewise.
10432 (mi_cmd_var_set_update_range): Likewise.
10433 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10434 messages.
10435 (mi_cmd_target_file_put): Likewise.
10436 (mi_cmd_target_file_delete): Likewise.
10437 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10438 messages.
10439 (mi_cmd_stack_info_depth): Likewise.
10440 (mi_cmd_stack_list_locals): Likewise.
10441 (mi_cmd_stack_list_args): Likewise.
10442 (mi_cmd_stack_select_frame): Likewise.
10443 (mi_cmd_stack_select_frame): Likewise.
10444 (mi_cmd_stack_info_frame): Likewise.
10445 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10446 messages.
10447 (mi_cmd_file_list_exec_source_files): Likewise.
10448 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10449 (mi_cmd_env_cd): Likewise.
10450 (mi_cmd_env_path): Likewise.
10451 (mi_cmd_env_dir): Likewise.
10452 (mi_cmd_inferior_tty_show): Likewise.
10453 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10454 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10455 (mi_cmd_break_watch): Likewise.
10456
ad422571
TJB
104572011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10458
10459 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10460 (ppc_linux_insert_hw_breakpoint): Likewise.
10461 (ppc_linux_remove_hw_breakpoint): Likewise.
10462 (ppc_linux_insert_watchpoint): Likewise.
10463
c2ff108b
JK
104642011-01-12 Andrew Burgess <aburgess@broadcom.com>
10465 Jan Kratochvil <jan.kratochvil@redhat.com>
10466
10467 PR fortran/11104 and DWARF unbound arrays detection.
10468 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10469 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10470 unspecified upper bound.
10471 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10472 variables array_size_array, tmp_type and offset_item. New variable
10473 array. Remove call to f77_get_upperbound. New variables array_type
10474 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10475 the final call to deprecated_set_value_type.
10476
41e8491f
JK
104772011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10478
10479 Make value allocations more lazy.
10480 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10481 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10482 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10483 instead of allocate_value and set_value_lazy.
10484 * findvar.c (value_of_register_lazy): Likewise.
10485 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10486 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10487 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10488 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10489 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10490 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10491 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10492 the end, remove set_value_lazy there.
10493 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10494 instead of allocate_value and set_value_lazy when possible.
10495 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10496 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10497 of allocate_value and set_value_lazy.
10498 (value_from_contents_and_address): Use allocate_value_lazy instead of
10499 allocate_value and set_value_lazy when possible.
10500
b716877b
AB
105012011-01-12 Andrew Burgess <aburgess@broadcom.com>
10502
10503 * disasm.c (dump_insns): Support dumping opcodes for MI.
10504 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10505 dumping of instruction opcodes.
10506
d5ae309f
JB
105072011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10508
10509 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10510 appropiately.
10511
98871305
TT
105122011-01-11 Tom Tromey <tromey@redhat.com>
10513
10514 * thread.c (do_captured_thread_select): Emit newline before
10515 printing frame.
10516
c378eb4e
MS
105172011-01-11 Michael Snyder <msnyder@vmware.com>
10518
10519 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10520 * score-tdep.c: Ditto.
10521 * score-tdep.h: Ditto.
10522 * ser-base.c: Ditto.
10523 * ser-go32.c: Ditto.
10524 * serial.c: Ditto.
10525 * serial.h: Ditto.
10526 * ser-mingw.c: Ditto.
10527 * ser-pipe.c: Ditto.
10528 * ser-tcp.c: Ditto.
10529 * ser-unix.c: Ditto.
10530 * sh64-tdep.c: Ditto.
10531 * shnbsd-nat.c: Ditto.
10532 * sh-tdep.c: Ditto.
10533 * sh-tdep.h: Ditto.
10534 * solib.c: Ditto.
10535 * solib-darwin.c: Ditto.
10536 * solib-frv.c: Ditto.
10537 * solib.h: Ditto.
10538 * solib-irix.c: Ditto.
10539 * solib-osf.c: Ditto.
10540 * solib-pa64.c: Ditto.
10541 * solib-som.c: Ditto.
10542 * solib-spu.c: Ditto.
10543 * solib-sunos.c: Ditto.
10544 * solib-svr4.c: Ditto.
10545 * solist.h: Ditto.
10546 * sol-thread.c: Ditto.
10547 * somread.c: Ditto.
10548 * source.c: Ditto.
10549 * source.h: Ditto.
10550 * sparc64-linux-tdep.c: Ditto.
10551 * sparc64-tdep.c: Ditto.
10552 * sparc-linux-nat.c: Ditto.
10553 * sparc-linux-tdep.c: Ditto.
10554 * sparc-sol2-nat.c: Ditto.
10555 * sparc-sol2-tdep.c: Ditto.
10556 * sparc-tdep.c: Ditto.
10557 * sparc-tdep.h: Ditto.
10558 * spu-tdep.c: Ditto.
10559 * stabsread.c: Ditto.
10560 * stabsread.h: Ditto.
10561 * stack.c: Ditto.
10562 * symfile.c: Ditto.
10563 * symfile.h: Ditto.
10564 * symmisc.c: Ditto.
10565 * symtab.c: Ditto.
10566 * symtab.h: Ditto.
10567 * target.c: Ditto.
10568 * target-descriptions.c: Ditto.
10569 * target-descriptions.h: Ditto.
10570 * target.h: Ditto.
10571 * target-memory.c: Ditto.
10572 * terminal.h: Ditto.
10573 * thread.c: Ditto.
10574 * top.c: Ditto.
10575 * tracepoint.c: Ditto.
10576 * tracepoint.h: Ditto.
10577 * trad-frame.h: Ditto.
10578 * typeprint.c: Ditto.
10579
581e13c1
MS
105802011-01-11 Michael Snyder <msnyder@vmware.com>
10581
10582 * ui-file.c: Comment cleanup, mostly periods and spaces.
10583 * ui-file.h: Ditto.
10584 * ui-out.c: Ditto.
10585 * ui-out.h: Ditto.
10586 * utils.c: Ditto.
10587 * v850-tdep.c: Ditto.
10588 * valarith.c: Ditto.
10589 * valops.c: Ditto.
10590 * valprint.c: Ditto.
10591 * valprint.h: Ditto.
10592 * value.c: Ditto.
10593 * value.h: Ditto.
10594 * varobj.c: Ditto.
10595 * varobj.h: Ditto.
10596 * vax-tdep.c: Ditto.
10597 * vec.c: Ditto.
10598 * vec.h: Ditto.
10599 * version.h: Ditto.
10600 * windows-nat.c: Ditto.
10601 * windows-tdep.c: Ditto.
10602 * xcoffread.c: Ditto.
10603 * xcoffsolib.c: Ditto.
10604 * xml-support.c: Ditto.
10605 * xstormy16-tdep.c: Ditto.
10606 * xtensa-tdep.c: Ditto.
10607 * xtensa-tdep.h: Ditto.
10608
90e4670f
TJB
106092011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10610
10611 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10612 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10613
e09342b5
TJB
106142011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10615 Thiago Jung Bauermann <bauerman@br.ibm.com>
10616
10617 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10618 * breakpoint.h
e09342b5
TJB
10619 (struct breakpoint_ops) <resources_needed>: New method.
10620 Initialize to NULL in all existing breakpoint_ops instances.
10621 (struct breakpoint) <exact>: New field.
10622 (target_exact_watchpoints): Declare external global.
10623 * breakpoint.c (target_exact_watchpoints): New global flag.
10624 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10625 b->enable_state to bp_enabled before calling
10626 hw_watchpoint_used_count.
10627 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10628 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10629 if available.
10630 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10631 if the watchpoint is exact.
10632 (resources_needed_watchpoint): New function.
10633 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10634 (watch_command_1): Set b->exact if the user asked for an exact
10635 watchpoint and one can be set.
10636 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10637 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10638 the user asks for an exact watchpoint and one can be set. Return
10639 number of needed debug registers to watch the expression.
10640 * gdbtypes.c (is_scalar_type): New function, based on
10641 valprint.c:scalar_type_p.
10642 (is_scalar_type_recursive): New function.
10643 * gdbtypes.h (is_scalar_type_recursive): Declare.
10644 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10645 handle regions when ranged watchpoints are available.
10646 (create_watchpoint_request): New function.
10647 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10648 create_watchpoint_request.
10649 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10650 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10651 `set powerpc' and `show powerpc' commands.
10652 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10653 Mention documentation comment in the target macro.
10654 (target_region_ok_for_hw_watchpoint): Document return value.
10655
9fa40276
TJB
106562011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10657
10658 * breakpoint.c (update_watchpoint): Decide on using a software or
10659 hardware watchpoint after the bp_locations are created.
10660
77b06cd7
TJB
106612010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10662
10663 Convert hardware watchpoints to use breakpoint_ops.
10664 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10665 <insert_location>: ... this. Return int instead of void.
10666 Accept pointer to struct bp_location instead of pointer to
10667 struct breakpoint. Adapt all implementations.
f2eb0bc8 10668 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10669 <remove_location>: ... this. Accept pointer to struct bp_location
10670 instead of pointer to struct breakpoint. Adapt all implementations.
10671 * breakpoint.c (insert_catchpoint): Delete function.
10672 (insert_bp_location): Call the watchpoint or catchpoint's
10673 breakpoint_ops.insert method.
10674 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10675 breakpoint_ops.remove method.
10676 (insert_watchpoint, remove_watchpoint): New functions.
10677 (watchpoint_breakpoint_ops): New structure.
10678 (watch_command_1): Initialize the OPS field.
10679 * inf-child.c (inf_child_insert_fork_catchpoint)
10680 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10681 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10682 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10683 Delete functions.
10684 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10685 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10686 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10687 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10688 * target.c (update_current_target): Change default implementation of
10689 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10690 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10691 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10692 to_set_syscall_catchpoint to return_one.
10693 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10694 (debug_to_insert_exec_catchpoint): Report return value.
10695 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10696 (to_insert_exec_catchpoint): Change declaration to return int instead
10697 of void.
10698
9b20d036
MS
106992011-01-11 Michael Snyder <msnyder@vmware.com>
10700
10701 * arm-tdep.c: Internationalization.
10702 * c-lang.c: Ditto.
10703 * charset.c: Ditto.
10704 * fork-child.c: Ditto.
10705 * nto-procfs.c: Ditto.
10706 * ppc-sysv-tdep.c: Ditto.
10707 * procfs.c: Ditto.
10708 * remote-mips.c: Ditto.
10709 * remote.c: Ditto.
10710 * rs6000-nat.c: Ditto.
10711 * rs6000-tdep.c: Ditto.
10712 * target.c: Ditto.
10713 * valops.c: Ditto.
10714 * value.c: Ditto.
10715 * xml-support.c: Ditto.
10716 * mi/mi-cmd-break.c: Ditto.
10717 * mi/mi-cmd-var.c: Ditto.
10718 * mi/mi-interp.c: Ditto.
10719 * mi/mi-main.c: Ditto.
10720
dae477fe
AB
107212011-01-11 Andrew Burgess <aburgess@broadcom.com>
10722
10723 * remote-sim.c (gdbsim_store_register): Update API to
10724 sim_store_register to check more error conditions.
10725
0df8b418
MS
107262011-01-10 Michael Snyder <msnyder@vmware.com>
10727
10728 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10729 * nto-tdep.c: Ditto.
10730 * nto-tdep.h: Ditto.
10731 * objc-exp.y: Ditto.
10732 * objc-lang.c: Ditto.
10733 * objfiles.c: Ditto.
10734 * objfiles.h: Ditto.
10735 * observer.c: Ditto.
10736 * opencl-lang.c: Ditto.
10737 * osabi.c: Ditto.
10738 * parse.c: Ditto.
10739 * parser-defs.h: Ditto.
10740 * p-exp.y: Ditto.
10741 * p-lang.c: Ditto.
10742 * posix-hdep.c: Ditto.
10743 * ppcbug-rom.c: Ditto.
10744 * ppc-linux-nat.c: Ditto.
10745 * ppc-linux-tdep.c: Ditto.
10746 * ppc-linux-tdep.h: Ditto.
10747 * ppcnbsd-tdep.c: Ditto.
10748 * ppcobsd-tdep.c: Ditto.
10749 * ppcobsd-tdep.h: Ditto.
10750 * ppc-sysv-tdep.c: Ditto.
10751 * ppc-tdep.h: Ditto.
10752 * printcmd.c: Ditto.
10753 * proc-abi.c: Ditto.
10754 * proc-flags.c: Ditto.
10755 * procfs.c: Ditto.
10756 * proc-utils.h: Ditto.
10757 * progspace.h: Ditto.
10758 * prologue-value.c: Ditto.
10759 * prologue-value.h: Ditto.
10760 * psympriv.h: Ditto.
10761 * psymtab.c: Ditto.
10762 * p-typeprint.c: Ditto.
10763 * p-valprint.c: Ditto.
10764 * ravenscar-sparc-thread.c: Ditto.
10765 * ravenscar-thread.c: Ditto.
10766 * ravenscar-thread.h: Ditto.
10767 * record.c: Ditto.
10768 * regcache.c: Ditto.
10769 * regcache.h: Ditto.
10770 * remote.c: Ditto.
10771 * remote-fileio.c: Ditto.
10772 * remote-fileio.h: Ditto.
10773 * remote.h: Ditto.
10774 * remote-m32r-sdi.c: Ditto.
10775 * remote-mips.c: Ditto.
10776 * remote-sim.c: Ditto.
10777 * rs6000-aix-tdep.c: Ditto.
10778 * rs6000-nat.c: Ditto.
10779 * rs6000-tdep.c: Ditto.
10780
0d7a18f7
MS
107812011-01-10 Michael Snyder <msnyder@vmware.com>
10782
10783 * charset.c (validate): Internationalization.
10784 * coffread.c (read_one_sym): Ditto.
10785 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10786 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10787 * inflow.c (new_tty): Ditto.
10788 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10789 * m32c-tdep.c (m32c_return_value): Ditto.
10790 * mep-tdep.c (mep_store_return_value): Ditto.
10791 * score-tdep.c (score7_fetch_insn): Ditto.
10792 * ser-mingw.c (pipe_windows_open): Ditto.
10793 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10794 * spu-tdep.c (spu_register_type): Ditto.
10795 * tracepoint.c (trace_find_command): Ditto.
10796 * valarith.c (value_pos): Ditto.
10797
9a153e0b
JB
107982011-01-10 Joel Brobecker <brobecker@adacore.com>
10799
10800 * ada-valprint.c (printstr): Minor comment reformatting.
10801
35ecd2d6
MS
108022011-01-08 Michael Snyder <msnyder@vmware.com>
10803
10804 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10805 markup.
10806
1777feb0
MS
108072011-01-08 Michael Snyder <msnyder@vmware.com>
10808
10809 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10810 * hppa-hpux-tdep.c: Ditto.
10811 * hppa-linux-nat.c: Ditto.
10812 * hppa-linux-tdep.c: Ditto.
10813 * hppanbsd-tdep.c: Ditto.
10814 * hppa-tdep.c: Ditto.
10815 * hppa-tdep.h: Ditto.
10816 * hpux-thread.c: Ditto.
10817 * i386-cygwin-tdep.c: Ditto.
10818 * i386-darwin-nat.c: Ditto.
10819 * i386gnu-nat.c: Ditto.
10820 * i386-linux-nat.c: Ditto.
10821 * i386-linux-tdep.c: Ditto.
10822 * i386-nat.c: Ditto.
10823 * i386-nat.h: Ditto.
10824 * i386nbsd-tdep.c: Ditto.
10825 * i386-sol2-nat.c: Ditto.
10826 * i386-stub.c: Ditto.
10827 * i386-tdep.c: Ditto.
10828 * i386-tdep.h: Ditto.
10829 * i387-tdep.c: Ditto.
10830 * ia64-linux-nat.c: Ditto.
10831 * ia64-linux-tdep.c: Ditto.
10832 * ia64-tdep.c: Ditto.
10833 * infcall.c: Ditto.
10834 * infcall.h: Ditto.
10835 * infcmd.c: Ditto.
10836 * inferior.c: Ditto.
10837 * inferior.h: Ditto.
10838 * infloop.c: Ditto.
10839 * inflow.c: Ditto.
10840 * infrun.c: Ditto.
10841 * interps.c: Ditto.
10842 * interps.h: Ditto.
10843 * iq2000-tdep.c: Ditto.
10844 * irix5-nat.c: Ditto.
10845 * jit.c: Ditto.
10846 * jit.h: Ditto.
10847 * jv-exp.y: Ditto.
10848 * jv-lang.c: Ditto.
10849 * jv-lang.h: Ditto.
10850 * jv-typeprint.c: Ditto.
10851 * jv-valprint.c: Ditto.
10852 * language.c: Ditto.
10853 * language.h: Ditto.
10854 * linespec.c: Ditto.
10855 * linux-fork.c: Ditto.
10856 * linux-nat.c: Ditto.
10857 * linux-thread-db.c: Ditto.
10858 * lm32-tdep.c: Ditto.
10859
025bb325
MS
108602011-01-08 Michael Snyder <msnyder@vmware.com>
10861
10862 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10863 * m2-lang.c: Ditto.
10864 * m2-typeprint.c: Ditto.
10865 * m2-valprint.c: Ditto.
10866 * m32c-tdep.c: Ditto.
10867 * m32r-linux-nat.c: Ditto.
10868 * m32r-rom.c: Ditto.
10869 * m32r-tdep.c: Ditto.
10870 * m32r-tdep.h: Ditto.
10871 * m68hc11-tdep.c: Ditto.
10872 * m58klinux-nat.c: Ditto.
10873 * m68k-tdep.c: Ditto.
10874 * m88k-tdep.c: Ditto.
10875 * m88k-tdep.h: Ditto.
10876 * machoread.c: Ditto.
10877 * macrocmd.c: Ditto.
10878 * macroexp.c: Ditto.
10879 * macrotab.c: Ditto.
10880 * main.c: Ditto.
10881 * maint.c: Ditto.
10882 * mdebugread.c: Ditto.
10883 * mdebugread.h: Ditto.
10884 * memattr.c: Ditto.
10885 * memattr.h: Ditto.
10886 * memory-map.h: Ditto.
10887 * mep-tdep.c: Ditto.
10888 * microblaze-rom.c: Ditto.
10889 * microblaze-tdep.c: Ditto.
10890 * minsyms.c: Ditto.
10891 * mips-irix-tdep.c: Ditto.
10892 * mips-linux-nat.c: Ditto.
10893 * mips-linux-tdep.c: Ditto.
10894 * mips-linux-tdep.h: Ditto.
10895 * mipsnbsd-nat.c: Ditto.
10896 * mipsnbsd-tdep.c: Ditto.
10897 * mipsread.c: Ditto.
10898 * mips-tdep.c: Ditto.
10899 * mips-tdep.h: Ditto.
10900 * mn10300-linux-tdep.c: Ditto.
10901 * mn10300-tdep.c: Ditto.
10902 * mn10300-tdep.h: Ditto.
10903 * monitor.c: Ditto.
10904 * monitor.h: Ditto.
10905 * moxie-tdep.c: Ditto.
10906 * moxie-tdep.h: Ditto.
10907 * mt-tdep.c: Ditto.
10908
1642781b
MF
109092011-01-08 Mike Frysinger <vapier@gentoo.org>
10910
10911 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10912
394b0adb
JB
109132011-01-08 Robert Millan <rmh@gnu.org>
10914
10915 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10916
b670013c
MS
109172011-01-07 Michael Snyder <msnyder@vmware.com>
10918
10919 * charset.c (_initialize_charset): Fix typo in string.
10920
a743e542
MS
109212011-01-07 Michael Snyder <msnyder@vmware.com>
10922
10923 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10924 for i18n.
f2eb0bc8 10925 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10926 Split line so that operator goes to beginning of line.
10927 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10928 assignment out of if statement.
10929
0963b4bd
MS
109302011-01-07 Michael Snyder <msnyder@vmware.com>
10931
10932 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10933 * ada-lang.h: Ditto.
10934 * ada-tasks.c: Ditto.
10935 * ada-valprint.c: Ditto.
10936 * aix-threads.c: Ditto.
10937 * alpha-linux-nat.c: Ditto.
10938 * alpha-linux-tdep.c: Ditto.
10939 * alpha-mdebug-tdep.c: Ditto.
10940 * alpha-nat.c: Ditto.
10941 * alpha-osf1-tdep.c: Ditto.
10942 * alpha-tdep.c: Ditto.
10943 * alphabsd-nat.c: Ditto.
10944 * alphabsd-tdep.c: Ditto.
10945 * amd64-darwin-tdep.c: Ditto.
10946 * amd64-linux-nat.c: Ditto.
10947 * amd64-linux-tdep.c: Ditto.
10948 * amd64-sol2-tdep.c: Ditto.
10949 * amd64-tdep.c: Ditto.
10950 * amd64-fbsd-tdep.c: Ditto.
10951 * amd64-nbsd-tdep.c: Ditto.
10952 * amd64-obsd-tdep.c: Ditto.
10953 * amd64-linux-nat.c: Ditto.
10954 * amd64-linux-tdep.c: Ditto.
10955 * arm-tdep.c: Ditto.
10956 * arm-tdep.h: Ditto.
10957 * armnbsd-nat.c: Ditto.
10958 * avr-tdep.c: Ditto.
10959 * bfin-tdep.c: Ditto.
10960 * bsd-kvm.c: Ditto.
10961 * c-typeprintc: Ditto.
10962 * c-valprint.c: Ditto.
10963 * coff-pe-read.h: Ditto.
10964 * coffreead.c: Ditto.
10965 * cris-tdep.c: Ditto.
10966 * d-lang.c: Ditto.
10967 * darwin-nat-info.c: Ditto.
10968 * darwin-nat.c: Ditto.
10969 * dbug-rom.c: Ditto.
10970 * dbxread.c: Ditto.
10971 * dcache.c: Ditto.
10972 * dcache.h: Ditto.
10973 * dec-thread.c: Ditto.
10974 * defs.h: Ditto.
10975 * demangle.c: Ditto.
10976 * dicos-tdep.c: Ditto.
10977 * dictionary.c: Ditto.
10978 * dictionary.h: Ditto.
10979 * dink32-rom.c: Ditto.
10980 * disasm.c: Ditto.
10981 * doublest.c: Ditto.
10982 * dsrec.c: Ditto.
10983 * dummy-frame.c: Ditto.
10984 * dwarf2-frame.c: Ditto.
10985 * dwarf2expr.c: Ditto.
10986 * dwarf2loc.c: Ditto.
10987 * dwarf2read.c: Ditto.
10988 * elfread.c: Ditto.
10989 * environ.c: Ditto.
10990 * eval.c: Ditto.
10991 * event-top.h: Ditto.
10992 * exceptions.c: Ditto.
10993 * exceptions.h: Ditto.
10994 * exec.c: Ditto.
10995 * expprint.c: Ditto.
10996 * expression.h: Ditto.
10997 * f-exp.y: Ditto.
10998 * f-lang.c: Ditto.
10999 * f-lang.h: Ditto.
11000 * f-typeprint.c: Ditto.
11001 * f-valprint.c: Ditto.
11002 * fbsd-nat.c: Ditto.
11003 * findvar.c: Ditto.
11004 * fork-child.c: Ditto.
11005 * frame.c: Ditto.
11006 * frame.h: Ditto.
11007 * frv-linux-tdep.c: Ditto.
11008 * frv-tdep.c: Ditto.
11009 * gcore.c: Ditto.
11010 * gdb-stabs.h: Ditto.
11011 * gdb_assert.h: Ditto.
11012 * gdb_string.h: Ditto.
11013 * gdb_thread_db.h: Ditto.
11014 * gdb_wait.h: Ditto.
11015 * gdbarch.sh: Ditto.
11016 * gdbcore.h: Ditto.
11017 * gdbthread.h: Ditto.
11018 * gdbtypes.c: Ditto.
11019 * gdbtypes.h: Ditto.
11020 * gnu-nat.c: Ditto.
11021 * gnu-nat.h: Ditto.
11022 * gnu-v2-abi.c: Ditto.
11023 * gnu-v3-abi.c: Ditto.
11024 * go32-nat.c: Ditto.
11025 * gdbarch.c: Regenerate.
11026 * gdbarch.h: Regenerate.
11027
ac74f770
MS
110282011-01-07 Michael Snyder <msnyder@vmware.com>
11029
11030 * ax-gdb.c: Adjust some long output strings.
11031 * breakpoint.c: Ditto.
11032 * charset.c: Ditto.
11033 * cp-abi.c: Ditto.
11034 * infcall.c: Ditto.
11035 * infrun.c: Ditto.
11036 * linux-nat.c: Ditto.
11037 * solib-pa64.c: Ditto.
11038 * solib-som.c: Ditto.
11039
d8e22779
TT
110402011-01-06 Tom Tromey <tromey@redhat.com>
11041
11042 PR python/12367:
11043 * NEWS: Add item.
11044 * python/python.c (GdbMethods): Add "newest_frame" method.
11045 * python/python-internal.h (gdbpy_newest_frame): Declare.
11046 * python/py-frame.c (gdbpy_newest_frame): New function.
11047
a255712f
PP
110482010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11049
11050 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11051 * jit.c (jit_debug): New variable.
11052 (show_jit_debug): New function.
11053 (struct target_buffer): Use ULONGEST.
11054 (bfd_open_from_target_memory): Likewise.
11055 (jit_register_code, jit_inferior_init): Add debug output.
11056 (_initialize_jit): Register "debug jit" command.
11057
ccfc3d6e
TT
110582011-01-06 Tom Tromey <tromey@redhat.com>
11059
11060 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11061 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11062 and ARCH_FRAME.
11063
57126e4a
TT
110642011-01-06 Tom Tromey <tromey@redhat.com>
11065
11066 * python/py-frame.c (frapy_block): Use get_frame_block.
11067
16dfc9ce
JB
110682011-01-06 Joel Brobecker <brobecker@adacore.com>
11069
11070 Do not stop on SIGPRIO signals by default
11071 * infrun.c (_initialize_infrun): Unset signal_stop and
11072 signal_print for TARGET_SIGNAL_PRIO.
11073
b1ce2347
JB
110742011-01-06 Joel Brobecker <brobecker@adacore.com>
11075
11076 * ada-tasks.c: Fix style violation in comment.
11077
8f7e195f
JB
110782011-01-06 Joel Brobecker <brobecker@adacore.com>
11079
11080 * linespec.c (decode_compound, find_method): Remove trailing \n
11081 at end of error string.
11082 * solib-irix.c (irix_current_sos): Likewise.
11083 * varobj.c (uninstall_variable): Likewise.
11084
e9bdf92c
JB
110852011-01-06 Joel Brobecker <brobecker@adacore.com>
11086
11087 * copyright.py: New script.
11088 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11089 Launch emacs without exec'ing. Call copyright.py afterwards.
11090
3e43a32a
MS
110912011-01-05 Michael Snyder <msnyder@vmware.com>
11092
11093 * addrmap.c: Shorten lines of >= 80 columns.
11094 * arch-utils.c: Ditto.
11095 * arch-utils.h: Ditto.
11096 * ax-gdb.c: Ditto.
11097 * ax-general.c: Ditto.
11098 * bcache.c: Ditto.
11099 * blockframe.c: Ditto.
11100 * breakpoint.c: Ditto.
11101 * buildsym.c: Ditto.
11102 * c-lang.c: Ditto.
11103 * c-typeprint.c: Ditto.
11104 * charset.c: Ditto.
11105 * coffread.c: Ditto.
11106 * command.h: Ditto.
11107 * corelow.c: Ditto.
11108 * cp-abi.c: Ditto.
11109 * cp-namespace.c: Ditto.
11110 * cp-support.c: Ditto.
11111 * dbug-rom.c: Ditto.
11112 * dbxread.c: Ditto.
11113 * defs.h: Ditto.
11114 * dfp.c: Ditto.
11115 * dfp.h: Ditto.
11116 * dictionary.c: Ditto.
11117 * disasm.c: Ditto.
11118 * doublest.c: Ditto.
11119 * dwarf2-frame.c: Ditto.
11120 * dwarf2expr.c: Ditto.
11121 * dwarf2loc.c: Ditto.
11122 * dwarf2read.c: Ditto.
11123 * elfread.c: Ditto.
11124 * eval.c: Ditto.
11125 * event-loop.c: Ditto.
11126 * event-loop.h: Ditto.
11127 * exceptions.h: Ditto.
11128 * exec.c: Ditto.
11129 * expprint.c: Ditto.
11130 * expression.h: Ditto.
11131 * f-lang.c: Ditto.
11132 * f-valprint.c: Ditto.
11133 * findcmd.c: Ditto.
11134 * frame-base.c: Ditto.
11135 * frame-unwind.c: Ditto.
11136 * frame-unwind.h: Ditto.
11137 * frame.c: Ditto.
11138 * frame.h: Ditto.
11139 * gcore.c: Ditto.
11140 * gdb-stabs.h: Ditto.
11141 * gdb_assert.h: Ditto.
11142 * gdb_dirent.h: Ditto.
11143 * gdb_obstack.h: Ditto.
11144 * gdbcore.h: Ditto.
11145 * gdbtypes.c: Ditto.
11146 * gdbtypes.h: Ditto.
11147 * inf-ttrace.c: Ditto.
11148 * infcall.c: Ditto.
11149 * infcmd.c: Ditto.
11150 * inflow.c: Ditto.
11151 * infrun.c: Ditto.
11152 * inline-frame.h: Ditto.
11153 * language.c: Ditto.
11154 * language.h: Ditto.
11155 * libunwind-frame.c: Ditto.
11156 * libunwind-frame.h: Ditto.
11157 * linespec.c: Ditto.
11158 * linux-nat.c: Ditto.
11159 * linux-nat.h: Ditto.
11160 * linux-thread-db.c: Ditto.
11161 * machoread.c: Ditto.
11162 * macroexp.c: Ditto.
11163 * macrotab.c: Ditto.
11164 * main.c: Ditto.
11165 * maint.c: Ditto.
11166 * mdebugread.c: Ditto.
11167 * memattr.c: Ditto.
11168 * minsyms.c: Ditto.
11169 * monitor.c: Ditto.
11170 * monitor.h: Ditto.
11171 * objfiles.c: Ditto.
11172 * objfiles.h: Ditto.
11173 * osabi.c: Ditto.
11174 * p-typeprint.c: Ditto.
11175 * p-valprint.c: Ditto.
11176 * parse.c: Ditto.
11177 * printcmd.c: Ditto.
11178 * proc-events.c: Ditto.
11179 * procfs.c: Ditto.
11180 * progspace.c: Ditto.
11181 * progspace.h: Ditto.
11182 * psympriv.h: Ditto.
11183 * psymtab.c: Ditto.
11184 * record.c: Ditto.
11185 * regcache.c: Ditto.
11186 * regcache.h: Ditto.
11187 * remote-fileio.c: Ditto.
11188 * remote.c: Ditto.
11189 * ser-mingw.c: Ditto.
11190 * ser-tcp.c: Ditto.
11191 * ser-unix.c: Ditto.
11192 * serial.c: Ditto.
11193 * serial.h: Ditto.
11194 * solib-frv.c: Ditto.
11195 * solib-irix.c: Ditto.
11196 * solib-osf.c: Ditto.
11197 * solib-pa64.c: Ditto.
11198 * solib-som.c: Ditto.
11199 * solib-sunos.c: Ditto.
11200 * solib-svr4.c: Ditto.
11201 * solib-target.c: Ditto.
11202 * solib.c: Ditto.
11203 * somread.c: Ditto.
11204 * source.c: Ditto.
11205 * stabsread.c: Ditto.
11206 * stabsread.c: Ditto.
11207 * stack.c: Ditto.
11208 * stack.h: Ditto.
11209 * symfile-mem.c: Ditto.
11210 * symfile.c: Ditto.
11211 * symfile.h: Ditto.
11212 * symmisc.c: Ditto.
11213 * symtab.c: Ditto.
11214 * symtab.h: Ditto.
11215 * target-descriptions.c: Ditto.
11216 * target-memory.c: Ditto.
11217 * target.c: Ditto.
11218 * target.h: Ditto.
11219 * terminal.h: Ditto.
11220 * thread.c: Ditto.
11221 * top.c: Ditto.
11222 * tracepoint.c: Ditto.
11223 * tracepoint.h: Ditto.
11224 * ui-file.c: Ditto.
11225 * ui-file.h: Ditto.
11226 * ui-out.h: Ditto.
11227 * user-regs.c: Ditto.
11228 * user-regs.h: Ditto.
11229 * utils.c: Ditto.
11230 * valarith.c: Ditto.
11231 * valops.c: Ditto.
11232 * valprint.c: Ditto.
11233 * valprint.h: Ditto.
11234 * value.c: Ditto.
11235 * varobj.c: Ditto.
11236 * varobj.h: Ditto.
11237 * vec.h: Ditto.
11238 * xcoffread.c: Ditto.
11239 * xcoffsolib.c: Ditto.
11240 * xcoffsolib.h: Ditto.
11241 * xml-syscall.c: Ditto.
11242 * xml-tdesc.c: Ditto.
11243
9a2b4c1b
MS
112442011-01-05 Michael Snyder <msnyder@vmware.com>
11245
11246 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11247 * cli/cli-decode.c: Ditto.
11248 * cli/cli-dump.c: Ditto.
11249 * cli/cli-logging.c: Ditto.
11250 * cli/cli-script.c: Ditto.
11251 * cli/cli-setshow.c: Ditto.
11252 * common/signals.c: Ditto.
11253 * mi/mi-cmd-break.c: Ditto.
11254 * mi/mi-cmd-disas.c: Ditto.
11255 * mi/mi-cmd-stack.c: Ditto.
11256 * mi/mi-cmd-var.c: Ditto.
11257 * mi/mi-cmds.c: Ditto.
11258 * mi/mi-common.h: Ditto.
11259 * mi/mi-console.c: Ditto.
11260 * mi/mi-interp.c: Ditto.
11261 * mi/mi-main.c: Ditto.
11262 * osf-share/cma_attr.c: Ditto.
11263 * osf-share/cma_deb_core.h: Ditto.
11264 * osf-share/cma_debug_client.h: Ditto.
11265 * osf-share/cma_handle.h: Ditto.
11266 * osf-share/cma_mutex.h: Ditto.
11267 * osf-share/cma_stack_int.h: Ditto.
11268 * osf-share/cma_tcb_defs.h: Ditto.
11269 * python/py-auto-load.c: Ditto.
11270 * python/py-breakpoint.c: Ditto.
11271 * python/py-cmd.c: Ditto.
11272 * python/py-frame.c: Ditto.
11273 * python/py-objfile.c: Ditto.
11274 * python/py-param.c: Ditto.
11275 * python/py-progspace.c: Ditto.
11276 * python/py-symbol.c: Ditto.
11277 * python/py-value.c: Ditto.
11278 * python/python-internal.h: Ditto.
11279 * python/python.c: Ditto.
11280 * tui/tui-data.c: Ditto.
11281 * tui/tui-disasm.c: Ditto.
11282 * tui/tui-hooks.c: Ditto.
11283 * tui/tui-io.c: Ditto.
11284 * tui/tui-layout.c: Ditto.
11285 * tui/tui-regs.c: Ditto.
11286 * tui/tui-source.c: Ditto.
11287 * tui/tui-stack.c: Ditto.
11288 * tui/tui-win.c: Ditto.
11289 * tui/tui-windata.c: Ditto.
11290 * tui/tui-winsource.c: Ditto.
11291
44944448
JB
112922011-01-05 Joel Brobecker <brobecker@adacore.com>
11293
11294 * configure.ac, gdb.1: Copyright year update.
11295
ebedcab5
JK
112962011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11297
11298 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11299 this_pc_in_block, morestack_msym and morestack_name. Check for
11300 "__morestack" minimal symbol there.
11301
e5cc9f32
JB
113022011-01-03 Joel Brobecker <brobecker@adacore.com>
11303
11304 * symfile.c (find_sym_fns): Add call to dont_repeat.
11305
7b6bb8da
JB
113062011-01-01 Joel Brobecker <brobecker@adacore.com>
11307
11308 Copyright year update in most files (performed by copyright.sh).
11309
71ce852c
JB
113102011-01-01 Joel Brobecker <brobecker@adacore.com>
11311
11312 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11313
c3c1ebe8 11314For older changes see ChangeLog-2010.
c906108c
SS
11315\f
11316Local Variables:
11317mode: change-log
11318left-margin: 8
11319fill-column: 74
11320version-control: never
57da7796 11321coding: utf-8
c906108c 11322End:
This page took 1.811195 seconds and 4 git commands to generate.