]> Git Repo - binutils.git/blame - gdb/ChangeLog
Minor reformatting in ada-lang.c:assign_aggregate
[binutils.git] / gdb / ChangeLog
CommitLineData
1fbf5ada
JB
12011-11-23 Andrey Smirnov <[email protected]>
2
3 * ada-lang.c (assign_aggregate): Minor reformatting.
4
d984108d
JB
52011-11-23 Andrey Smirnov <[email protected]>
6
7 * ada-lang.c (assign_aggregate): Remove declaration of local
8 variable `i' which is shadowing another variable with the same
9 name declared in the outer scope.
10
18af8284
JB
112011-11-23 Joel Brobecker <[email protected]>
12
13 * ada-lang.c (get_base_type): Renames base_type. Adjust all
14 calls throughout this file.
15
1fc7b5d7
JB
162011-11-23 Joel Brobecker <[email protected]>
17
18 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
19 FormatMessage.
20
36dfb11c
TT
212011-11-22 Tom Tromey <[email protected]>
22
23 PR mi/8444:
24 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
25 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
26 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
27 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
28 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
29 (print_it_catch_syscall, print_it_catch_exec)
30 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
31 (bpstat_print): Add 'kind' argument. Handle
32 TARGET_WAITKIND_LOADED.
33 * infrun.c (normal_stop): Update for bpstat_print change. Don't
34 handle TARGET_WAITKIND_LOADED here.
35 * breakpoint.h (bpstat_print): Update.
36
5bd6aa83
TT
372011-11-22 Tom Tromey <[email protected]>
38
39 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
40
f5afdc18
TT
412011-11-22 Tom Tromey <[email protected]>
42
43 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
44 Use static_assert to check the size of
45 async_reason_string_lookup.
46 * common/gdb_assert.h (static_assert): New macro.
47
a3769e0c
AM
482011-11-22 Alan Modra <[email protected]>
49
50 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
51 destination calculation. Don't expect >> to sign extend. Don't
52 add a break if branch lands inside the sequence anywhere.
53
56767571
KS
542011-11-21 Keith Seitz <[email protected]>
55
56 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
57 -var-evaluate-expression of an enumeration and fix expected result.
58 * gdb.mi/mi2-varvdisplay.exp: Likewise.
59
8443c207
KY
602011-11-21 Kwok Cheung Yeung <[email protected]>
61
62 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
63 the case where osdata->items is empty. Rename column names to a
64 canonical form to avoid problems with unusual column names.
65
97643830
YQ
662011-11-21 Yao Qi <[email protected]>
67
68 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
69
f196051f
SS
702011-11-20 Stan Shebs <[email protected]>
71
72 * NEWS: Mention tracepoint additions.
73 * breakpoint.h (struct tracepoint): New field traceframe_usage.
74 * breakpoint.c (print_one_breakpoint_location): Identify
75 tracepoints as such when reporting hit counts, report
76 trace buffer usage.
77 (create_tracepoint_from_upload): Copy status info.
78 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
79 add fields user_name, notes, start_time, stop_time.
80 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
81 * tracepoint.c (trace_user): New global.
82 (trace_notes): New global.
83 (trace_stop_notes): New global.
84 (start_tracing): Add argument and trace note handling.
85 (stop_tracing): Ditto.
86 (trace_start_command): Add notes argument.
87 (trace_stop_command): Ditto.
88 (trace_status_command): Report additional status info.
89 (trace_status_mi): Similarly.
90 (trace_save): Update, record tracepoint status.
91 (set_disconnected_tracing): Call target method directly.
92 (send_disconnected_tracing_value): Remove.
93 (set_trace_user): New function.
94 (set_trace_notes): New function.
95 (set_trace_stop_notes): New function.
96 (parse_trace_status): Handle additional status.
97 (parse_tracepoint_status): New function.
98 (parse_tracepoint_definition): Call it.
99 (tfile_get_tracepoint_status): New function.
100 (init_tfile_ops): Use it.
101 (_initialize_tracepoint): Add new setshows.
102 * target.h (struct target_ops): New methods to_get_tracepoint_status
103 and to_set_trace_notes.
104 (target_get_tracepoint_status): New macro.
105 (target_set_trace_notes): New macro.
106 * target.c (update_current_target): Add new methods.
107 * remote.c (remote_get_tracepoint_status): New function.
108 (remote_set_trace_notes): New function.
109 (init_remote_ops): Add them.
110 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
111 (mi_cmd_trace_stop): Ditto.
112
3623dc3a
SD
1132011-11-20 Sanjoy Das <[email protected]>
114
115 * jit.c: Include regcache.h.
116 (jit_gdbarch_data, jit_frame_unwind): New static variables.
117 (jit_unwind_reg_set_impl, free_reg_value_impl)
118 (jit_unwind_reg_get_impl, jit_frame_sniffer)
119 (jit_frame_unwind_stop_reason, jit_frame_this_id)
120 (jit_frame_prev_register, jit_dealloc_cache)
121 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
122 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
123 jit_prepend_unwinder.
124 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
125
1825a88d
SD
1262011-11-20 Sanjoy Das <[email protected]>
127
128 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
129 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
130 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
131 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
132 (finalize_symtab, jit_object_close_impl)
133 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
134 (free_objfile_data): New functions.
135 (_initialize_jit): Register jit_objfile_data with a proper cleanup
136 function.
137
784c47ee
SD
1382011-11-20 Sanjoy Das <[email protected]>
139
140 * jit.c: Include gdb-dlfcn.h.
141 (loaded_jit_reader, reader_init_fn_sym): New static variables.
142 (jit_reader_load, jit_reader_load_command)
143 (jit_reader_unload_command): New functions.
144 (_initialize_jit): Add commands "jit-reader-load" and
145 "jit-reader-unload".
146
a2d08b9e
SD
1472011-11-20 Sanjoy Das <[email protected]>
148
149 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
150 * config.in: Add new #define HAVE_LIBDL.
151 * configure.ac: Add check for -ldl.
152 * configure: Re-generated by autoconf.
153 * gdb-dlfcn.c: New file.
154 * gdb-dlfcn.h: New file.
155
b8e0a31c
SD
1562011-11-20 Sanjoy Das <[email protected]>
157
158 * config.in: Add new #defines: JIT_READER_DIR and
159 JIT_READER_DIR_RELOCATABLE.
160 * configure.ac: New GDB directory entry for jit-reader-dir.
161 * configure: Re-generated by autoconf.
162 * jit.c: New static variable: const char *jit_reader_dir.
163 (_initialize_jit): Relocate jit_reader_dir.
164
f997c383
SD
1652011-11-20 Sanjoy Das <[email protected]>
166
167 * Makefile.in: Add jit-reader.h as a header. Have it installed in
168 $(includedir)/gdb.
169 * configure.ac: Generate a correct value for TARGET_PTR for
170 jit-reader.h. Tell configure to generate jit-reader.h from
171 jit-reader.in.
172 * configure: Re-generated by autoconf.
173 * jit-reader.in: New file.
174 * jit.c: Include jit-reader.h.
175
dc8c0494
SD
1762011-11-20 Sanjoy Das <[email protected]>
177
178 * MAINTAINERS (Write After Approval): Add myself to the list.
179
01efb936
UW
1802011-11-18 Ulrich Weigand <[email protected]>
181
182 * findvar.c (read_frame_register_value): Respect value_offset
183 of the register value. Remove big-endian special case.
184
732f3f12
TT
1852011-11-18 Tom Tromey <[email protected]>
186
187 PR build/7196:
188 * remote.c (putpkt_for_catch_errors): New function.
189 (remote_kill): Use it.
190
bfccc43c
YQ
1912011-11-18 Yao Qi <[email protected]>
192
193 * breakpoint.c (create_breakpoint): Produce query message according to
194 breakpoint's type.
195 Allocate tracepoint per correct type.
196 Don't check SALs for pending fast tracepoints.
197 * tracepoint.c (process_tracepoint_on_disconnect): New.
198 (disconnect_tracing): Call process_tracepoint_on_disconnect.
199
3ea46bff
YQ
2002011-11-18 Yao Qi <[email protected]>
201
202 * breakpoint.c (install_breakpoint): Add one more parameter so that
203 update_global_location_list is called conditionally.
204 (create_fork_vfork_event_catchpoint): Update.
205 (create_syscall_event_catchpoint): Update.
206 (create_breakpoint_sal): Update.
207 (create_breakpoint_sal): Update. Call do_cleanups before
208 install_breakpoint.
209 * ada-lang.c (create_ada_exception_catchpoint): Update.
210 * breakpoint.h (install_breakpoint): Update declaration.
211
598cfb71
UW
2122011-11-16 Ulrich Weigand <[email protected]>
213
214 * spu-tdep.c (spu_return_value): Fix handling of
215 TYPE_CALLING_CONVENTION annotation.
216
caf4328c
UW
2172011-11-16 Ulrich Weigand <[email protected]>
218
219 * skip.c (skip_function_command): Work around uninitialized
220 variable warning.
221
2b54dda2
DM
2222011-11-16 David S. Miller <[email protected]>
223
224 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
225 'tv_usec' to long for printf since these fields have a type which
226 varies.
227
93bf33fd
DE
2282011-11-15 Doug Evans <[email protected]>
229
230 * buildsym.c (add_symbol_to_list): Delete outdated comment.
231
9cc10fd1
PK
2322011-11-15 Paul Koning <[email protected]>
233
234 * python/py-type.c (typy_get_composite): New function.
235 (typy_nonzero): New function.
236 (typy_values): Rename from typy_fields.
237 (typy_fields): New function.
238 (typy_length): Raise exception if not struct, union, or enum type.
239 (typy_getitem): Ditto.
240 (typy_has_key): Ditto.
241 (typy_make_iter): Ditto.
242
c011a4f4
DE
2432011-11-15 Doug Evans <[email protected]>
244
245 * NEWS: Mention new parameter basenames-may-differ.
246 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
247 ! basenames_may_differ.
248 * psymtab.c (lookup_partial_symtab): Ditto.
249 * symtab.c (lookup_symtab): Ditto.
250 (basenames_may_differ): New global.
251 (_initialize_symtab): New parameter basenames-may-differ.
252 * symtab.h (basenames_may_differ): Declare.
253
865ecab4
LM
2542011-11-15 Pedro Alves <[email protected]>
255 Luis Machado <[email protected]>
256
257 * auxv.c: Include observer.h.
258 (auxv_inferior_data_cleanup): New.
259 (invalidate_auxv_cache_inf): New.
260 (invalidate_auxv_cache): New.
261 (get_auxv_inferior_data): New.
262 (auxv_inferior_data): New static global.
263 (auxv_info): New structure.
264 (target_auxv_search): Use get_auxv_inferior_data instead of
265 target_read_alloc and don't free cached buffers.
266 (fprint_target_auxv): Likewise
267 (_initialize_auxv): Register per-inferior auxv cache and register
268 observers to invalidate auxv cache when needed.
269
ed59ded5
DE
2702011-11-14 Doug Evans <[email protected]>
271
272 Make "!" an alias for "shell".
273 * NEWS: Add mention.
274 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
275 adding "!" command, always add it.
276 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
277 command of length one.
278
405f8e94
SS
2792011-11-14 Stan Shebs <[email protected]>
280 Kwok Cheung Yeung <[email protected]>
281
282 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
283 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
284 the minimum instruction size for fast tracepoints.
285 * target.h (struct target_ops): Add new method
286 to_get_min_fast_tracepoint_insn_len.
287 (target_get_min_fast_tracepoint_insn_len): New.
288 * target.c (update_current_target): Set up new target operation.
289 * remote.c (remote_write_bytes_aux): Fix typo.
290 (remote_get_min_fast_tracepoint_insn_len): New.
291 (init_remote_ops): Initialize new field.
292
3e05895e
TT
2932011-11-14 Tom Tromey <[email protected]>
294
295 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
296 (encode_actions): Likewise.
297
1e4d1764
YQ
2982011-11-14 Yao Qi <[email protected]>
299
300 * remote.c (struct remote_state): <install_in_trace> new field.
301 (PACKET_InstallInTrace): New enum value.
302 (remote_install_in_trace_feature): Support InstallInTrace.
303 (remote_supports_install_in_trace): Likewise.
304 (remote_protocol_features): Likewise.
305 (_initialize_remote): Likewise.
306 (remote_can_download_tracepoint): New.
307 * target.h (struct target): New field
308 `to_can_download_tracepoint'.
309 (target_can_download_tracepoint): New macro.
310 * target.c (update_current_target): Update.
311 * breakpoint.h (struct bp_location): Add comment on field
312 `duplicate'.
3ccd4ac6
YQ
313 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
314 and tracepoint.
1e4d1764
YQ
315 (remove_breakpoints): Don't remove tracepoints.
316 (tracepoint_locations_match ): New.
317 (breakpoint_locations_match): Call it.
318 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
319 (download_tracepoint_locations): New.
320 (update_global_location_list): Call it.
321 * tracepoint.c (find_matching_tracepoint): Delete.
322 (find_matching_tracepoint_location): Renamed from
323 find_matching_tracepoint. Return bp_location rather than
324 tracepoint.
325 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
326 tracepoint is found.
327
e8ba3115
YQ
3282011-11-14 Yao Qi <[email protected]>
329
330 * target.h (struct target): <to_download_tracepoint> Change type
331 of parameter from tracepoint to bp_location.
332 * target.c (update_current_target): Update.
333 * tracepoint.c (start_tracing): Update.
334 * remote.c (remote_download_tracepoint): Remove loop for each location
335 of a tracepoint.
336
edcc485a
MR
3372011-11-14 Maciej W. Rozycki <[email protected]>
338
339 * i386-nat.c (i386_insert_hw_breakpoint): Call
340 i386_update_inferior_debug_regs.
341 (i386_remove_hw_breakpoint): Likewise.
342
3742cc8b
YQ
3432011-11-14 Yao Qi <[email protected]>
344
345 * breakpoint.c (init_raw_breakpoint): Call
346 add_location_to_breakpoint to replace duplicated code.
347 (add_location_to_breakpoint): Adjust the breakpoint's
348 address prior to allocating a location.
349
71eba9c2 3502011-11-12 Matt Rice <[email protected]>
351
352 * macrocmd.c (macro_no_macro_info): New function.
353 (macro_expand_command): Use macro_no_macro_info.
354 (macro_expand_once_command): Ditto.
355 (info_macro_command): Add argument processing,
356 move info_definitions_command here.
357 (_initialize_macrocmd): Remove info definitions command.
358 Add arguments to info macro help text.
359 * NEWS: Replace info definitions command with new info macro options.
360
731971ed
KS
3612011-11-11 Keith Seitz <[email protected]>
362
363 PR gdb/12843
364 * linespec.c (locate_first_half): Keep ':' if it looks
365 like it could be part of a Windows path starting with
366 a drive letter.
367
6953d224
PA
3682011-11-10 Pedro Alves <[email protected]>
369
370 * linux-nat.c (linux_nat_wait): Don't force waking up the event
371 loop when returning a TARGET_WAITKIND_NO_RESUMED.
372
0c94aa73
PA
3732011-11-10 Pedro Alves <[email protected]>
374
375 * target.c (target_waitstatus_to_string): Handle
376 TARGET_WAITKIND_NO_RESUMED.
377
f6b47be4
DE
3782011-11-10 Doug Evans <[email protected]>
379
74e2f255
DE
380 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
381 `need_fullname'.
382 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
383 (map_partial_symbol_filenames): Ditto. All callers updated.
384 * psymtab.h (map_partial_symbol_filenames): Update prototype.
385 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
386 parameter need_fullname.
387
256f06f3
DE
388 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
389 * source.c (symtab_to_fullname): Ditto.
390
50f182aa
DE
391 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
392 * gdb-demangle.h: ... here. New file.
393 * demangle.c: #include "gdb-demangle.h".
394 (_initialize_demangler): Use initialize_file_ftype for prototype.
395 Move "set demangle" and "set asm-demangle" parameters here from utils.c
396 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
397 from utils.c
398 * utils.c: Update. #include "gdb-demangle.h".
399 * symtab.h (asm_demangle): Delete.
400 (demangle): Move declaration next to use.
401 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
402 * dwarf2read.c: #include "gdb-demangle.h".
403 * gnu-v2-abi.c: Ditto.
404 * jv-typeprint.c: Ditto.
405 * mdebugread.c: Ditto.
406 * p-typeprint.c: Ditto.
407 * stabsread.c: Ditto.
408 * printcmd.c: Ditto.
409 (asm_demangle): Delete declaration.
410 * tui/tui-stack.c: #include "gdb-demangle.h".
411
f6b47be4
DE
412 * python/py-type.c (typy_fields_items): Call check_typedef.
413
22355c90
JB
4142011-11-10 Joel Brobecker <[email protected]>
415
416 * findvar.c (read_frame_register_value): Read the correct bytes
417 from registers on big-endian architectures.
418
bd119cf1 4192011-11-10 Tom Tromey <[email protected]>
e28cade7
JB
420
421 * procfs.c (load_syscalls): Make a cleanup.
422 (open_procinfo_files): fd==0 is ok.
423
0a86f364
JB
4242011-11-10 Joel Brobecker <[email protected]>
425
426 * procfs.c (iterate_over_mappings): Call do_cleanups before
427 returning.
428
9bc118a5
DE
4292011-11-09 Doug Evans <[email protected]>
430
431 * gdbtypes.c (check_typedef): Document that this function can
432 throw an exception.
433
a7860e76
TT
4342011-11-09 Tom Tromey <[email protected]>
435
436 PR c++/13342:
437 * valops.c (value_full_object): Return early if real type is
438 smaller than the enclosing type.
439
60965737
YQ
4402011-11-08 Yao Qi <[email protected]>
441
442 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
443
72a2e3dc
MI
4442011-11-08 Meador Inge <[email protected]>
445
446 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
447 register when the frame can't be determined.
448 * arm-tdep.c (arm_analyze_prologue): Ditto.
449
ce3b0ff7
SS
4502011-11-07 Stan Shebs <[email protected]>
451
452 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
453
2b914b52
JB
4542011-11-07 Joel Brobecker <[email protected]>
455
456 * infrun.c (handle_inferior_event): Minor reformatting.
457
6f809020
DE
4582011-11-05 Doug Evans <[email protected]>
459
460 * source.c (forget_cached_source_info_for_objfile): Move call to
461 objfile->sf->qf->forget_cached_source_info outside of
462 ALL_OBJFILE_SYMTABS loop.
463 (forget_cached_source_info): Delete unused variable `s'.
464
75d12218
JK
4652011-11-05 Jan Kratochvil <[email protected]>
466
467 * i386-nat.c (dr_ref_count): Remove unused variable.
468
e565b837
DE
4692011-11-05 Doug Evans <[email protected]>
470
471 * main.c (captured_main): Set lim_at_start before calling
472 make_command_stats_cleanup.
473
0a1c4d10
DE
4742011-11-04 Doug Evans <[email protected]>
475
476 * utils.c: #include "timeval-utils.h".
477 (cmd_stats): Rename start_time to start_cpu_time.
478 New member start_wall_time.
479 (report_command_stats): Report wall time.
480 (make_command_stats_cleanup): Record start wall time.
481
a1d705ee
TT
4822011-11-04 Tom Tromey <[email protected]>
483
484 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
485
81de56be
RO
4862011-11-04 Rainer Orth <[email protected]>
487
488 * coff-pe-read.c: Include defs.h before bfd.h.
489
3ab1ec27
PM
4902011-11-04 Phil Muldoon <[email protected]>
491
492 PR Python/13345
493
494 * python/python.c (python_run_simple_file): Expand tilde in path.
495
cd829959
PM
4962011-11-04 Phil Muldoon <[email protected]>
497
498 PR Python/13363
499
500 * python/py-type.c (typy_lookup_type): Do not return a type in
501 an exception handler.
502
080ad648
JK
5032011-11-03 Jan Kratochvil <[email protected]>
504 Eli Zaretskii <[email protected]>
505
506 * linux-nat.c (_initialize_linux_nat): Improve help
507 for `info proc stat', `info proc status', `info proc cwd',
508 `info proc cmdline' and `info proc exe'.
509
3065dfb6
SS
5102011-11-02 Stan Shebs <[email protected]>
511
512 String collection for tracepoints.
513 * NEWS: Mention string collection.
514 * common/ax.def (tracenz): New bytecode.
515 * ax-gdb.h (trace_string_kludge): Declare.
516 * ax-gdb.c: Include valprint.h and c-lang.h.
517 (trace_string_kludge): New global.
518 (gen_traced_pop): Add string case.
519 (agent_command): Add string case.
520 * tracepoint.h (decode_agent_options): Declare.
521 * tracepoint.c: Include cli-utils.h.
522 (decode_agent_options): New function.
523 (validate_actionline): Call it.
524 (encode_actions_1): Ditto.
525 * target.h (struct target_ops): New method to_supports_string_tracing.
526 (target_supports_string_tracing): New macro.
527 * target.c (update_current_target): Add to_supports_string_tracing.
528 * remote.c (struct remote_state): New field string_tracing.
529 (remote_string_tracing_feature): New function.
530 (remote_protocol_features): New feature tracenz.
531 (remote_supports_string_tracing): New function.
532 (init_remote_ops): Set to_supports_string_tracing.
533
f179e162
JK
5342011-11-02 Pedro Alves <[email protected]>
535 Jan Kratochvil <[email protected]>
536
537 * linux-nat.c: Include cli/cli-utils.h.
538 (enum info_proc_what): New.
539 (linux_nat_info_proc_cmd): Rename to ...
540 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
541 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
542 status_f and stat_f from WHAT. Throw error on extra parameters.
543 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
544 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
545 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
546 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
547 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
548 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
549 `info proc cmdline', `info proc exe' and `info proc all' as real
550 subcommands of `info proc'.
551
7b35ec7f 5522011-11-01 Justin Lebar <[email protected]>
1bfeeb0f
JL
553
554 * Makefile.in: (SFILES): Add skip.c.
555 (HFILES_NO_SRCDIR): Add skip.h.
556 (COMMON_OBS): Add skip.o.
557 * skip.h, skip.c: New.
558 * breakpoint.h (set_default_breakpoint): Remove.
559 (get_sal_arch): Declare.
560 * breakpoint.c: Remove default_breakpoint_valid,
561 default_breakpoint_address, default_breakpoint_symtab,
562 default_breakpoint_line, default_breakpoint_pspace variables.
563 (get_sal_arch): Make public.
564 (set_default_breakpoint): Remove.
565 (parse_breakpoint_sals, create_breakpoint, clear_command,
566 decode_line_spec_1): Remove uses of default_breakpoint variables;
567 replaced with function calls into stack.c.
568 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
569 * cli/cli-cmds.c: Add skiplist.
570 (init_cmd_lists): Initialize skiplist.
571 (init_cli_cmds): Fix comment (classes of commands appear in
572 alphabetical order).
573 * infrun.c (handle_inferior_event): Add check that we don't step into
574 a function whose pc is marked for skip.
575 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
576 last_displayed_addr, last_displayed_symtab, last_displayed_line
577 variables.
578 (set_last_displayed_sal): New static function.
579 (print_frame_info): Switch call to set_default_breakpoint to call to
580 set_last_displayed_sal.
581 (clear_last_displayed_sal, last_displayed_sal_is_valid,
582 get_last_displayed_pspace, get_last_displayed_addr,
583 get_last_displayed_symtab, get_last_displayed_line,
584 get_last_displayed_sal): New public functions.
585 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
586 get_last_displayed_pspace, get_last_displayed_addr,
587 get_last_displayed_symtab, get_last_displayed_line,
588 get_last_displayed_sal): Declare.
589
b60e1588
JL
5902011-11-01 Justin Lebar <[email protected]>
591
592 * MAINTAINERS (Write After Approval): Add myself to the list.
593
d31647d2
YQ
5942011-10-29 Yao Qi <[email protected]>
595
596 * infcmd.c (disconnect_command): Call disconnect_tracing.
597
b1d96efd
JK
5982011-10-29 Jan Kratochvil <[email protected]>
599
600 Code cleanup.
601 * symtab.c (skip_prologue_sal): Code reformatting.
602
4dfb2365
JK
6032011-10-28 Jan Kratochvil <[email protected]>
604
605 PR symtab/13208
606 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
607 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
608 SAI.
609
0e5bf2a8
PA
6102011-10-28 Pedro Alves <[email protected]>
611
612 * linux-nat.c (linux_nat_filter_event): Remove `options'
613 parameter, and dead code that used it. If we're handling a
614 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
615 in our lwp list, re-add it.
616 (check_zombie_leaders): New.
617 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
618 wait for children with WNOHANG, and always wait for all children.
619 Don't check for no resumed children upfront. Simplify wait loop.
620 Check for zombie thread group leaders after handling all wait
621 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
622 unwaited-for children left.
623 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
624 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
625 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
626 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
627
821296b7
SA
6282011-10-28 Sterling Augustine <[email protected]>
629
630 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
631 * symtab.c (free_completion_list): New function.
632 (do_free_completion_list): Likewise.
633 (default_make_symbol_completion_list_break_on): New variable
634 back_to. Call make_cleanup and discard_cleanups.
635 (make_source_files_completion_list): Likewise.
636
03c3051a
PK
6372011-10-28 Paul Koning <[email protected]>
638
639 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
640 * NEWS: Mention deep_items.
641
8e7ebaf5
PA
6422011-10-28 Alen Skondro <[email protected]>
643
8de33dc2 644 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
645 defined.
646
e0c6ef61
MI
6472011-10-27 Meador Inge <[email protected]>
648
649 * MAINTAINERS (Write After Approval): Add myself to the list.
650
b56d6f31
JB
6512011-10-27 Joel Brobecker <[email protected]>
652
653 * value.h (read_frame_register_value): Add declaration.
654 * findvar.c (read_frame_register_value): New function.
655 (value_from_register): Use read_frame_register_value
656 instead of get_frame_register_value + value_contents_copy
657 to get value contents.
658
d234ef5c
DE
6592011-10-27 Doug Evans <[email protected]>
660
661 * cli/cli-cmds.c (source_script_with_search): Pass full path to
662 source_script_from_stream if it may have been found on the search path.
663 * python/py-auto-load.c (source_section_scripts): Pass full path to
664 source_python_script_for_objfile.
665 * python/python.c (source_python_script): Delete stream parameter.
666 All callers updated.
667 (source_python_script_for_objfile): Ditto.
668 * python/python-internal.h (source_python_script_for_objfile): Update.
669 * python/python.h (source_python_script): Update.
670
d849d44f
TT
6712011-10-27 Tom Tromey <[email protected]>
672
673 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
674 (ada_sals_for_line): Remove declarations.
675
2231f1fb
KP
6762011-10-27 Kevin Pouget <[email protected]>
677
678 Move unwind reasons to an external .def file
679 * frame.c (frame_stop_reason_string): Rewrite using
680 unwind_stop_reasons.def.
681 * frame.h (enum unwind_stop_reason): Likewise.
682 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
683 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
684 constants for bound-checking.
685 * unwind_stop_reasons.def: New file.
686 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
687 instead of a distinct value.
688
f77b9a5d
PM
6892011-10-27 Phil Muldoon <[email protected]>
690
691 PR python/13331
692
693 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
694 (convert_values_to_python): Return on Python tuple allocation
695 failure. Return NULL on value conversion error.
696
76dce0be
PM
6972011-10-27 Phil Muldoon <[email protected]>
698
699 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
700 (bppy_set_task): Ditto.
701 (bppy_delete_breakpoint): Ditto.
702 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
703 (gdbpy_lookup_global_symbol): Ditto.
704 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
705 * python/py-frame.c (frapy_is_valid): Ditto.
706 (frame_info_to_frame_object): Ditto.
707 * python/py-type.c (typy_lookup_type): Ditto.
708 (typy_getitem): Ditto.
709 (typy_has_key): Ditto.
710 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
711
f17b6955
JB
7122011-10-26 Joel Brobecker <[email protected]>
713
714 * gdbarch.h: Regenerate.
715
86ba1042
JB
7162011-10-26 Meador Inge <[email protected]>
717
718 * gdbarch.sh (function_list): Use 'pstring' when printing
719 'gcore_bfd_target'.
720 * gdbarch.c: Regenerate.
721
c34fd852
UW
7222011-10-26 Ulrich Weigand <[email protected]>
723
724 * regcache.c (registers_changed_ptid): Invalidate thread architecture
725 and frame caches if PTID refers to all threads of a process.
726
931bb47f
UW
7272011-10-26 Ulrich Weigand <[email protected]>
728
729 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
730 to create_breakpoint.
731
88aed45e
UW
7322011-10-26 Ulrich Weigand <[email protected]>
733
734 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
735 (ppc_sysv_abi_push_dummy_call): Use it.
736 (do_ppc_sysv_return_value): Likewise.
737 (ppc64_sysv_abi_push_dummy_call): Likewise.
738 (ppc64_sysv_abi_return_value): Likewise.
739
3eaf3fa2
PK
7402011-10-26 Paul Koning <[email protected]>
741
742 * python/lib/gdb/types.py (deepitems): New function.
743
913460fc
PK
7442011-10-25 Paul Koning <[email protected]>
745
746 PR python/13327
747
748 * python/py-value.c (value_to_value_object): Remove fetching of
749 the value if it was lazy.
750 (valpy_get_is_lazy): New function.
751 (valpy_fetch_lazy): New function.
752
2b5b9d09
JB
7532011-10-24 Joel Brobecker <[email protected]>
754
755 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
756 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
757
e21ffe51
PA
7582011-10-24 Pedro Alves <[email protected]>
759
760 * linux-nat.c (linux_handle_extended_wait): When handling a clone
761 event, in non-stop, if not stopping, make sure the new lwp has
762 last_resume_kind set to resume_continue. Assert that when we're
763 resuming the new lwp, its last_resume_kind is resume_continue.
764
7aee8dc2
PA
7652011-10-24 Pedro Alves <[email protected]>
766
767 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
768 already set when marking the event thread as not executing in
769 non-stop mode.
770
4b4e080e
PA
7712011-10-24 Pedro Alves <[email protected]>
772
773 * infrun.c (handle_inferior_event): Add debug output for
774 TARGET_WAITKIND_NO_HISTORY.
775
baacfb07
PM
7762011-10-24 Phil Muldoon <[email protected]>
777
778 * NEWS: Move set/show extended-prompt to "New Options". Expand
779 description. Fix typos.
780
8432bc41
PM
7812011-10-24 Phil Muldoon <[email protected]>
782
783 PR python/13310
784
785 * python/py-param.c (call_doc_function): Correctly deference on
786 function exit.
787
6cda5a20
JB
7882011-10-21 Joel Brobecker <[email protected]>
789
790 * ada-tasks.c (print_ada_task_info): Fix computation of
791 number of tasks displayed in command output.
792
13294f7d
JK
7932011-10-20 Jan Kratochvil <[email protected]>
794 Ulrich Weigand <[email protected]>
795
796 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
797 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
798 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
799 gdbarch_pc_regnum and frame_unwind_register_unsigned by
800 gdbarch_unwind_pc.
801
460c1c54
CC
8022011-10-20 Cary Coutant <[email protected]>
803
804 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
805 section to...
806 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
807 flag. Adjust all callers.
808 (process_psymtab_comp_unit): Remove adjustment for type section.
809
a10964d1
AR
8102011-10-20 Aleksandar Ristovski <[email protected]>
811
812 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
813 arguments by adding OBJFILE. Instead of getting objfile from
814 symbol's symtab, use new argument OBJFILE.
815 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
816 arguments by adding OBJFILE.
817 * gdb/dwarf2read.c (new_symbol_full): Change call to
818 cp_scan_for_anonymous_namespaces to match new signature.
819 * gdb/stabsread.c (define_symbol): Change call to
820 cp_scan_for_anonymous_namespaces to match new signature.
821
27ca1a5b
PM
8222011-10-20 Phil Muldoon <[email protected]>
823
824 PR python/13308
825 PR python/13309
826
827 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
828 leak.
829 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
830 leak. Delete unused variables.
831
9df2fbc4
PM
8322011-10-20 Phil Muldoon <[email protected]>
833
834 PR python/12656
835
836 * python/py-frame.c (frapy_read_var): Use const struct *block.
837 * python/py-type.c (typy_lookup_typename): Likewise.
838 (typy_lookup_type): Likewise.
839 (typy_legacy_template_argument): Likewise.
840 (typy_template_argument): Likewise.
841 (gdbpy_lookup_type): Likewise.
842 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
843 * python/py-block.c (blpy_block_object): Likewise.
844 (blpy_iter): Likewise.
845 (blpy_get_start): Likewise.
846 (blpy_get_end): Likewise.
847 (blpy_get_function): Likewise.
848 (blpy_get_superblock): Likewise.
849 (set_block): Likewise.
850 (block_to_block_object): Likewise.
851 (block_object_to_block): Likewise.
852 (blpy_is_valid): Likewise.
853 (blpy_get_global_block): New function.
854 (blpy_get_static_block): New function.
855 (blpy_is_global): New function.
856 (blpy_is_static): New function.
857 * blockframe.c (block_innermost_frame): Likewise.
858 * valops.c (value_of_variable): Likewise.
859 * frame.h: Update prototypes.
860 * python/python-internal.h: Likewise.
861 * value.h: Likewise.
862
4743b735
CC
8632011-10-19 Cary Coutant <[email protected]>
864
865 * dwarf2read.c (create_debug_types_hash_table): Fix size of
866 type_offset field.
867
6caca83c
CC
8682011-10-19 Cary Coutant <[email protected]>
869
870 * dwarf2read.c (peek_abbrev_code): New function.
871 (dw2_get_file_names): Check for dummy compilation units.
872 (create_debug_types_hash_table): Likewise.
873 (process_psymtab_comp_unit): Likewise.
874 (load_partial_comp_unit): Likewise.
875 (load_full_comp_unit): Likewise.
876
43136979
AR
8772011-10-18 Aleksandar Ristovski <[email protected]>
878
879 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
880 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
881 pt_phdr if PT_PHDR was found.
882
0a07729b
TT
8832011-10-17 Joost van der Sluis <[email protected]>
884
885 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
886 type or "<unnamed type"> when there is no name assigned.
887 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
888 avoid a sigint when no name is assigned.
889
21ae7a4d
JK
8902011-10-17 Jan Kratochvil <[email protected]>
891
892 Revert:
893 2011-07-27 Jan Kratochvil <[email protected]>
894 * dwarf2expr.c (ctx_no_read_reg): New function.
895 * dwarf2expr.h (ctx_no_read_reg): New declaration.
896 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
897 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
898 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
899
32d1c362
DE
9002011-10-16 Doug Evans <[email protected]>
901
902 * NEWS: Document python gdb.printing.register_pretty_printer's new
903 `replace' parameter.
904
da096638
KS
9052011-10-14 Keith Seitz <[email protected]>
906
907 PR c++/13225
908 * eval.c (evaluate_subexp_standard): Do not construct
909 an array of types; pass the value array directly to
910 find_overload_match.
911 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
912 (rank_function): Take an array of values instead of types.
913 (rank_one_type): Add struct value * parameter.
914 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
915 (rank_function): For each argument, pass the argument's
916 value to rank_one_type.
917 (rank_one_type): Add VALUE parameter.
918 If the parameter type is a pointer and the argument type
919 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
920 VALUE is zero.
921 Update all calls to rank_one_type, passing NULL for new
922 VALUE parameter.
923 * valarith.c (value_user_defined_cpp_op): Do not construct
924 an array of types; pass the value array directly to
925 find_overload_match.
926 * valops.c (find_overload_method_list): Take an array of
927 values instead of types.
928 Save the type of OBJP for later use.
929 Update calls to find_oload_champ, and find_oload_champ_namespace.
930 (find_oload_champ_namespace): Take an array of values instead
931 of types.
932 (find_oload_champ_namespace_loop): Likewise.
933 (find_oload_champ): Likewise.
934 (classify_oload_match): Inspect all arguments
935 until INCOMPATIBLE is found. Return the worst badness found
936 otherwise.
937 (compare_parameters): Update call to rank_one_type.
938 * value.h (find_overload_match): Take an array of values instead
939 of types.
940
3957565a
JK
9412011-10-14 Jan Kratochvil <[email protected]>
942
943 Drop lazy lm_info reading.
944 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
945 l_addr_inferior, l_ld, l_next, l_prev and l_name.
946 (lm_info_read): New function.
947 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
948 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
949 lm_dynamic_from_link_map.
950 (lm_next, lm_prev, lm_name): Remove.
951 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
952 initialization incl. read_memory. No longer use lm_name.
953 (svr4_free_so): Drop lm_info->lm freeing.
954 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
955 explicit lm_addr and lm initialization.
956 (svr4_read_so_list): Use lm_info_read, drop the initailization of
957 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
958 lm_name.
959
cb08cc53
JK
9602011-10-14 Jan Kratochvil <[email protected]>
961 Paul Pluzhnikov <[email protected]>
962
963 * defs.h (struct so_list): New forward declaration.
964 (make_cleanup_free_so): New declaration.
965 * solib-svr4.c (ignore_first_link_map_entry): Remove.
966 (svr4_free_so): Move the function here from downwards. Handle NULL
967 so->lm_info.
968 (svr4_free_library_list): New.
969 (svr4_read_so_list): New, moved here code from svr4_current_sos.
970 Use more cleanups. Use new parameter ignore_first instead of
971 ignore_first_link_map_entry.
972 (svr4_current_sos): New variable ignore_first, initialize it. New
973 variable back_to, use it for svr4_free_library_list protection.
974 (svr4_free_so): Remove - move upwards.
975 * utils.c: Include solist.h.
976 (do_free_so, make_cleanup_free_so): New functions.
977
22c05d8a
JK
9782011-10-13 Jan Kratochvil <[email protected]>
979
980 Fix internal error regression.
981 * value.c (value_primitive_field): Handle value_optimized_out. Move
982 packed bitfields comment.
983
d930d06e
TT
9842011-10-13 Tom Tromey <[email protected]>
985
986 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
987 always released.
988
2ff6b080
TT
9892011-10-13 Tom Tromey <[email protected]>
990
991 * python/py-type.c (typy_has_key): Make 'field' const.
992
d6c5869f
LM
9932011-10-13 Luis Machado <[email protected]>
994
995 * remote.c (remote_save_trace_data): Invert comparison.
996
a70633a2
LM
9972011-10-13 Luis Machado <[email protected]>
998
999 * tracepoint.c (trace_save_command): Use filename instead of
1000 args when printing.
1001
e103e986
JK
10022011-10-13 Jan Kratochvil <[email protected]>
1003
1004 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1005 if .size is 0.
1006
db24da6d
YQ
10072011-10-13 Yao Qi <[email protected]>
1008
1009 PR gdb/12703
1010 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1011 whether insn is a 32-bit Thumb-2 instruction.
1012 (thumb_in_function_epilogue_p): Likewise.
1013 (thumb_get_next_pc_raw): Likewise.
1014 (arm_breakpoint_from_pc): Likewise.
1015
1d6edc3c
JK
10162011-10-12 Jan Kratochvil <[email protected]>
1017
1018 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1019 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1020 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1021 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1022 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1023 zero DATA.
1024 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1025 validity.
1026 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1027 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1028 clear DATA on zero SIZE.
1029
adabb602
DE
10302011-10-12 Doug Evans <[email protected]>
1031
1032 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1033 header->first_die_offset here. All callers updated.
1034
5048e516
JK
10352011-10-12 Jan Kratochvil <[email protected]>
1036
1037 Fix compatibility with texinfo versions older than 4.12.
1038 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1039 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1040 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1041 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1042 * configure: Regenerate.
1043 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1044 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1045 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1046
0574c78f
GB
10472011-10-12 Gary Benson <[email protected]>
1048
1049 * breakpoint.h (pc_at_non_inline_function): Declare.
1050 * breakpoint.c (is_non_inline_function,
1051 pc_at_non_inline_function): New functions.
1052 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1053 if the stop is at a location where functions cannot be inlined.
1054
12d9289a
PA
10552011-10-12 Pedro Alves <[email protected]>
1056
1057 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1058 the core wanted them stopped, or if they now have a pending event
1059 to report.
ecf8e7f5
PA
1060 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1061 down to stop_and_resume_callback.
1062 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1063 having new pending events after calling linux_nat_filter_event.
12d9289a 1064
96408a79
SA
10652011-10-11 Sterling Augustine <[email protected]>
1066
1067 * dwarf2read.c: Undo inadvertent changes in previous commit.
1068
9c6c53f7
SA
10692011-10-11 Sterling Augustine <[email protected]>
1070
1071 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1072 logic.
1073
0e8aefe7
UW
10742011-10-11 Ulrich Weigand <[email protected]>
1075
1076 * symfile.c (separate_debug_file_exists): Fix condition.
1077
349d1385
DM
10782011-10-11 David S. Miller <[email protected]>
1079
1080 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1081 static.
1082 * regcache.h (regcache_restore): Remove declaration.
1083
205c306f
DM
1084 * gdbarch.sh: New field 'long_long_align_bit'.
1085 * gdbarch.c, gdbarch.h: Regenerate.
1086 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1087 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1088
941b2081
JK
10892011-10-11 Jan Kratochvil <[email protected]>
1090
1091 Revert this part of:
1092 2011-10-09 Jan Kratochvil <[email protected]>
1093 Support @entry in input expressions.
1094 * c-exp.y (ENTRY, unknown_cpp_name): New.
1095 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1096 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1097 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1098 (name_not_typename: ENTRY): New.
1099 (yylex): Recognize ENTRY.
1100
1101 Reimplement @entry in input expressions.
1102 * c-exp.y (ENTRY): New.
1103 (variable: name_not_typename ENTRY): New.
1104 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1105
3c4d7e12
PA
11062011-10-11 Pedro Alves <[email protected]>
1107
1108 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1109 parent and child's pids as soon as we detect a clone event.
1110 Adjust another debug message.
1111
ea23808b
PA
11122011-10-11 Pedro Alves <[email protected]>
1113
1114 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1115 not zombie instead of reading the whole file.
1116
904578ed
JK
11172011-10-11 Jan Kratochvil <[email protected]>
1118
1119 Fix separate debuginfo warning with "remote:" access.
1120 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1121 * symfile.c (get_file_crc): New function with the code moved from ...
1122 (separate_debug_file_exists): ... this function, specifically variables
1123 buffer and count. New variable verified_as_different, set it. Remove
1124 file_crc initialization. Verify also if both files are not the same
1125 manually, if needed.
1126
51370a33
YQ
11272011-10-11 Yao Qi <[email protected]>
1128
1129 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1130 to get address.
1131
0838fb57
DE
11322011-10-10 Doug Evans <[email protected]>
1133
1134 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1135 libthread_db when we load libpthread or the main symbol file.
1136 (thread_db_inferior_created): New function.
1137 (_initialize_thread_db): Attach inferior_created observer.
1138 * linux-nat.c (linux_child_post_attach): Remove call to
1139 check_for_thread_db.
1140 (linux_child_post_startup_inferior): Ditto.
1141 * objfiles.h (OBJF_MAINLINE): Define.
1142 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1143 allocate_objfile when appropriate.
1144
623bd5b7
UW
11452011-10-10 Ulrich Weigand <[email protected]>
1146
1147 PR gdb/13218
1148 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1149 Remove unused variables.
1150 (get_linux_version): Remove function.
1151 (_initialize_arm_linux_nat): Do not call it.
1152
79395f92
PA
11532011-10-10 Pedro Alves <[email protected]>
1154
1155 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1156 new clone lwp if the core asked it to stop. Don't pass on
1157 unexpected signals to the new clone; leave them pending instead.
1158
eff3df78
PA
11592011-10-10 Pedro Alves <[email protected]>
1160
1161 * linux-nat.c (resume_lwp): Remove redundant debug output.
1162
4b60df3d
PA
11632011-10-10 Pedro Alves <[email protected]>
1164
1165 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1166 last_resume_kind before clearing it, and use the copy instead to
1167 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1168 resume_clear_callback in the non-stop path too.
1169
6501578c
YQ
11702011-10-09 Yao Qi <[email protected]>
1171
1172 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1173 Honor OPTIONS and VAL's type.
1174 (common_val_print, value_print): Update to pass one more parameter.
1175
5a56e9c5
DE
11762011-10-09 Doug Evans <[email protected]>
1177
1178 Add new "alias" command.
1179 * NEWS: Mention new command.
1180 * command.h (valid_user_defined_cmd_name_p): Declare.
1181 * defs.h (make_cleanup_dyn_string_delete): Declare.
1182 * utils.c: #include "dyn-string.h".
1183 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1184 * cli/cli-cmds.c: #include "dyn-string.h".
1185 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1186 (init_cli_cmds): Add new command.
1187 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1188
509f0fd9
JK
11892011-10-09 Jan Kratochvil <[email protected]>
1190
1191 Fix compatibility with older GCCs.
1192 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1193 * stack.c (read_frame_arg): Initialize val_deref.
1194
2bda9cc5
JK
11952011-10-09 Jan Kratochvil <[email protected]>
1196
1197 Entry values NEWS entries, DWARF disassembly support.
1198 * NEWS: New entry values entry.
1199 (set print entry-values, show print entry-values)
1200 (set debug entry-values, show debug entry-values): New entries.
1201 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1202 indent. Remove variable start. Move header printing out. Respect
1203 INDENT. Support DW_OP_GNU_entry_value.
1204 (locexpr_describe_location_1): Move the header printing here, extend
1205 the disassemble_dwarf_expression passed parameters.
1206
a471c594
JK
12072011-10-09 Jan Kratochvil <[email protected]>
1208
1209 Display @entry parameter values even for references.
1210 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1211 coerce_ref_if_computed.
1212 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1213 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1214 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1215 existing push_dwarf_reg_entry_value call. Add new detection calling
1216 dwarf_block_to_dwarf_reg_deref. Update the error message.
1217 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1218 * dwarf2expr.h
1219 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1220 parameter deref_size, describe it in the comment.
1221 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1222 (dwarf_block_to_dwarf_reg_deref): New declaration.
1223 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1224 deref_size, describe it in the function comment. New variables
1225 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1226 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1227 describe it in the function comment. Fetch the alternative block
1228 accoring to DEREF_SIZE.
1229 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1230 (entry_data_value_free_closure, entry_data_value_funcs): New.
1231 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1232 outer_val, target_val, val and addr. Try to fetch and create also
1233 referenced value content.
1234 (pieced_value_funcs): NULL value for coerce_ref.
1235 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1236 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1237 coerce_ref_if_computed.
1238 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1239 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1240 * stack.c (read_frame_arg): Compare also dereferenced values.
1241 * value.c (value_computed_funcs): Make the parameter v const, use
1242 value_lval_const for it.
1243 (value_lval_const, coerce_ref_if_computed): New function.
1244 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1245 * value.h (struct lval_funcs): New field coerce_ref.
1246 (value_computed_funcs): Make the parameter v const.
1247 (value_lval_const, coerce_ref_if_computed): New declarations.
1248
36b11add
JK
12492011-10-09 Jan Kratochvil <[email protected]>
1250
1251 Support @entry in input expressions.
1252 * c-exp.y (ENTRY, unknown_cpp_name): New.
1253 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1254 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1255 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1256 (name_not_typename: ENTRY): New.
1257 (yylex): Recognize ENTRY.
1258 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1259 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1260 Likewise.
1261 * parse.c (operator_length_standard): Likewise.
1262 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1263
3343315b
JK
12642011-10-09 Jan Kratochvil <[email protected]>
1265
1266 Display referenced values in backtraces.
1267 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1268 * stack.c (print_frame_arg): Likewise.
1269
ac71a68c
JK
12702011-10-09 Jan Kratochvil <[email protected]>
1271
1272 Make some lval_funcs methods to default on NULL.
1273 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1274 NULL.
1275 (value_assign): Check if lval_computed write method is NULL.
1276 * value.h (struct lval_funcs): Comment NULL values for read and write
1277 methods.
1278
e18b2753
JK
12792011-10-09 Jan Kratochvil <[email protected]>
1280
1281 Display @entry parameter values (without references).
1282 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1283 New functions.
1284 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1285 New declarations.
1286 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1287 entry record.
1288 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1289 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1290 functions.
1291 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1292 (loclist_read_variable_at_entry): New function.
1293 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1294 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1295 DW_AT_location, call dwarf_block_to_sp_offset for it.
1296 * frame.h (print_entry_values_no, print_entry_values_only)
1297 (print_entry_values_preferred, print_entry_values_if_needed)
1298 (print_entry_values_both, print_entry_values_compact)
1299 (print_entry_values_default, print_entry_values): New declarations.
1300 (struct frame_arg): New field entry_kind.
1301 (read_frame_arg): New parameter entryargp.
1302 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1303 arg->entry_kind. Optionally print the `@entry' suffix.
1304 (list_args_or_locals): New variable entryarg, initialize it.
1305 Initialize also entry_kind of arg and entryarg. Conditionalize
1306 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1307 xfree for entryarg.error.
1308 * stack.c (print_entry_values_no, print_entry_values_only)
1309 (print_entry_values_preferred, print_entry_values_if_needed)
1310 (print_entry_values_both, print_entry_values_compact)
1311 (print_entry_values_default, print_entry_values_choices)
1312 (print_entry_values): New variables.
1313 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1314 print the `@entry' suffix, possibly in combination for
1315 print_entry_values_compact.
1316 (read_frame_arg): New parameter entryargp, new variables entryval,
1317 entryval_error and val_equal. Read in also entryargp, respect
1318 print_entry_values, compare the values using val_equal, fill in also
1319 argp->entry_kind (together with entryargp->entry_kind).
1320 (print_frame_args): New variable entryarg, initialize it.
1321 Conditionalize print_frame_arg for arg, add print_frame_arg for
1322 entryarg. Call xfree for entryarg.error.
1323 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1324 * symtab.h (struct symbol_computed_ops): New field
1325 read_variable_at_entry.
1326
93d86cef
JK
13272011-10-09 Jan Kratochvil <[email protected]>
1328
1329 Code reshuffle.
1330 * frame.h (struct frame_arg): New definition.
1331 (read_frame_arg): New declaration.
1332 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1333 (list_args_or_locals): ... the code here. New variable arg, call
1334 read_frame_arg and list_arg_or_local with it. Unify the
1335 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1336 arg.error.
1337 * stack.c (print_frame_arg): New functiom from the code of
1338 print_frame_args.
1339 (read_frame_arg): New function.
1340 (print_frame_args): Remove variable val. New variable arg, call
1341 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1342
2d6c5dc2
JK
13432011-10-09 Jan Kratochvil <[email protected]>
1344
1345 Protect entry values against self tail calls.
1346 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1347 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1348
111c6489
JK
13492011-10-09 Jan Kratochvil <[email protected]>
1350
1351 Recognize virtual tail call frames.
1352 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1353 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1354 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1355 * dwarf2-frame-tailcall.c: New file.
1356 * dwarf2-frame-tailcall.h: New file.
1357 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1358 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1359 REGS.PREV only after CIE execution.
1360 (struct dwarf2_frame_cache): New field tailcall_cache.
1361 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1362 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1363 parts, try to find entry_cfa_sp_offset. Call
1364 dwarf2_tailcall_sniffer_first.
1365 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1366 when appropriate.
1367 (dwarf2_frame_dealloc_cache): New function.
1368 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1369 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1370 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1371 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1372 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1373 * dwarf2loc.c (func_addr_to_tail_call_list)
1374 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1375 (call_site_find_chain_1, call_site_find_chain): New.
1376 * dwarf2loc.h (struct call_site_chain): New.
1377 (call_site_find_chain): New declaration.
1378 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1379 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1380 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1381 * stack.c (frame_info): Support also TAILCALL_FRAME.
1382
bb984ff1
JK
13832011-10-09 Jan Kratochvil <[email protected]>
1384
1385 Tail call sites reader implementation.
1386 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1387 fill in TYPE_TAIL_CALL_LIST.
1388 * gdbtypes.h (struct func_type): New field tail_call_list.
1389 (struct call_site): New field tail_call_next.
1390 (TYPE_TAIL_CALL_LIST): New definition.
1391
8e3b41a9
JK
13922011-10-09 Jan Kratochvil <[email protected]>
1393
1394 Implement basic support for DW_TAG_GNU_call_site.
1395 * block.c: Include gdbtypes.h and exceptions.h.
1396 (call_site_for_pc): New function.
1397 * block.h (call_site_for_pc): New declaration.
1398 * defs.h: Include hashtab.h.
1399 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1400 declarations.
1401 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1402 ctx_no_push_dwarf_reg_entry_value.
1403 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1404 (dwarf_block_to_dwarf_reg): New function.
1405 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1406 (ctx_no_push_dwarf_reg_entry_value): New function.
1407 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1408 push_dwarf_reg_entry_value.
1409 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1410 declarations.
1411 * dwarf2loc.c: Include gdbcmd.h.
1412 (dwarf_expr_ctx_funcs): New forward declaration.
1413 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1414 (dwarf_expr_reg_to_entry_parameter)
1415 (dwarf_expr_push_dwarf_reg_entry_value): New.
1416 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1417 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1418 (needs_dwarf_reg_entry_value): New function.
1419 (needs_frame_ctx_funcs): Install it.
1420 (_initialize_dwarf2loc): New function.
1421 * dwarf2loc.h (entry_values_debug): New declaration.
1422 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1423 (read_call_site_scope): New forward declaration.
1424 (process_full_comp_unit): Copy call_site_htab.
1425 (process_die): Support DW_TAG_GNU_call_site.
1426 (read_call_site_scope): New function.
1427 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1428 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1429 (cleanup_htab): Delete.
1430 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1431 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1432 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1433 FIELD_LOC_KIND_DWARF_BLOCK.
1434 * gdbtypes.h (enum field_loc_kind): New entry
1435 FIELD_LOC_KIND_DWARF_BLOCK.
1436 (struct main_type): New loc entry dwarf_block.
1437 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1438 (TYPE_FIELD_DWARF_BLOCK): New.
1439 * python/py-type.c: Include dwarf2loc.h.
1440 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1441 internal_error call on unknown FIELD_LOC_KIND.
1442 * symtab.h (struct symtab): New field call_site_htab.
1443 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1444 (core_addr_hash, core_addr_eq): New functions.
1445
b6cdc2c1
JK
14462011-10-09 Jan Kratochvil <[email protected]>
1447
1448 Code reshuffle.
1449 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1450 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1451 calling_convention under func_stuff there.
1452 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1453 (init_type) <TYPE_CODE_FUNC>: Likewise.
1454 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1455 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1456 * gdbtypes.h (enum type_specific_kind): Change
1457 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1458 (struct main_type) <type_specific>: Change calling_convention to
1459 func_stuff. Move calling_convention to ...
1460 (struct func_type): ... this new struct.
1461 (INIT_FUNC_SPECIFIC): New #define.
1462 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1463
181cebd4
JK
14642011-10-09 Jan Kratochvil <[email protected]>
1465
1466 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1467 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1468 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1469 ctx->ref_addr_size. Handle its invalid value.
1470 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1471 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1472 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1473 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1474 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1475 (dwarf2_per_cu_ref_addr_size): New function.
1476
c471e790
JK
14772011-10-09 Jan Kratochvil <[email protected]>
1478
1479 Code cleanup.
1480 * dwarf2read.c (per_cu_header_read_in): New function.
1481 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1482 variables cu_header_local and cu_headerp.
1483
741f5e3c
JK
14842011-10-09 Jan Kratochvil <[email protected]>
1485
1486 Fix initial language detection with -readnow.
1487 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1488 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1489 searches only for global symbols.
1490
a73d2258
JK
14912011-10-09 Jan Kratochvil <[email protected]>
1492
1493 Fix printed anonymous struct name.
1494 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1495 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1496 (anonymous_struct_prefix): New function.
1497 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1498 (dwarf2_name): Strip for anonymous structs any prefixes.
1499
749fd4ea
DE
15002011-10-07 Doug Evans <[email protected]>
1501
1fa57852
DE
1502 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1503 `replace'.
1504
690a4937
DE
1505 * python/lib/gdb/printing.py: Whitespace cleanup.
1506
749fd4ea
DE
1507 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1508 warning.
1509
4c38200f
PA
15102011-10-07 Pedro Alves <[email protected]>
1511
1512 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1513 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1514 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1515 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1516 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1517 (arm_linux_remove_watchpoint): Adjust.
1518 * i386-linux-nat.c (i386_linux_dr_set_control)
1519 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1520 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1521 (ia64_linux_remove_watchpoint): Adjust.
1522 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1523 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1524 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1525 (ppc_linux_insert_mask_watchpoint)
1526 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1527 (ppc_linux_remove_watchpoint): Adjust.
1528 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1529 Adjust.
1530
b7ff339d
CV
15312011-10-07 Corinna Vinschen <[email protected]>
1532
1533 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1534 (clear_win32_environment): New function for Cygwin to clear out
1535 Win32 environment.
1536 (windows_create_inferior): Prepare new environment from in_env
1537 for Cygwin, too.
1538
f287c1f3
PM
15392011-10-07 Phil Muldoon <[email protected]>
1540
5631e596 1541 PR python/13264
f287c1f3
PM
1542 * python/py-value.c (valpy_call): Check that arguments are
1543 a tuple.
1544 (is_intlike): Remove call to CHECK_TYPEDEF.
1545 (valpy_nonzero): Catch GDB exceptions.
1546 (valpy_absolute): Ditto.
1547 (valpy_lazy_string): Ditto.
1548 (valpy_call): Ditto.
1549 (valpy_get_is_optimized_out): Ditto.
1550 (valpy_long): Ditto.
1551 (valpy_float): Ditto.
1552 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1553 (valpy_richcompare): Ditto.
1554
03583c20
UW
15552011-10-07 Ulrich Weigand <[email protected]>
1556
1557 * inferior.h (disable_randomization): Declare.
1558 * infrun.c (disable_randomization): New global variable.
1559 (show_disable_randomization): New function.
1560 (set_disable_randomization): Likewise.
1561 (_initialize_infrun): Install set/show disable-randomization
1562 commands.
1563 * linux-nat.c (disable_randomization): Remove.
1564 (show_disable_randomization): Likewise.
1565 (set_disable_randomization): Likewise.
1566 (_initialize_linux_nat): No longer install set/show
1567 disable-randomization commands here.
1568 (linux_nat_supports_disable_randomization): New function.
1569 (linux_nat_add_target): Install it.
1570 * remote.c (PACKET_QDisableRandomization): New enum value.
1571 (remote_protocol_packets): Support QDisableRandomization.
1572 (_initialize_remote): Likewise.
1573 (remote_supports_disable_randomization): New function.
1574 (init_remote_ops): Install it.
1575 (extended_remote_supports_disable_randomization): New function.
1576 (init_extended_remote_ops): Install it.
1577 (extended_remote_disable_randomization): New function.
1578 (extended_remote_create_inferior_1): Call it.
1579 * target.h (struct target_ops): Add to_supports_disable_randomization.
1580 (target_supports_disable_randomization): Add prototype.
1581 * target.c (target_supports_disable_randomization): New function.
1582 (find_default_supports_disable_randomization): Likewise.
1583 (init_dummy_target): Install it.
1584
20c168b5
KP
15852011-10-07 Kevin Pouget <[email protected]>
1586
1587 Allow Python notification of new object-file loadings.
1588 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1589 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1590 Add build rule for this file.
1591 * python/py-event.h (emit_new_objfile_event): New prototype.
1592 (newobjfile): New Python event emitter.
1593 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1594 Python event registry.
1595 * python/py-inferior.c: Include objfiles.h
1596 (python_new_objfile): New function.
1597 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1598 observers.
1599 * python/py-newobjfileevent.c: New file.
1600 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1601 prototype.
1602 * python/python.c (_initialize_python): Add
1603 gdbpy_initialize_new_objfile_event call.
1604 * NEWS: Add item for new Python event "gdb.newobjfile"
1605
b1c8db38
TG
16062011-10-05 Tristan Gingold <[email protected]>
1607
1608 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1609 Extract the ravenscar task name from the symbol for the atcb.
1610
0dab82e9
PK
16112011-10-04 Paul Koning <[email protected]>
1612
1613 * python/py-type.c (typy_make_iter): Add forward declaration.
1614 (typy_fields_items): Use the gdb.Type iterator.
1615
84ad80e6
PK
16162011-10-04 Paul Koning <[email protected]>
1617
1618 * NEWS: Add entry for Python gdb.Type mapping methods.
1619
cb6be26b
KP
16202011-10-04 Kevin Pouget <[email protected]>
1621
1622 PR python/12691: Add the inferior to Python exited event
1623 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1624 to exited_event.
1625 * python/py-event.h (emit_exited_event): Likewise
1626 * python/-inferior.c (python_inferior_exit): Likewise
1627
6005b210
JB
16282011-10-03 Joel Brobecker <[email protected]>
1629
1630 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1631 in output of -ada-task-info GDB/MI command.
1632
75082e8c
JB
16332011-10-03 Joel Brobecker <[email protected]>
1634
1635 * ada-lang.h (struct inferior): Declare.
1636 (print_ada_task_info): Add declaration.
1637 * ada-tasks.c (print_ada_task_info): Make non-static.
1638 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1639 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1640 * mi/mi-main.c: #include "ada-lang.h".
1641 (mi_cmd_list_features): Add "ada-task-info" to the list
1642 of supported features.
1643 (mi_cmd_ada_task_info): New function.
1644
7ed7d719
JB
16452011-10-03 Joel Brobecker <[email protected]>
1646
1647 * python/python.c (python_run_simple_file): New function.
1648 (source_python_script, source_python_script_for_objfile):
1649 Replace call to PyRun_SimpleFile by call to
1650 python_run_simple_file.
1651
3fcaed38
PK
16522011-10-03 Paul Koning <[email protected]>
1653
1654 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1655 (value_to_value_object): Fetch value if it was lazy.
1656
8e5c319d
JK
16572011-10-02 Jan Kratochvil <[email protected]>
1658
1659 Code cleanup.
1660 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1661 Rearrange the code for it.
1662
dd11a36c
JB
16632011-10-02 Joel Brobecker <[email protected]>
1664
1665 * breakpoint.c (bkpt_print_recreate): Add call to
1666 print_recreate_thread.
1667
723b724b
MF
16682011-09-29 Mike Frysinger <[email protected]>
1669
1670 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1671 PTRACE_GETFDPIC_INTERP): Define.
1672
412946b6
YQ
16732011-09-28 Yao Qi <[email protected]>
1674
1675 * symfile.c (add_symbol_file_command): Update message on usage.
1676
a73bb892
PK
16772011-09-28 Paul Koning <[email protected]>
1678
1679 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1680 (typy_length, typy_get, typy_has_key, typy_make_iter)
1681 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1682 (typy_iterator_iter, typy_iterator_iternext)
1683 (typy_iterator_dealloc): New functions to implement standard
1684 Python mapping methods on gdb.Type object.
1685 (gdb.TypeIterator): New Python type.
1686 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1687
fe10a582
DM
16882011-09-28 David S. Miller <[email protected]>
1689
1690 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1691 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1692 * sparc-tdep.c (sparc_complex_floating_p): New function.
1693 (sparc32_store_arguments): Handle complex floats.
1694 (sparc32_extract_return_value): Likewise.
1695 (sparc32_store_return_value): Likewise.
1696 (sparc32_stabs_argument_has_addr): Likewise.
1697 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1698 (sparc64_store_floating_fields): Handle complex floats.
1699 (sparc64_store_arguments): Likewise.
1700 (sparc64_store_return_value): Likewise.
1701
c93dbcba
EZ
17022011-09-28 Eli Zaretskii <[email protected]>
1703
1704 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1705 before the change on 2006-12-09.
1706 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1707 generates the environment block for CreateProcessA, modulo the
1708 Cygwin-specific parts that are not needed here.
1709
f00c55f8
TG
17102011-09-27 Tristan Gingold <[email protected]>
1711
1712 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1713 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1714 (darwin_solib_get_all_image_info_addr_at_init): New function.
1715 (darwin_solib_read_all_image_info_addr): Likewise.
1716 (darwin_solib_create_inferior_hook): Use the above two functions.
1717 * darwin-nat.c (darwin_execvp): Renames retval to res.
1718 (darwin_read_write_inferior): Update comment.
1719 (darwin_read_dyld_info): New function.
1720 (darwin_xfer_partial): Handle DYLD_INFO.
1721
6710bf39
SS
17222011-09-27 Stan Shebs <[email protected]>
1723
1724 Add return address collection for tracepoints.
1725 * tracepoint.c (encode_actions_1): Add case for $_ret.
1726 (validate_actionline): Check for $_ret.
1727 (trace_dump_actions): Ditto.
1728 * ax-gdb.h (gen_trace_for_return_address): Declare.
1729 * ax-gdb.c: Include arch-utils.h.
1730 (gen_trace_for_return_address): New function.
1731 (agent_command): Add return address special case.
1732 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1733 (amd64_gen_return_address): New function.
1734 (amd64_init_abi): Call it.
1735 * i386-tdep.c: Include ax.h and ax-gdb.h.
1736 (i386_gen_return_address): New function.
1737 (i386_init_abi): Call it.
1738 * arch-utils.h (default_gen_return_address): Declare.
1739 * arch-utils.c (default_gen_return_address): New function.
1740 * gdbarch.sh (gen_return_address): New method.
1741 * gdbarch.h, gdbarch.c: Regenerate.
1742
e04e5beb
JM
17432011-09-23 Joseph Myers <[email protected]>
1744
1745 PR gdb/13079
1746 * i386-tdep.c (i386_frame_align): New.
1747 (i386_gdbarch_init): Use i386_frame_align.
1748
f3d6df6d
YQ
17492011-09-23 Yao Qi <[email protected]>
1750
1751 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1752 to get address.
1753
e69860f1
TG
17542011-09-22 Tristan Gingold <[email protected]>
1755
1756 * fork-child.c (fork_inferior): Add exec_fun parameter.
1757 Call exec_fun or execvp.
1758 * inferior.h: Adjust prototype.
1759 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1760 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1761 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1762 * procfs.c (procfs_create_inferior): Ditto.
1763 * darwin-nat.c (darwin_execvp): New function.
1764 (darwin_create_inferior): Use it.
1765
4b51d87b
YQ
17662011-09-22 Yao Qi <[email protected]>
1767
1768 * infrun.c (context_switch): Print debug message when switching to
1769 a different thread.
1770
56b9d9ac
UW
17712011-09-21 Ulrich Weigand <[email protected]>
1772
1773 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1774 complex and vector types.
1775 (s390_return_value_convention): Likewise.
1776
1777 (s390_value_from_register): Call check_typedef.
1778 (extend_simple_arg): Likewise.
1779 (alignment_of): Likewise.
1780 (s390_push_dummy_call): Likewise.
1781 (s390_return_value): Likewise.
1782
b2cd6b29
JM
17832011-09-21 Joseph Myers <[email protected]>
1784
1785 * event-top.c (async_disconnect): If an exception is thrown from
1786 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1787 catch_errors.
1788 * top.c (quit_cover): Return void and take no arguments.
1789 * top.h (quit_cover): Update prototype.
1790
67ba4e42
JM
17912011-09-20 Joseph Myers <[email protected]>
1792
1793 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1794 current_uiout, not uiout.
1795
562f943b
DE
17962011-09-19 Doug Evans <[email protected]>
1797
1798 * python/py-auto-load.c (source_section_scripts): Fix file
1799 descriptor leak.
1800 * python/python.c (source_python_script_for_objfile): Tweak comments.
1801
34518530
YQ
18022011-09-18 Yao Qi <[email protected]>
1803 Ulrich Weigand <[email protected]>
1804
1805 Support displaced stepping for Thumb 16-bit insns.
1806 * arm-tdep.c (THUMB_NOP) Define.
1807 (thumb_copy_unmodified_16bit): New.
1808 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1809 (thumb_copy_alu_reg): New.
1810 (arm_copy_svc): Move some common code to ...
1811 (install_svc): ... here. New.
1812 (thumb_copy_svc): New.
1813 (install_pc_relative): New.
1814 (thumb_copy_pc_relative_16bit): New.
1815 (thumb_decode_pc_relative_16bit): New.
1816 (thumb_copy_16bit_ldr_literal): New.
1817 (thumb_copy_cbnz_cbz): New.
1818 (cleanup_pop_pc_16bit_all): New.
1819 (thumb_copy_pop_pc_16bit): New.
1820 (thumb_process_displaced_16bit_insn): New.
1821 (thumb_process_displaced_32bit_insn): New.
1822 (thumb_process_displaced_insn): process thumb instruction.
1823
1824 Support displaced stepping for Thumb 32-bit insns.
1825 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1826 (thumb2_copy_preload): New.
1827 (thumb2_copy_copro_load_store): New.
1828 (thumb2_copy_b_bl_blx): New.
1829 (thumb2_copy_alu_imm): New.
1830 (thumb2_copy_load_reg_imm): New.
1831 (thumb2_copy_load_literal): New
1832 (thumb2_copy_block_xfer): New.
1833 (thumb_32bit_copy_undef): New.
1834 (thumb_32bit_copy_unpred): New.
1835 (thumb2_decode_ext_reg_ld_st): New.
1836 (thumb2_decode_svc_copro): New.
1837 (decode_thumb_32bit_store_single_data_item): New.
1838 (thumb_copy_pc_relative_32bit): New.
1839 (thumb_decode_pc_relative_32bit): New.
1840 (decode_thumb_32bit_ld_mem_hints): New.
1841 (thumb2_copy_table_branch): New
1842 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1843 instructions.
1844
2b16b2e3
YQ
18452011-09-18 Yao Qi <[email protected]>
1846
1847 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1848 (install_b_bl_blx): Likewise.
1849
0f6f04ba
YQ
18502011-09-17 Yao Qi <[email protected]>
1851
1852 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1853 (install_load_store): ... this. New.
1854 Change parameter BYTE to SIZE.
1855 (arm_copy_ldr_str_ldrb_strb): Update caller.
1856 (arm_decode_ld_st_word_ubyte): Update caller.
1857
e2d96639
YQ
18582011-09-17 Yao Qi <[email protected]>
1859
1860 * infrun.c (displaced_step_fixup): Move some code ...
1861 (displaced_step_restore): ... here. New function.
1862 (handle_inferior_event): Cleanup displaced stepping state for both
1863 child and parent when get forked or vforked event.
1864 * regcache.c (get_thread_arch_aspace_regcache): New function.
1865 get_thread_arch_regcache (): Call it.
1866
a8123151
JB
18672011-09-16 Joel Brobecker <[email protected]>
1868
1869 * ada-tasks.c (print_ada_task_info): New function, merging
1870 short_task_info and info_tasks together. Reimplement using
1871 ui-out instead of printing to stdout directly. Move the code
1872 building and checking the task list here, instead of leaving it
1873 in info_tasks_command.
1874 (info_task): Move the code building and checking the task
1875 list here, instead of leaving it in info_tasks_command.
1876 (info_tasks_command): Delete code building and checking
1877 the task list - moved elsewhere. Update calls to info_tasks
1878 and info_task.
1879
fbf06824
JB
18802011-09-16 Joel Brobecker <[email protected]>
1881
1882 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1883
34a0bc90
JB
18842011-09-16 Joel Brobecker <[email protected]>
1885
1886 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1887
79779fa9
JB
18882011-09-16 Joel Brobecker <[email protected]>
1889
1890 * ada-lang.h (ada_build_task_list): Remove parameter
1891 `warn_if_null'.
1892 * ada-tasks.c (ada_build_task_list): Remove parameter
1893 `warn_if_null'. Adjust implementation and documentation.
1894 (valid_task_id, ada_get_environment_task)
1895 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1896 (info_tasks_command): Adjust implementation.
1897 (task_command): Likewise.
1898 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1899 to ada_build_task_list.
1900
e225eb91
JB
19012011-09-16 Joel Brobecker <[email protected]>
1902
1903 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1904 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1905 (ada_tasks_inferior_data_handle): New static global.
1906 (get_ada_tasks_inferior_data): New function.
1907 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1908 (ada_get_environment_task, iterate_over_live_ada_tasks)
1909 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1910 Adjust.
1911 (ada_set_current_inferior_known_tasks_addr): New function.
1912 (read_known_tasks, ada_build_task_list, short_task_info)
1913 (info_tasks, info_task, info_tasks_command, task_command_1)
1914 (task_command, ada_task_list_changed): Adjust.
1915 (ada_tasks_invalidate_inferior_data): New function.
1916 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1917 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1918 * ada-lang.h (struct inferior): Add declaration.
1919 (ada_task_list_changed): Update profile.
1920 * remote-wtx-pd.c: #include "inferior.h".
1921 (switch_to_pd_internal): Update call to ada_task_list_changed.
1922
6da9ca05
JB
19232011-09-16 Joel Brobecker <[email protected]>
1924
1925 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1926 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1927 (atcb_fieldno): Delete these static globals.
1928 (struct ada_tasks_pspace_data): New struct.
1929 (ada_tasks_pspace_data_handle): New static global.
1930 (get_ada_tasks_pspace_data): New function.
1931 (ada_tasks_invalidate_pspace_data): New function.
1932 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1933 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1934 (_initialize_tasks): Create this module's per-progspace
1935 data handle.
1936
dccd3cbd
JB
19372011-09-16 Joel Brobecker <[email protected]>
1938
1939 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1940
f877b031
TG
19412011-09-16 Tristan Gingold <[email protected]>
1942
1943 * fork-child.c (fork_inferior): Update comment. Use alloca
1944 instead of xmalloc for argv. Move len and shell_command
1945 declarations in the block where they are used.
1946 Only call execvp. Factorize failure code.
1947
ae0c443d
JK
19482011-09-16 Abhijit Halder <[email protected]>
1949
1950 Code cleanup.
1951 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1952 `exp_element' instead of an element of the same and make the function
1953 static.
1954 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1955 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1956 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1957 Change argument of `write_exp_elt' function call.
1958 Remove extra spaces from comments.
1959 * parser-defs.h (write_exp_elt): Remove prototype.
1960
5af65ec0
PK
19612011-09-15 Paul Koning <[email protected]>
1962
1963 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1964 count of item appended to list.
1965 * python/py-type.c (typy_fields): Likewise.
1966
72be8ccc
PK
19672011-09-15 Paul Koning <[email protected]>
1968
883640a8 1969 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1970
92f6badc
KP
19712011-09-15 Kevin Pouget <[email protected]>
1972
1973 PR threads/12628
1974 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1975 processes with multiple threads.
1976 (inf_has_multiple_thread_cb): New function.
1977 (inf_has_multiple_threads): New function.
1978
0672bf41 19792011-09-15 Kevin Pouget <[email protected]>
2aa48337
KP
1980
1981 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1982 * python/py-inferior.c (GdbMethods): New Python method definition.
1983
6839b47f
KP
19842011-09-15 Kevin Pouget <[email protected]>
1985
1986 Handle multiple breakpoint hits in Python interface:
1987 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1988 variable to breakpoints.
1989 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1990 bps instead of single breakpoint. Fix some space typos.
1991 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1992 variable to breakpoints.
1993
672f9b60
KP
19942011-09-15 Kevin Pouget <[email protected]>
1995
1996 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1997 note if the breakpoint is internal.
1998
43675ae4
KP
19992011-09-15 Kevin Pouget <[email protected]>
2000
0672bf41 2001 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2002
15148d6a
PA
20032011-09-14 Pedro Alves <[email protected]>
2004
2005 * infrun.c (prepare_for_detach, wait_for_inferior)
2006 (fetch_inferior_event): Don't flush the register cache.
2007 * remote.c (struct stop_reply) <regcache>: Add comment.
2008
d83e736b
JK
20092011-09-13 Jan Kratochvil <[email protected]>
2010
2011 Remove excessive DWARF expressions memory duplication.
2012 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2013 for block.data.
2014 (indirect_pieced_value): Remove variable result. Remove variable
2015 back_to and its use for baton.data.
2016 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2017 block.data.
2018 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2019 Update the function comment.
2020
c65b3e0d
PA
20212011-09-13 Pedro Alves <[email protected]>
2022
2023 * inferior.h (ALL_INFERIORS): New.
2024 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2025 for a stopped thread.
2026 (thread_db_find_new_threads): Look for threads in all inferiors.
2027
a1398e0c
PA
20282011-09-13 Pedro Alves <[email protected]>
2029
2030 * breakpoint.c (update_watchpoint): Handle the case of the
2031 watchpoint to update not being in the breakpoint list yet.
2032 (hw_watchpoint_use_count): New, factored out from
2033 hw_watchpoint_used_count.
2034 (hw_watchpoint_used_count): Rename to ...
2035 (hw_watchpoint_used_count_others): ... this. Add `except'
2036 parameter. Don't count resources of `except'. Use
2037 hw_watchpoint_use_count.
2038
30596231
PA
20392011-09-13 Pedro Alves <[email protected]>
2040
2041 * gdbthread.h (enum thread_state): Moved here.
2042 (struct thread_info): Rename `executing_' field to `executing' and
2043 `state_' to `state'.
2044 * thread.c (enum thread_state): Moved to gdbthread.h.
2045 (new_thread, add_thread_silent, delete_thread_1)
2046 (any_live_thread_of_process, thread_alive, set_running)
2047 (set_running, is_thread_state, any_running, is_executing)
2048 (set_executing, finish_thread_state, print_thread_info)
2049 (do_captured_thread_select): Adjust.
2050
bede5f5f
JK
20512011-09-13 Jan Kratochvil <[email protected]>
2052
2053 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2054 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2055
4801a9a3
PA
20562011-09-12 Pedro Alves <[email protected]>
2057 Matt Rice <[email protected]>
2058
2059 PR gdb/13175
2060
2061 * interps.c (struct interp) <interpreter_out>: Delete field.
2062 (interp_new): Remove the data and uiout parameters and adjust.
2063 (interp_set): Only set the current_uiout from the interpreter's
2064 uiout after initializing the interpreter. Adjust call to
2065 init_proc.
2066 (interp_ui_out): Adjust to call procs->ui_out_proc.
2067 (interp_data, interp_name): New.
2068 * interps.h (interp_init_ftype): Add `self' parameter.
2069 (interp_ui_out_ftype): New typedef.
2070 (struct interp_procs) <ui_out_proc>: New method pointer.
2071 (interp_new): Remove the data and uiout parameters.
2072 (interp_data, interp_name): Declare.
2073 * tui/tui-interp.c (tui_init): Adjust prototype.
2074 (tui_ui_out): New.
2075 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2076 tui_out here. Adjust call to interp_new.
2077 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2078 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2079 (cli_ui_out): New.
2080 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2081 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2082 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2083 Initialize mi->uiout depending on the mi_version as extracted from
2084 the interpreter's name.
2085 (mi_ui_out): New.
2086 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2087 interp_new. Don't allocate the ui_out's of the interpreters here.
2088
d0afda03 20892011-09-12 Aleksandar Ristovski <[email protected]>
59145f8c 2090
d0afda03 2091 * solib.c (solib_used): New function.
59145f8c
AR
2092 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2093 by another so_list object before freeing it.
2094
bdaf8d4a
JK
20952011-09-11 Jan Kratochvil <[email protected]>
2096
2097 Code cleanup.
2098 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2099 values.
2100
df15bd07
JK
21012011-09-09 Jan Kratochvil <[email protected]>
2102
2103 Code cleanup.
2104 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2105 (amd64_skip_xmm_prologue): ... this new function. Describe its
2106 parameters. No longer use amd64_prologue_line_bug.
2107 * defs.h (producer_is_gcc_ge_4): New declaration.
2108 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2109 (process_full_comp_unit): Update its caller. Remove
2110 amd64_prologue_line_bug initialization.
2111 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2112 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2113
25289eb2
PA
21142011-09-09 Pedro Alves <[email protected]>
2115
2116 * linux-nat.h (enum resume_kind): New.
2117 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2118 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2119 resume_stop on the new lwp.
25289eb2
PA
2120 (add_lwp): Set last_resume_kind as resume_continue by default.
2121 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2122 (resume_lwp): New, factored out from resume_callback. Also check
2123 for pending status in lp->waitstatus.
2124 (resume_callback): Reimplement.
2125 (resume_clear_callback): Set last_resume_kind as resume_stop.
2126 (resume_set_callback): Set last_resume_kind as resume_continue.
2127 (linux_nat_resume, linux_handle_extended_wait): Set
2128 last_resume_kind.
2129 (running_callback): Also check lp->waitstatus for pending events.
2130 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2131 is resume_step.
2132 (stop_and_resume_callback): Don't re-resume if the core wanted the
2133 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2134 using an invalidated pointer.
2135 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2136 SIGSTOPs if the core wanted the LWP to stop.
2137 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2138 wanted the lwp to stop. If the core wanted the lwp to stop, and
2139 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2140 of TARGET_SIGNAL_STOP.
2141 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2142 here. Instead, signal the lwp, and set the last_resume_kind to
2143 resume_stop.
2144
f687d035
PA
21452011-09-09 Pedro Alves <[email protected]>
2146
2147 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2148 -1 (error), if the lwp exits right after attaching.
2149
bc587a6b
DE
21502011-09-08 Doug Evans <[email protected]>
2151
63d97a20
DE
2152 * py-cmd.c: Some minor formatting fixes.
2153 (gdbpy_parse_command_name): Rename text arg to name, make const.
2154 All callers updated.
2155 * python-internal.h (gdbpy_parse_command_name): Update.
2156
bc587a6b
DE
2157 * cli/cli-decode.c (add_cmd): Add comment.
2158
08711b9a
JK
21592011-09-08 Jan Kratochvil <[email protected]>
2160
2161 PR breakpoints/12435
2162 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2163 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2164 * dwarf2read.c (process_full_comp_unit): Initialize
2165 amd64_prologue_line_bug.
2166 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2167
b2e7f004
JK
21682011-09-08 Jan Kratochvil <[email protected]>
2169
2170 Fix TUI screen corruption.
2171 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2172 batch_flag.
2173
8afd712c
JK
21742011-09-08 Jan Kratochvil <[email protected]>
2175
2176 * findvar.c (read_var_value): Never return NULL, throw an error
2177 instead. Update the function comment. State symbol name in the error
2178 messages.
2179 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2180 read_var_value.
2181 * stack.c (print_frame_args): Likewise.
2182 * valops.c (value_of_variable): Likewise.
2183
b99b5f66
JK
21842011-09-08 Jan Kratochvil <[email protected]>
2185
2186 * stack.c (print_frame_args): New variable except. Wrap
2187 read_var_value and common_val_print into TRY_CATCH.
2188
85bc8cb7
JK
21892011-09-08 Jan Kratochvil <[email protected]>
2190
2191 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2192 caller to value_of_this.
2193 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2194 Twice.
2195 * valops.c (value_of_this): Remove parameter complain and variable ret.
2196 Update function comment. Never return NULL by this code.
2197 (value_of_this_silent): New function.
2198 * value.h (value_of_this): Remove parameter complain.
2199 (value_of_this_silent): New declaration.
2200
ede1849f
YQ
22012011-09-07 Yao Qi <[email protected]>
2202
2203 * gdbthread.h (struct thread_info): Remove fields
2204 `stepping_through_solib_after_catch' and
2205 `stepping_through_solib_catchpoints'.
2206 * infrun.c (init_thread_stepping_state): Update.
2207 (process_event_stop_test, currently_stepping): Update.
2208 (currently_stepping_or_nexting_callback): Update.
2209
6aa27652
YQ
22102011-09-07 Yao Qi <[email protected]>
2211
2212 * gdbthread.h (struct thread_info): Comment on field
2213 `step_after_step_resume_breakpoint'.
2214
00db5b94
PA
22152011-09-07 Abhijit Halder <[email protected]>
2216
2217 * remote.c (remote_console_output): Reindent.
2218
861152be
LM
22192011-09-06 Luis Machado <[email protected]>
2220
2221 * frame.c (has_stack_frames): Check for currently selected
2222 traceframe.
2223
ab821bc6
PA
22242011-09-06 Pedro Alves <[email protected]>
2225
2226 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2227 (set_async_annotation_level, set_async_prompt, pop_prompt)
2228 (push_prompt, new_async_prompt): Delete declarations.
2229 * top.h (get_prompt, set_prompt): Change prototype.
2230 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2231 declarations.
2232 * top.c (command_loop):
2233 (top_prompt): New global.
2234 (get_prefix, set_prefix, get_suffix, ): Delete.
2235 (get_prompt, set_prompt): Rewrite.
2236 (show_new_async_prompt): Rename to ...
2237 (show_prompt): ... this.
2238 (init_main): Adjust. Don't handle --annotate=2 here.
2239 * event-top.c (new_async_prompt): Delete.
2240 (the_prompts): Delete.
2241 (more_to_come): Make static.
2242 (display_gdb_prompt): Use top_level_prompt() to compute the top
2243 level prompt, and don't notify the before_prompt observers
2244 directly here. Always trick readline into not trying to display
2245 the prompt if sync_execution and displaying the primary prompt.
2246 If displaying a local/secondary prompt, always show it, even if
2247 sync_execution is set.
2248 (change_annotation_level): Delete.
2249 (top_level_prompt): New, based on change_annotation_level.
2250 (push_prompt, pop_prompt): Delete.
2251 (async_disable_stdin): No longer pushes prompt.
2252 (command_line_handler): No longer pushes or pops prompt. If more
2253 input is expected, call display_gdb_prompt with an explicit empty
2254 prompt.
2255 (async_stop_sig): Adjust.
2256 (set_async_annotation_level, set_async_prompt): Delete.
2257 * python/python.c (before_prompt_hook): Adjust.
2258
f1d90504
PA
22592011-09-05 Pedro Alves <[email protected]>
2260
2261 PR cli/13110
2262
2263 * infrun.c (fetch_inferior_event): Check if there's a selected
2264 thread before checking if the selected thread is executing.
2265
0f641c01
PA
22662011-09-05 Pedro Alves <[email protected]>
2267
2268 * inf-loop.c (execute_command): Don't check if the current thread
2269 if running before synchronously waiting for command completion.
2270 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2271 here.
2272 (normal_stop): Call async_enable_stdin here.
2273 * inf-loop.c (inferior_event_handler): Don't call
2274 async_enable_stdin, nor handle "set exec-done-display" here.
2275
30368258 22762011-09-04 Joel Brobecker <[email protected]>
2277
2278 GDB 7.3.1 released.
2279
31916278
JB
22802011-09-04 Joel Brobecker <[email protected]>
2281
2282 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2283
e8d56f18
JB
22842011-09-04 Joel Brobecker <[email protected]>
2285
2286 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2287
5dd05d8c
JK
22882011-09-02 Jan Kratochvil <[email protected]>
2289
2290 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2291
7d8e6458 22922011-09-02 Matt Rice <[email protected]>
2293
2294 PR gdb/10720
2295 * event-top.c (cli_command_loop): Replace readline setup with
2296 direct call to display_gdb_prompt.
2297 (display_gdb_prompt): Do not call observer mechanism during
2298 synchronous execution.
2299
84636d28
PA
23002011-09-02 Pedro Alves <[email protected]>
2301
2302 * linux-nat.c (in_pid_list_p): New.
2303 (linux_record_stopped_pid): Delete.
2304 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2305 already attached to the LWP. Return an indication if so.
2306 (linux_nat_filter_event): Adjust.
2307 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2308 returning an indication to ignore this thread.
2309
b4a14fd0
PA
23102011-09-02 Pedro Alves <[email protected]>
2311
2312 * top.c: Include interps.h.
2313 (execute_command): If the target can async, but the interpreter is
2314 in sync mode, synchronously wait for the command to finish before
2315 returning.
2316 (execute_command_to_string): Force the interpreter to sync mode.
2317 * infrun.c: Include interps.h.
2318 (fetch_inferior_event): Don't restore the prompt yet if the
2319 interpreter is in sync mode.
2320 * interps.c (interpreter_async): New global.
2321 * interps.h (interpreter_async): Declare.
2322 * inf-loop.c: Include interps.h.
2323 (inferior_event_handler): Don't print the language change or run
2324 breakpoint commands yet if the interpreter in is sync mode.
2325 * main.c (captured_command_loop): Flip the interpreter to async
2326 mode.
2327 * cli/cli-script.c: Include interps.h.
2328 (execute_user_command, while_command, if_command): Force the
2329 interpreter to sync mode.
2330 * python/python.c: Include interps.h.
2331 (python_command, execute_gdb_command): Force the interpreter to
2332 sync mode.
2333
c709acd1
PA
23342011-09-02 Pedro Alves <[email protected]>
2335
2336 * value.c (show_convenience): Catch errors thrown while printing
2337 each internal variable.
2338 * infrun.c (validate_siginfo_access): New function.
2339 (siginfo_value_read, siginfo_value_write): Call it.
2340
9655e943
JK
23412011-09-01 Jan Kratochvil <[email protected]>
2342
2343 Revert:
2344 2010-05-21 Pierre Muller <[email protected]>
2345 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2346 attribute.
2347
cb457ae2
YQ
23482011-08-29 Yao Qi <[email protected]>
2349
2350 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2351 (cmp_name): New.
2352 (enable_break2): Update caller.
2353 * solib-frv.c (bfd_lookup_symbol): Removed.
2354 (cmp_name): New.
2355 (enable_break2): Update caller.
2356 * solib-pa64.c (bfd_lookup_symbol): Removed.
2357 (cmp_name): New.
2358 * solib-svr4.c (bfd_lookup_symbol): Removed.
2359 (cmp_name_and_sec_flags): New.
2360 (enable_break): Update caller.
2361 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2362 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2363 (gdb_bfd_lookup_symbol): New.
2364 * solib.h: Functions declarations.
2365
83d1a36a
YQ
23662011-08-29 Yao Qi <[email protected]>
2367
2368 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2369 and solib-dsbt.o.
2370
c04b3e8f
JK
23712011-08-29 Jan Kratochvil <[email protected]>
2372
2373 Fix TUI stepi on code without symbols.
2374 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2375 current PC instead.
2376
cb0fd152
JK
23772011-08-28 Jan Kratochvil <[email protected]>
2378
2379 Code cleanup.
2380 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2381 and the static keyword.
2382 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2383 Make prefix an array.
2384 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2385 * mi/mi-main.c (get_register): Remove stb initialization and the static
2386 keyword.
2387
91174723
JK
23882011-08-28 Jan Kratochvil <[email protected]>
2389
2390 Code cleanup - make mi_opt const.
2391 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2392 opts const.
2393 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2394 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2395 (mi_cmd_env_dir): Likewise.
2396 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2397 (mi_cmd_target_file_put): Likewise.
2398 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2399 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2400 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2401 (mi_valid_noargs): Make opts const.
2402 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2403 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2404 (mi_cmd_data_read_memory): Likewise.
2405 (mi_cmd_data_read_memory_bytes): Likewise.
2406 (mi_cmd_data_write_memory): Likewise.
2407
5068b8e8 24082011-08-26 Matt Rice <[email protected]>
2409
2410 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2411 bcache_xmalloc, replace bcache_xmalloc with call to
2412 psymbol_bcache_init for psymbol_cache.
2413 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2414
a4f2ce05
JK
24152011-08-26 Jan Kratochvil <[email protected]>
2416
2417 * inf-loop.c (inferior_event_handler): Add exception_print in
2418 INF_EXEC_COMPLETE.
2419
353d1d73
JK
24202011-08-26 Jan Kratochvil <[email protected]>
2421
2422 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2423 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2424 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2425 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2426 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2427 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2428 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2429 * infrun.c (fetch_inferior_event): Call
2430 make_bpstat_clear_actions_cleanup.
2431 * top.c (execute_command): New variable cleanup_if_error, call
2432 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2433 * utils.c (do_bpstat_clear_actions_cleanup)
2434 (make_bpstat_clear_actions_cleanup): New functions.
2435
3ced3da4
PA
24362011-08-26 Pedro Alves <[email protected]>
2437
2438 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2439 either the parent or the child forks. Rename a couple locals.
2440
a9f4bb21
PA
24412011-08-26 Pedro Alves <[email protected]>
2442
2443 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2444 library call. Avoid reading the `status' local if all waitpid
2445 calls failed.
2446
e5798bef
PA
24472011-08-26 Pedro Alves <[email protected]>
2448
2449 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2450 opening /proc/PID/task always succeeds.
2451
edb2aadf
AR
24522011-08-26 Aleksandar Ristovski <[email protected]>
2453
2454 * linespec.c (symtab_from_filename): Check for the end of string.
2455
0d932b2f
MK
24562011-08-26 Marc Khouzam <[email protected]>
2457
2458 PR mi/11912
2459 * varobj.c (cplus_describe_child): Add the keyword
2460 'class' to the output of the method when dealing
2461 with a cast to a base class.
2462
e93ca019
JK
24632011-08-26 Jan Kratochvil <[email protected]>
2464
2465 No functionality change.
2466 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2467 function comment a reference, new variables tp and bs, move here code
2468 from throw_exception.
2469 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2470 describe it in the comment.
2471 * exceptions.c (throw_exception): Remove variable tp, move the code for
2472 bpstat_clear_actions to bpstat_clear_actions.
2473
13da1c97
LM
24742011-08-24 Luis Machado <[email protected]>
2475
2476 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2477 * linux-nat.c: Include linux-procfs.h.
2478 (linux_proc_get_tgid): Move to ...
2479 * common/linux-procfs.c: ... here. New file.
2480 * common/linux-procfs.h: New file.
2481 * linux-thread-db.c: Include linux-procfs.h.
2482 * Makefile.in: Update dependencies.
2483 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2484 * config/arm/linux.mh: Likewise.
2485 * config/i386/linux.mh: Likewise.
2486 * config/i386/linux64.mh: Likewise.
2487 * config/ia64/linux.mh: Likewise.
2488 * config/m32r/linux.mh: Likewise.
2489 * config/m68k/linux.mh: Likewise.
2490 * config/mips/linux.mh: Likewise.
2491 * config/pa/linux.mh: Likewise.
2492 * config/pa/linux.mh: Likewise.
2493 * config/powerpc/linux.mh: Likewise.
2494 * config/powerpc/ppc64-linux.mh: Likewise.
2495 * config/powerpc/spu-linux.mh: Likewise.
2496 * config/sparc/linux.mh: Likewise.
2497 * config/sparc/linux64.mh: Likewise.
2498 * config/xtensa/linux.mh: Likewise.
2499
4e5c165d
HZ
25002011-08-24 Hui Zhu <[email protected]>
2501
2502 * tracepoint.c (cond_string_is_same): New function.
2503 (find_matching_tracepoint): Add condition check
2504 by cond_string_is_same.
2505
6e2f5b22
JK
25062011-08-23 Josh Matthews <[email protected]>
2507
2508 Fix build error in Darwin port.
2509 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2510
abf85f46
JK
25112011-08-21 Jan Kratochvil <[email protected]>
2512
2513 Code cleanup.
2514 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2515 (command_line_is_silent): New function.
2516 (bpstat_do_actions_1): No longer use commands_left, use
2517 command_line_is_silent for commands.
2518 (bpstat_alloc): Remove clearing of commands_left.
2519 (bpstat_stop_status): Remove initialization of commands_left, use
2520 command_line_is_silent.
2521 * breakpoint.h (struct bpstats): Remove commands_left.
2522
3a93a0c2
KS
25232011-08-18 Keith Seitz <[email protected]>
2524
2525 PR c++/12266
2526 * cp-name-parser.y (struct demangle_info): Remove unused
2527 member PREV.
2528 (d_grab): Likewise.
2529 (allocate_info): Change return type to struct demangle_info *.
2530 Always allocate a new demangle_info.
2531 Remove unused PREV pointer.
2532 (cp_new_demangle_parse_info): New function.
2533 (cp_demangled_name_parse_free): New function.
2534 (do_demangled_name_parse_free_cleanup): New function.
2535 (make_cleanup_cp_demangled_name_parse_free): New function.
2536 (cp_demangled_name_to_comp): Change return type to
2537 struct demangle_parse_info *.
2538 Allocate a new storage for each call.
2539 (main): Update usage for cp_demangled_name_to_comp
2540 API change.
2541 * cp-support.h (struct demangle_parse_info): New structure.
2542 (cp_demangled_name_to_comp): Update API change for
2543 return type.
2544 (cp_new_demangle_parse_info): Declare.
2545 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2546 (cp_demangled_name_parse_free): Declare.
2547 * cp-support.c (cp_canonicalize_string): Update API
2548 change for cp_demangled_name_to_comp.
2549 (mangled_name_to_comp): Likewise.
2550 Return struct demangle_parse_info, too.
2551 (cp_class_name_from_physname): Update mangled_name_to_comp
2552 API change.
2553 (method_name_from_physname): Likewise.
2554 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2555 (cp_remove_params): Likewise.
2556 * python/py-type.c (typy_legacy_template_argument): Likewise.
2557
2558 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2559 (cp_merge_demangle_parse_infos): Declare.
2560 * cp-support.c (ignore_typedefs): New file global.
2561 (copy_string_to_obstack): New function.
2562 (inspect_type): New function.
2563 (replace_typedefs): New function.
2564 (replace_typedefs_qualified_name): New function.
2565 (cp_canonicalize_string_no_typedefs): New function.
2566 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2567 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2568 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2569 instead of cp_canonicalize_string.
2570 (find_method): Likewise.
2571 (decode_compound): Before looking up the name, call
2572 cp_canonicalize_string_no_typedefs.
2573 (decode_variable): Likewise.
2574
fa3a4f15
PM
25752011-08-17 Phil Muldoon <[email protected]>
2576 Tom Tromey <[email protected]>
2577 Matt Rice <[email protected]>
2578
2579 * python/lib/gdb/prompt.py: New file.
2580 * python/lib/gdb/command/prompt.py: New file.
2581 * NEWS: Document set extended-prompt and gdb.prompt library
2582
85661b1e
YQ
25832011-08-16 Yao Qi <[email protected]>
2584
2585 * tic6x-linux-tdep.c: Move const arrays definition from here...
2586 * tic6x-tdep.c: to here ...
2587
11315641
YQ
25882011-08-14 Yao Qi <[email protected]>
2589
2590 * NEWS: New port to Texas Instruments TMS320C6x.
2591
8cd64e00
YQ
25922011-08-14 Andrew Jenner <[email protected]>
2593 Bernd Schmidt <[email protected]>
2594 Yao Qi <[email protected]>
2595
2596 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2597 * solib-dsbt.c: New file. Support DSBT shared object.
2598 * tic6x-linux-tdep.c: New file.
2599 * tic6x-tdep.c: New file.
2600 * tic6x-tdep.h: New file.
2601
78d85199
YQ
26022011-08-14 Andrew Stubbs <[email protected]>
2603 Yao Qi <[email protected]>
2604
2605 * remote.c (PACKET_qXfer_fdpic): New enum value.
2606 (remote_protocol_features): Add qXfer:fdpic:read packet.
2607 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2608 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2609 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2610
224bbe49
YQ
26112011-08-14 Yao Qi <[email protected]>
2612
2613 Target description for tic6x.
2614 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2615 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2616 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2617 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2618 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2619 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2620 * features/tic6x-c64xp-linux.xml: New.
2621 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2622 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2623 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2624 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2625 * regformats/tic6x-c64xp.dat,
2626 regformats/tic6x-c62x-linux.dat: Generated.
2627 * regformats/tic6x-c64x-linux.dat,
2628 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2629 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2630 features/tic6x-*.c files.
2631 Add regformats/tic6x-*.dat files.
2632
457e09f0
DE
26332011-08-12 Doug Evans <[email protected]>
2634
2635 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2636 * python/py-symbol.c (sympy_get_type): New function.
2637 (symbol_object_getset): Add "type".
2638
d20c1c3f
PA
26392011-08-12 Pedro Alves <[email protected]>
2640
2641 PR tui/13073
2642
2643 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2644 empty name.
2645 (tui_show_register_group): Don't store a byte buffer in the data
2646 element's value.
2647 (tui_register_format): Skip registers with an empty name.
2648 (tui_get_register): Store a struct value in the data element's
2649 value field instead of a byte buffer holding the raw register
2650 contents. Account for optimized-out and unavailable registers
2651 when comparing register contents.
2652
9d8fa392
PA
26532011-08-09 Pedro Alves <[email protected]>
2654
2655 * printcmd.c (current_display_number): Update comment.
2656 (disable_current_display_cleanup): Delete.
2657 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2658 catch errors thrown while evaluating and printing the display.
2659
401a70b8
TT
26602011-08-09 Tom Tromey <[email protected]>
2661
2662 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2663
7f86f058
PA
26642011-08-09 Pedro Alves <[email protected]>
2665
94b71cca 2666 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2667 * maint.c (maintenance_command): Ditto.
2668 * somread.c (som_symtab_read): Ditto.
2669 * solib.c (solib_find, solib_map_sections, update_solib_list)
2670 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2671 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2672 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2673 * solib-irix.c (locate_base, disable_break, enable_break)
2674 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2675 (irix_current_sos, irix_open_symbol_file_object)
2676 (irix_special_symbol_handling): Ditto.
2677 * solib-sunos.c (locate_base, first_link_map_member)
2678 (sunos_current_sos, disable_break, enable_break)
2679 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2680 Ditto.
2681 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2682 (open_symbol_file_object, svr4_current_sos, enable_break)
2683 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2684 Ditto.
2685 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2686 (frv_current_sos, enable_break, frv_special_symbol_handling)
2687 (frv_solib_create_inferior_hook): Ditto.
2688 * solist.h (struct target_so_ops): Extend the comments of the
2689 special_symbol_handling, current_sos and open_symbol_file_object
2690 methods.
2691
5e239b84
PM
26922011-08-09 Phil Muldoon <[email protected]>
2693
2694 * python/lib/gdb/__init__.py: Auto-load files in command and
2695 function directories.
2696 * python/python.c (finish_python_initialization): Use
2697 os.path.join.
2698 * python/lib/gdb/command/pretty_printers.py: Self register
2699 command.
2700 * NEWS: Document auto-loading.
2701
b6cede78
JK
27022011-08-08 Jan Kratochvil <[email protected]>
2703
2704 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2705 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2706 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2707
29d0bb3d
TT
27082011-08-08 Tom Tromey <[email protected]>
2709
2710 * breakpoint.c (clean_up_filters): Remove.
2711 (catch_syscall_split_args): Use VEC_cleanup.
2712
2f7fb8e4
JK
27132011-08-06 Jan Kratochvil <[email protected]>
2714
2715 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2716 (main): Uncomment "Demangling error\n".
2717
d6c10e95
PP
27182011-08-05 Paul Pluzhnikov <[email protected]>
2719
2720 * solib-target.c (segment_attributes): Make them static.
2721 (section_attributes, library_children, library_attributes): Likewise.
2722 (library_list_children, library_list_attributes): Likesise.
2723 (library_list_elements): Likewise.
2724
af6e93b2
PA
27252011-08-05 Pedro Alves <[email protected]>
2726
2727 * exceptions.c (throw_exception): Don't disable the current
2728 display.
2729 * printcmd.c (disable_current_display_cleanup): New function.
2730 (do_one_display): Install a cleanup to disable the current display
2731 if doing the display throws.
2732
6a1b1664
EZ
27332011-08-05 Eli Zaretskii <[email protected]>
2734
2735 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2736 initialization of the tp_new member to the corresponding
2737 gdbpy_initialize_* function.
2738 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2739 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2740 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2741 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2742 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2743
31a0ae49
JK
27442011-08-05 Jan Kratochvil <[email protected]>
2745
2746 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2747 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2748 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2749 references to current_uiout.
2750
e0dd0826
PA
27512011-08-04 Pedro Alves <[email protected]>
2752
2753 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2754 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2755 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2756 * top.c (gdb_readline_wrapper): Adjust.
2757 * tui/tui-interp.c (tui_command_loop):
2758 (_initialize_tui_interp): Don't install it.
2759
79a45e25
PA
27602011-08-04 Pedro Alves <[email protected]>
2761
2762 * ui-out.h (uiout): Rename to ...
2763 (current_uiout): ... this.
2764 * ui-out.c (uiout): Rename to ...
2765 (current_uiout): ... this.
2766 * ada-lang.c (print_it_exception, print_one_exception)
2767 (print_mention_exception): Adjust.
2768 * breakpoint.c (watchpoint_check): Adjust.
2769 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2770 (default_collect_info, watchpoints_info, print_one_catch_fork)
2771 (print_one_catch_vfork, print_one_catch_syscall)
2772 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2773 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2774 (print_it_watchpoint, print_mention_watchpoint)
2775 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2776 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2777 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2778 (bkpt_print_mention, momentary_bkpt_print_it)
2779 (tracepoint_print_mention, update_static_tracepoint)
2780 (tracepoints_info, save_breakpoints): Adjust.
2781 * cli-out.c (field_separator): Adjust.
2782 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2783 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2784 * frame.c (get_current_frame): Adjust.
2785 * infcmd.c (run_command_1, print_return_value): Adjust.
2786 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2787 * infrun.c (print_end_stepping_range_reason): Adjust.
2788 (print_signal_exited_reason, print_exited_reason): Adjust.
2789 (print_signal_received_reason, print_no_history_reason): Adjust.
2790 * interps.c (interp_set): Adjust.
2791 * osdata.c (info_osdata_command): Adjust.
2792 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2793 * remote-fileio.c (remote_fileio_request): Adjust.
2794 * remote.c (show_remote_cmd): Adjust.
2795 * solib.c (info_sharedlibrary_command): Adjust.
2796 * source.c (print_source_lines_base): Adjust.
2797 * stack.c (print_stack_frame): Adjust.
2798 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2799 * symfile-mem.c (add_vsyscall_page): Adjust.
2800 * symfile.c (load_progress, generic_load)
2801 (print_transfer_performance): Adjust.
2802 * thread.c (info_threads_command, restore_selected_frame)
2803 (thread_command): Adjust.
2804 * top.c (make_cleanup_restore_ui_file): Adjust.
2805 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2806 (print_one_static_tracepoint_marker): Adjust.
2807 * cli/cli-cmds.c (print_disassembly): Adjust.
2808 * cli/cli-decode.c (print_doc_line): Adjust.
2809 * cli/cli-interp.c (safe_execute_command): Adjust.
2810 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2811 (handle_redirections): Adjust.
2812 * cli/cli-script.c (show_user_1): Adjust.
2813 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2814 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2815 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2816 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2817 (mi_cmd_env_dir): Adjust.
2818 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2819 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2820 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2821 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2822 (list_args_or_locals): Adjust.
2823 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2824 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2825 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2826 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2827 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2828 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2829 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2830 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2831 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2832 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2833 (list_available_thread_groups, mi_cmd_list_thread_groups)
2834 (mi_cmd_data_list_register_names)
2835 (mi_cmd_data_list_changed_registers)
2836 (mi_cmd_data_list_register_values, get_register)
2837 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2838 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2839 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2840 (mi_execute_command, mi_load_progress): Adjust.
2841 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2842 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2843 Adjust.
2844 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2845 * tui/tui-interp.c (tui_command_loop): Adjust.
2846 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2847
f9679975
PA
28482011-08-04 Pedro Alves <[email protected]>
2849
2850 * exceptions.c (struct catcher): Remove saved_uiout field.
2851 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2852 no longer save/resvore the global ui_out builder.
2853 (catch_exceptions_with_msg): Save/override/restore the global
2854 ui_out builder manually instead of relying on TRY_CATCH to do it.
2855 (catch_errors): Save/restore the global ui_out builder manually
2856 instead of relying on TRY_CATCH to do it.
2857 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2858 parameter.
2859 (TRY_CATCH): Adjust.
2860 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2861 the global ui_out builder manually instead of relying on TRY_CATCH
2862 to do it.
2863
934709f0
PW
28642011-08-03 Philippe Waroquiers <[email protected]>
2865
2866 * breakpoint.c (update_global_location_list): Ensure
2867 invariant 'first loc marked not duplicated and inserted,
2868 following locs marked duplicated/not inserted' is respected
2869 for multiple locations at the same address.
2870 (unduplicated_should_be_inserted) New function.
2871 (swap_insertion) New function.
2872
2421fe6f
JK
28732011-08-03 Jan Kratochvil <[email protected]>
2874
2875 * stack.c (print_frame_arguments_choices): Comment typo fix.
2876
3fbb6ffa
TJB
28772011-08-01 Thiago Jung Bauermann <[email protected]>
2878
2879 Revert:
2880 2011-07-31 Thiago Jung Bauermann <[email protected]>
2881 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2882 argument. Update callers.
2883
fbe12357
PP
28842011-08-01 Paul Pluzhnikov <[email protected]>
2885
2886 PR gdb/13045
2887 * doublest.c (convert_doublest_to_floatformat): Pass correct
2888 mantissa length to put_field.
2889
b1d288d3
JK
28902011-08-01 Jan Kratochvil <[email protected]>
2891
2892 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2893 exception_print code path.
2894 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2895 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2896 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2897
311b5970
JK
28982011-08-01 Jan Kratochvil <[email protected]>
2899
2900 Code cleanup.
2901 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2902 Remove, merge them into ...
2903 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2904 variable args and its initialization.
2905 (struct print_args_args, print_args_stub): Remove, merge them into
2906 print_frame.
2907 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2908 them into ...
2909 (do_gdb_disassembly): ... here. Remove variable args and its
2910 initialization.
2911 (print_frame): Remove variable args and its initialization, new
2912 variable gdbarch and numargs (from print_args_stub), inline here
2913 print_args_stub with a TRY_CATCH.
2914 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2915 them into ...
2916 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2917 New variable e, remove variable btargs and its initialization.
311b5970 2918
484a26a8
TG
29192011-08-01 Tristan Gingold <[email protected]>
2920
2921 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2922
c30eee59
TJB
29232011-07-31 Thiago Jung Bauermann <[email protected]>
2924
2925 * breakpoint.c (insert_bp_location): Document return value.
2926 (insert_breakpoint_locations): Fix documentation.
2927 (remove_breakpoints): Add documentation.
2928
f116073b
TJB
29292011-07-31 Thiago Jung Bauermann <[email protected]>
2930
2931 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2932 argument. Update callers.
2933
65aa373f
JK
29342011-07-30 Jan Kratochvil <[email protected]>
2935
2936 * stack.c (print_frame_info): Comment typo fix.
2937
a50242fb
SA
29382011-07-29 Sterling Augustine <[email protected]>
2939
2940 * MAINTAINERS (Write After Approval): Add myself to the list.
2941
267f6504
TT
29422011-07-29 Tom Tromey <[email protected]>
2943
2944 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2945 (library_list_start_segment): Update.
2946 (library_list_start_section): Update.
2947
00bd41d6
PM
29482011-07-28 Phil Muldoon <[email protected]>
2949
2950 * varobj.c (value_get_print_value): Move hint check later into the
2951 function. Comment function. Free thevalue before reusing it.
2952
18a46dbe
JK
29532011-07-27 Jan Kratochvil <[email protected]>
2954 Pedro Alves <[email protected]>
2955
2956 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2957 value_one.
2958 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2959 Assert the result kind.
2960 * value.h (value_one): Remove parameter lv.
2961
bb7da2bf
JK
29622011-07-27 Jan Kratochvil <[email protected]>
2963
2964 Fix crash on lval_computed values.
2965 * valops.c (value_zero): Use not_lval for lval_computed.
2966
2d5213f8
TT
29672011-07-27 Tom Tromey <[email protected]>
2968
2969 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2970 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2971
11081198
JK
29722011-07-27 Jan Kratochvil <[email protected]>
2973
2974 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2975 "ptype" by their typedefs difference.
2976
3c6e0cb3
JK
29772011-07-27 Jan Kratochvil <[email protected]>
2978
2979 * dwarf2expr.c (ctx_no_read_reg): New function.
2980 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2981 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2982 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2983 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2984
523f3620
JK
29852011-07-27 Jan Kratochvil <[email protected]>
2986
2987 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2988 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2989 file.
2990 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2991 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2992 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2993 (ctx_no_get_base_type): Move the functions here.
2994 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2995 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2996 (ctx_no_get_base_type): New declarations.
2997
24d3216f
TT
29982011-07-27 Tom Tromey <[email protected]>
2999
3000 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3001 entries.
3002 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3003 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3004
5005c8a9
PP
30052011-07-26 Sterling Augustine <[email protected]>
3006
3007 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3008 ULONGEST.
3009 (dump_bfd_file): Likewise.
3010
480a3f21
PW
30112011-07-26 Philippe Waroquiers <[email protected]>
3012
3013 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3014 (remote_hw_watchpoint_length_limit): New variable.
3015 (_initialize_remote) add set,show cmds for this new variable.
3016 * gdb.texinfo: document these new commands.
3017 * NEWS: Mention these new commands.
3018
efa80663
PA
30192011-07-26 Pedro Alves <[email protected]>
3020
3021 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3022 true for software watchpoints.
3023
dbdaa232 30242011-07-26 Joel Brobecker <[email protected]>
3025
3026 GDB 7.3 released.
3027
cf2c3c16
TT
30282011-07-26 Tom Tromey <[email protected]>
3029
3030 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3031 * dwarf2read.c (read_indirect_string_at_offset): New function.
3032 (read_indirect_string): Use it.
3033 (dwarf_decode_macro_bytes): New function, taken from
3034 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3035 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3036 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3037 New functions.
3038 (struct dwarf2_per_objfile) <macro>: New field.
3039 (dwarf2_elf_names): Add .debug_macro.
3040 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3041 (dwarf2_locate_sections): Handle new section.
3042 (read_file_scope): Handle DW_AT_GNU_macros.
3043 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3044
1a532630
PP
30452011-07-26 Paul Pluzhnikov <[email protected]>
3046
3047 * NEWS: Mention dcache configuration.
3048 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3049 (dcache_size, dcache_line_size): New variables.
3050 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3051 (struct dcache_block): Make it expandable.
3052 (struct dcache_struct): New field.
3053 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3054 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3055 (dcache_poke_byte, dcache_print_line): Adjust.
3056 (set_dcache_size, set_dcache_line_size): New functions.
3057 (set_dcache_command, show_dcache_command): New functions.
3058 (_initialize_dcache): Add new commands.
3059
2eff07b3
PP
30602011-07-26 Paul Pluzhnikov <[email protected]>
3061
3062 * progspace.h (struct program_space): Add solib_add_generation.
3063 * infcmd.c (post_create_inferior): Only call solib_add if not
3064 already done.
3065 * solib.c (solib_add): Increment solib_add_generation.
3066
543305c9
JK
30672011-07-25 Jan Kratochvil <[email protected]>
3068
3069 Fix implicit pointer offsets.
3070 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3071 ptr.OFFSET.
3072
c0a91b2b
TT
30732011-07-25 Tom Tromey <[email protected]>
3074
3075 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3076 const.
3077 (ada_exception_sal): Make 'ops' const.
3078 (ada_decode_exception_location): Likewise.
3079 (ada_decode_assert_location): Likewise.
3080 (catch_assert_command): Update.
3081 (catch_ada_exception_command): Update.
3082 (create_ada_exception_catchpoint): Make 'ops' const.
3083 * breakpoint.c (set_raw_breakpoint_without_location)
3084 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3085 const.
3086 (create_internal_breakpoint): Update.
3087 (init_raw_breakpoint_without_location): Make 'ops' const.
3088 (init_raw_breakpoint, init_catchpoint)
3089 (create_fork_vfork_event_catchpoint)
3090 (create_syscall_event_catchpoint, init_breakpoint_sal)
3091 (create_breakpoint_sal, create_breakpoints_sal)
3092 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3093 * breakpoint.h (struct breakpoint) <ops>: Now const.
3094 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3095 const.
3096
6cb9b55b
PP
30972011-07-25 Paul Pluzhnikov <[email protected]>
3098
3099 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3100
d9b3f62e
PA
31012011-07-25 Pedro Alves <[email protected]>
3102
3103 * breakpoint.h (print_recreate_thread): Declare.
3104 (struct breakpoint): Move step_count, pass_count,
3105 number_on_target, static_trace_marker_id,
3106 static_trace_marker_id_idx ...
3107 (struct tracepoint): ... to this new struct.
3108 (get_tracepoint, get_tracepoint_by_number_on_target)
3109 (get_tracepoint_by_number): Change return type to struct
3110 tracepoint pointer.
3111 * breakpoint.c (is_tracepoint_type): New, factored out from
3112 is_tracepoint.
3113 (is_tracepoint): Adjust.
3114 (print_one_breakpoint_location): Cast to struct tracepoint as
3115 necessary, and adjust.
3116 (print_recreate_catch_fork, print_recreate_catch_vfork)
3117 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3118 print_recreate_thread.
3119 (init_breakpoint_sal): New, factored out from
3120 create_breakpoint_sal.
3121 (create_breakpoint_sal): Reimplement.
3122 (create_breakpoint): Allocate a struct tracecepoint if the caller
3123 wanted a tracepoint. Use init_breakpoint_sal and
3124 install_breakpoint.
3125 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3126 (print_recreate_masked_watchpoint)
3127 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3128 (tracepoint_print_one_detail): Adjust.
3129 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3130 Dump the pass count here.
3131 (update_static_tracepoint): Adjust.
3132 (addr_string_to_sals): Adjust.
3133 (create_tracepoint_from_upload): Adjust. Change return type to
3134 struct tracepoint pointer.
3135 (trace_pass_set_count): Change parameter type to struct tracepoint
3136 pointer, and adjust.
3137 (trace_pass_command): Adjust.
3138 (get_tracepoint, get_tracepoint_by_number_on_target)
3139 (get_tracepoint_by_number): Change return type to struct
3140 tracepoint pointer, and adjust.
3141 (print_recreate_thread): New, factored out from save_breakpoints.
3142 (save_breakpoints): Don't print thread and task and passcount
3143 recreation here.
3144 * remote.c (remote_download_tracepoint): Adjust.
3145 * tracepoint.c (trace_actions_command, validate_actionline)
3146 (start_tracing, tfind_1, trace_find_tracepoint_command)
3147 (trace_dump_command): Adjust.
3148 (find_matching_tracepoint): Change return type to struct
3149 tracepoint pointer, and adjust.
3150 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3151 (tfile_trace_find, tfile_fetch_registers): Adjust.
3152 * tracepoint.h (create_tracepoint_from_upload): Change return type
3153 to struct tracepoint pointer.
3154 * ada-lang.c (print_recreate_exception): Call
3155 print_recreate_thread.
3156 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3157
3a5c3e22
PA
31582011-07-25 Pedro Alves <[email protected]>
3159
3160 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3161 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3162 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3163 watchpoint_thread, watchpoint_triggered ...
3164 (struct watchpoint): ... to this new struct.
3165 (is_watchpoint): Declare.
3166 (install_breakpoint): Add new `internal' parameter.
3167 * breakpoint.c (is_watchpoint): Delete declaration.
3168 (set_breakpoint_condition): Handle watchpoints.
3169 (is_watchpoint): Make public.
3170 (watchpoint_in_thread_scope): Change parameter type to struct
3171 watchpoint.
3172 (watchpoint_del_at_next_stop): Change parameter type to struct
3173 watchpoint. Remove assertion. Adjust.
3174 (update_watchpoint): Ditto.
3175 (insert_breakpoints, breakpoint_init_inferior)
3176 (watchpoints_triggered, watchpoint_check)
3177 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3178 (bpstat_stop_status, print_one_breakpoint_location)
3179 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3180 to struct watchpoint as necessary, and adjust.
3181 (install_breakpoint): Add `internal' argument. If true, don't
3182 mention the new breakpoint. Use set_breakpoint_number.
3183 (create_fork_vfork_event_catchpoint)
3184 (create_syscall_event_catchpoint): Adjust.
3185 (dtor_watchpoint): New.
3186 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3187 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3188 (print_it_watchpoint, print_mention_watchpoint)
3189 (print_recreate_watchpoint, insert_masked_watchpoint)
3190 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3191 (print_one_detail_masked_watchpoint)
3192 (print_mention_masked_watchpoint)
3193 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3194 necessary, and adjust.
3195 (watch_command_1): Allocate and initialize a struct watchpoint
3196 instead of a struct breakpoint. Use install_breakpoint.
3197 (catch_exec_command_1): Adjust.
3198 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3199 fields.
3200 (delete_breakpoint, enable_breakpoint_disp)
3201 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3202 as necessary, and adjust.
3203 (initialize_breakpoint_ops): Install dtor_watchpoint as
3204 watchpoints' dtor method.
3205 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3206 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3207 to struct watchpoint as necessary, and adjust.
3208
2060206e
PA
32092011-07-25 Pedro Alves <[email protected]>
3210
3211 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3212 the the base class ops table.
3213 (catch_exception_breakpoint_ops)
3214 (catch_exception_unhandled_breakpoint_ops)
3215 (catch_assert_breakpoint_ops): Don't statically initialize.
3216 (initialize_ada_catchpoint_ops): New.
3217 (_initialize_ada_language): Call it.
3218 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3219 (bkpt_breakpoint_ops): Forward declare.
3220 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3221 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3222 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3223 (masked_watchpoint_breakpoint_ops)
3224 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3225 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3226 base class ops table.
3227 (null_re_set, null_check_status, null_works_in_software_mode)
3228 (null_resources_needed, null_print_one_detail): Delete.
3229 (bkpt_dtor): Rename to ...
3230 (base_breakpoint_dtor): ... this. Make static.
3231 (bkpt_allocate_location): Rename to ...
3232 (base_breakpoint_allocate_location): ... this. Make static.
3233 (base_breakpoint_re_set): New.
3234 (internal_error_pure_virtual_called): New.
3235 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3236 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3237 (base_breakpoint_works_in_software_mode)
3238 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3239 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3240 (base_breakpoint_print_recreate): New functions.
3241 (base_breakpoint_ops): New global.
3242 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3243 (bkpt_breakpoint_hit): Make static.
3244 (bkpt_check_status): Delete.
3245 (bkpt_resources_needed): Make static.
3246 (bkpt_works_in_software_mode): Delete.
3247 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3248 static.
3249 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3250 (momentary_breakpoint_ops): Don't statically initialize.
3251 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3252 Delete.
3253 (tracepoint_insert_location, tracepoint_remove_location)
3254 (tracepoint_check_status, tracepoint_works_in_software_mode)
3255 (tracepoint_print_it): Delete.
3256 (tracepoint_breakpoint_ops): Don't statically initialize.
3257 (initialize_breakpoint_ops): New.
3258 (_initialize_breakpoint): Call it.
3259 * breakpoint.h (null_re_set, null_works_in_software_mode)
3260 (null_resources_needed, null_check_status, null_print_one_detail):
3261 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3262 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3263 (bkpt_check_status, bkpt_resources_needed)
3264 (bkpt_works_in_software_mode, bkpt_print_it)
3265 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3266 Delete declarations.
3267 (initialize_breakpoint_ops): Declare.
3268
001c8c33
PA
32692011-07-25 Pedro Alves <[email protected]>
3270
3271 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3272 (momentary_bkpt_print_it): Simplify.
3273
06edf0c0
PA
32742011-07-25 Pedro Alves <[email protected]>
3275
3276 Split internal, momentary and user breakpoints breakpoint_ops
3277 tables.
3278
3279 * breakpoint.c (internal_breakpoint_ops)
3280 (momentary_breakpoint_ops): Forward declare.
3281 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3282 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3283 (create_overlay_event_breakpoint)
3284 (create_std_terminate_master_breakpoint)
3285 (create_exception_master_breakpoint): Create breakpoints with
3286 internal_breakpoint_ops vtable.
3287 (set_longjmp_breakpoint): Create momentary breakpoints with
3288 momentary_breakpoint_ops vtable, using
3289 momentary_breakpoint_from_master.
3290 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3291 (create_solib_event_breakpoint): Create breakpoints with
3292 internal_breakpoint_ops vtable.
3293 (set_momentary_breakpoint): Create breakpoints with
3294 momentary_breakpoint_ops vtable.
3295 (momentary_breakpoint_from_master): New, factored out from
3296 clone_momentary_breakpoint.
3297 (clone_momentary_breakpoint): Adjust.
3298 (watch_command_1): Create scope breakpoints with
3299 momentary_breakpoint_ops vtable.
3300 (bkpt_re_set): Remove handling of internal and momentary
3301 breakpoints.
3302 (bkpt_print_mention, bkpt_print_recreate): New.
3303 (bkpt_breakpoint_ops): Adjust.
3304 (internal_bkpt_re_set, internal_bkpt_check_status)
3305 (internal_bkpt_print_it, internal_bkpt_print_mention)
3306 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3307 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3308 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3309 (momentary_bkpt_print_recreate): New.
3310 (momentary_breakpoint_ops): New.
3311
348d480f
PA
33122011-07-25 Pedro Alves <[email protected]>
3313
3314 Implement most breakpoint_ops methods for all breakpoint types,
3315 and move the default handlings to the proper callbacks.
3316
3317 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3318 works_in_software_mode method.
3319 (insert_bp_location): Go through breakpoint_ops->insert_location
3320 for software and hardware watchpoints.
3321 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3322 breakpoint_ops.
3323 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3324 for software and hardware watchpoints.
3325 (print_it_typical): Delete.
3326 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3327 method.
3328 (watchpoint_check): Adjust comment.
3329 (bpstat_check_location): Simply always call the breakpoint's
3330 breakpoint_hit method.
3331 (bpstat_stop_status): Always call the breakpoint's check_status
3332 method. Remove special cases for watchpoints and internal event
3333 breakpoints from here (moved to the check_status implementations).
3334 (print_one_breakpoint_location): Assume b->ops is never NULL.
3335 Remove static tracepoint marker id printing from here (moved to
3336 the print_one_detail callback implementation of tracepoints).
3337 (init_bp_location): Assert OPS is never NULL.
3338 (allocate_bp_location): Always call the breakpoint's
3339 allocate_location method, and remove the default code from here.
3340 (free_bp_location): Always call the location's dtor method, and
3341 remove the default code from here.
3342 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3343 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3344 parameter. Pass it down.
3345 (set_raw_breakpoint): Ditto.
3346 (print_it_catch_fork): Adjust to take a bpstat as argument.
3347 (catch_fork_breakpoint_ops): Install methods.
3348 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3349 (catch_vfork_breakpoint_ops): Install methods.
3350 (dtor_catch_syscall): Call the base dtor.
3351 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3352 (catch_syscall_breakpoint_ops): Install methods.
3353 (dtor_catch_exec): Call the base dtor.
3354 (print_it_catch_exec): Adjust to take a bpstat as argument.
3355 (catch_exec_breakpoint_ops): Install methods.
3356 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3357 the breakpoint's resources_needed method, and remove the default
3358 code from here.
3359 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3360 breakpoint_ops.
3361 (clone_momentary_breakpoint): Clone the original's ops.
3362 (mention): Always call the breakpoint's print_mention method, and
3363 remove the default code from here.
3364 (create_breakpoint_sal): Adjust to pass the ops to
3365 set_raw_breakpoint rather than setting it manually.
3366 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3367 ops to set_raw_breakpoint_without_location rather than setting it
3368 manually.
3369 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3370 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3371 (ranged_breakpoint_ops): Install methods.
3372 (break_range_command): Adjust to pass the ops to
3373 set_raw_breakpoint rather than setting it manually.
3374 (re_set_watchpoint, breakpoint_hit_watchpoint)
3375 (check_status_watchpoint, resources_needed_watchpoint)
3376 (works_in_software_mode_watchpoint, print_it_watchpoint)
3377 (print_mention_watchpoint, print_recreate_watchpoint): New
3378 functions.
3379 (watchpoint_breakpoint_ops): Install new methods.
3380 (print_it_masked_watchpoint): New function.
3381 (masked_watchpoint_breakpoint_ops): Install new methods.
3382 (watch_command_1): Adjust to pass the right breakpoint_ops to
3383 set_raw_breakpoint_without_location rather than setting it
3384 manually later. Record the current pspace.
3385 (print_it_exception_catchpoint): Adjust to take a bpstat as
3386 argument.
3387 (gnu_v3_exception_catchpoint_ops): Install new methods.
3388 (say_where): New function.
3389 (null_re_set, null_check_status, null_works_in_software_mode)
3390 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3391 New functions.
3392 (bp_location_ops): New global.
3393 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3394 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3395 (bkpt_check_status, bkpt_resources_needed)
3396 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3397 (bkpt_print_recreate): New functions.
3398 (bkpt_breakpoint_ops): New global.
3399 (tracepoint_re_set, tracepoint_insert_location)
3400 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3401 (tracepoint_check_status, tracepoint_works_in_software_mode)
3402 (tracepoint_print_it, tracepoint_print_one_detail)
3403 (tracepoint_print_mention, tracepoint_print_recreate): New
3404 functions.
3405 (tracepoint_breakpoint_ops): New global.
3406 (delete_breakpoint): Always call the breakpoint's dtor method, and
3407 remove the default handling from here.
3408 (breakpoint_re_set_default): Make static.
3409 (breakpoint_re_set_one): Always call the breakpoints re_set
3410 method, and remove the default handling from here.
3411 (trace_command, ftrace_command, strace_command)
3412 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3413 to create_breakpoint.
3414 (save_breakpoints): Always call the breakpoint's print_recreate
3415 method, and remove the default handling from here.
3416
3417 * ada-lang.c (dtor_exception): Call the base dtor.
3418 (re_set_exception): Call the base method.
3419 (print_it_exception, print_it_catch_exception): Adjust to take a
3420 bpstat as argument.
3421 (catch_exception_breakpoint_ops): Install methods.
3422 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3423 argument.
3424 (catch_exception_unhandled_breakpoint_ops): Install methods.
3425 (print_it_catch_assert): Adjust to take a bpstat as argument.
3426 (catch_assert_breakpoint_ops): Install methods.
3427
3428 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3429 to take a bpstat as argument.
3430 (enum print_stop_action): Add describing comments to each enum
3431 value.
3432 (breakpoint_re_set_default): Delete declaration.
3433 (null_re_set, null_works_in_software_mode, null_resources_needed)
3434 (null_check_status, null_print_one_detail): Declare.
3435 (bkpt_breakpoint_ops): Declare.
3436 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3437 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3438 (bkpt_check_status, bkpt_resources_needed)
3439 (bkpt_works_in_software_mode, bkpt_print_it)
3440 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3441 Declare.
3442
3443 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3444 bkpt_breakpoint_ops.
3445 * python/py-breakpoint.c (bppy_init): Ditto.
3446
be8f8133
PW
34472011-07-15 Philippe Waroquiers <[email protected]>
3448
3449 * MAINTAINERS (Write After Approval): Add myself to the list.
3450
3807f613
PP
34512011-07-23 Paul Pluzhnikov <[email protected]>
3452
3453 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3454
1ced966e
PA
34552011-07-22 Pedro Alves <[email protected]>
3456
3457 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3458 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3459 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3460 adjust.
3461 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3462 (struct i386_debug_reg_state): New.
3463 (i386_init_dregs): New.
3464 (dr_mirror): New.
3465 (i386_cleanup_dregs): Use i386_init_dregs.
3466 (i386_show_dr): Add state parameter and adjust.
3467 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3468 the inferior here.
3469 (i386_remove_aligned_watchpoint): Likewise.
3470 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3471 (i386_update_inferior_debug_regs): New.
3472 (i386_insert_watchpoint): Work on a local mirror of the debug
3473 registers, and only update the inferior on success.
3474 (i386_remove_watchpoint): Ditto.
3475 (i386_region_ok_for_watchpoint): Adjust.
3476 (i386_stopped_data_address): Adjust.
3477 (i386_insert_hw_breakpoint): Adjust.
3478 (i386_remove_hw_breakpoint): Adjust.
3479
3543a589
TT
34802011-07-22 Tom Tromey <[email protected]>
3481
3482 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3483 from amd64_pseudo_register_read. Change arguments. Call
3484 mark_value_bytes_unavailable when needed.
3485 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3486 set_gdbarch_pseudo_register_read.
3487 * sentinel-frame.c (sentinel_frame_prev_register): Use
3488 regcache_cooked_read_value.
3489 * regcache.h (regcache_cooked_read_value): Declare.
3490 * regcache.c (regcache_cooked_read_value): New function.
3491 (regcache_cooked_read): Call
3492 gdbarch_pseudo_register_read_value if available.
3493 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3494 (i386_pseudo_register_read): Remove.
3495 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3496 i386_pseudo_register_read. Change arguments. Call
3497 mark_value_bytes_unavailable when needed.
3498 (i386_pseudo_register_read_value): New function.
3499 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3500 not set_gdbarch_pseudo_register_read.
3501 * gdbarch.sh (pseudo_register_read_value): New method.
3502 * gdbarch.c, gdbarch.h: Rebuild.
3503 * findvar.c (value_from_register): Call get_frame_register_value.
3504
95298e72
PM
35052011-07-22 Phil Muldoon <[email protected]>
3506
3507 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3508 get_prefix.
3509 (display_gdb_prompt): Likewise.
3510 (change_annotation_level): Likewise.
3511 (push_prompt): Likewise.
3512 (pop_prompt): Likewise.
3513 (handle_stop_sig): Use get_prompt with a level.
3514 * top.c (command_loop): Use get_prompt with a level.
3515 (set_async_annotation_level): Use set_prompt with a level.
3516 (get_prefix): New function.
3517 (set_prefix): Ditto.
3518 (set_suffix): Ditto.
3519 (get_suffix): Ditto.
3520 (get_prompt): Accept a level argument.
3521 (set_prompt): Accept a level argument. Free old prompts. Set
3522 new_async_prompt if level is 0.
3523 (init_main): Use set_prompt with a level. Do not set
3524 new_async_prompt.
3525 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3526 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3527 Modify set_prompt, get_prompt to account for levels.
3528 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3529 level.
3530 * python/python.c (before_prompt_hook): Use set_prompt.
3531
d26e3629
KY
35322011-07-22 Kwok Cheung Yeung <[email protected]>
3533
3534 * defs.h: Add guard against inclusion in gdbserver.
3535 (struct ptid, ptid_t): Move to common/ptid.h.
3536 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3537 xsnprintf, internal_error): Move to common/common-utils.h.
3538 (nomem): Delete.
3539 * gdb_assert.h: Move into common/ sub-directory.
3540 * gdb_locale.h: Ditto.
3541 * gdb_dirent.h: Ditto.
3542 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3543 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3544 Move into common/ptid.h.
3545 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3546 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3547 Change nomem to malloc_failure.
3548 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3549 * utils.c (nomem): Rename to malloc_failure.
3550 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3551 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3552 (gdb_buildargv): Change nomem to malloc_failure.
3553 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3554 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3555 ptid_is_pid): Move into common/ptid.c.
3556 (initialize_infrun): Delete initialization of null_ptid and
3557 minus_one_ptid.
3558 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3559 linux_common_xfer_osdata.
3560 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3561 common/ptid.c and common/buffer.c.
3562 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3563 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3564 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3565 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3566 rules.
3567 * common/gdb_assert.h: New.
3568 * common/gdb_dirent.h: New.
3569 * common/gdb_locale.h: New.
3570 * common/buffer.c: New.
3571 * common/buffer.h: New.
3572 * common/ptid.c: New.
3573 * common/ptid.h: New.
3574 * common/xml-utils.c: New.
3575 * common/xml-utils.h: New.
3576 * common/common-utils.c: New.
3577 * common/common-utils.h: New.
3578 * common/linux-osdata.c: New.
3579 * common/linux-osdata.h: New.
3580 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3581 * config/arm/linux.mh (NATDEPFILES): Ditto.
3582 * config/i386/linux.mh (NATDEPFILES): Ditto.
3583 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3584 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3585 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3586 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3587 * config/mips/linux.mh (NATDEPFILES): Ditto.
3588 * config/pa/linux.mh (NATDEPFILES): Ditto.
3589 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3590 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3591 * config/s390/s390.mh (NATDEPFILES): Ditto.
3592 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3593 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3594 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3595
edc84990 35962011-07-21 Matt Rice <[email protected]>
3597
3598 * NEWS: Add info macros and info definitions commands.
3599
3a7bf607
PM
36002011-07-21 Phil Muldoon <[email protected]>
3601
3602 * NEWS: Document Python prompt substitution hook.
3603
9b158ba0 36042011-07-18 Matt Rice <[email protected]>
3605
3606 PR macros/12999
3607 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3608 * macrotab.c (foreach_macro): Ditto.
3609 (foreach_macro_in_scope): Ditto.
3610 * macrocmd.c (print_macro_callback): New function.
3611 (info_macro_command): Move some code to print_macro_definition.
3612 (print_macro_definition): New function.
3613 (print_one_macro): Add new arguments to callback.
3614 (info_definitions_command): New function.
3615 (info_macros_command): Ditto.
3616 (_initialize_macrocmd): Add info macros and info definitions commands.
3617 * symtab.c (add_macro_name): Add new arguments to callback.
3618
d17b6f81
PM
36192011-07-21 Phil Muldoon <[email protected]>
3620 Tom Tromey <[email protected]>
3621
3622 * top.c (set_prompt): Rewrite to free previous prompt, free
3623 asynch_new_prompt and set both on new prompts.
3624 * event-top.c (display_gdb_prompt): Add prompt substitution
3625 logic.
3626 * python/python.c (before_prompt_hook): New function.
3627
1364323a 36282011-07-20 Matt Rice <[email protected]>
3629
3630 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3631 arguments to store_unsigned_integer.
3632
8b70b953
TT
36332011-07-20 Tom Tromey <[email protected]>
3634
6c83ed52
TT
3635 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3636 in some declaration-only cases.
3637
36382011-07-18 Tom Tromey <[email protected]>
3639
8b70b953
TT
3640 PR symtab/12984:
3641 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3642 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3643 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3644 <debug_type_section>: New field.
3645 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3646 (load_cu): Use appropriate section.
3647 (create_signatured_type_table_from_index): Add 'section'
3648 argument.
3649 (dwarf2_read_index): Only allow a single .debug_types section.
3650 (dw2_get_file_names): Use appropriate section.
3651 (read_type_comp_unit_head): Add 'section' argument.
3652 (create_debug_types_hash_table): Loop over all .debug_types
3653 sections.
3654 (init_cu_die_reader): Use appropriate section.
3655 (process_psymtab_comp_unit, load_partial_comp_unit)
3656 (load_full_comp_unit, read_die_and_children, find_partial_die)
3657 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3658 (lookup_signatured_type_at_offset): Add 'section' argument.
3659 (read_signatured_type_at_offset): Add 'sect' argument.
3660 (read_signatured_type): Use appropriate section.
3661 (set_die_type, get_die_type_at_offset): Update.
3662 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3663 VEC.
3664 (write_psymtabs_to_index): Don't allow index with more than one
3665 .debug_types section.
3666
918dd910
JK
36672011-07-19 Jan Kratochvil <[email protected]>
3668
3669 Fix crash if referenced CU is aged out.
3670 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3671 xfree of block.data.
3672 (indirect_pieced_value): New variable back_to, use to for xfree of
3673 baton.data.
3674 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3675 block.data.
3676 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3677 (load_cu): New function from ...
3678 (dw2_do_instantiate_symtab): ... the code here ...
3679 (process_full_comp_unit): ... and here.
3680 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3681 retval.data.
3682
0e37a63c
JK
36832011-07-19 Jan Kratochvil <[email protected]>
3684
3685 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3686 type.
3687
7e324e48
GB
36882011-07-19 Gary Benson <[email protected]>
3689
3690 * infrun.c (struct execution_control_state): New member
3691 stop_func_filled_in.
3692 (clear_stop_func, fill_in_stop_func): New functions.
3693 (handle_inferior_event): Call clear_stop_func rather than
3694 manipulating the execution control state directly.
3695 Call fill_in_stop_func lazily as required rather than
3696 directly calling find_pc_partial_function in all cases.
3697
d48323d8
TT
36982011-07-18 Tom Tromey <[email protected]>
3699
3700 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3701 checking for variable-sized array.
3702
40591b7d
JCD
37032011-07-18 Jean-Charles Delay <[email protected]>
3704
3705 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3706 of supported languages.
3707 * varobj.c: Add top definitions and basic implementation of the
3708 following callbacks: ada_number_of_children, ada_name_of_variable,
3709 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3710 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3711 (languages): Register Ada-specific callbacks.
3712 (variable_language): Add the Ada case in the language setter switch.
3713
2e424e08
JK
37142011-07-17 Jan Kratochvil <[email protected]>
3715
3716 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3717
9e8b7a03
JK
37182011-07-15 Jan Kratochvil <[email protected]>
3719
3720 Code cleanup.
3721 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3722 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3723 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3724 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3725 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3726 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3727 (struct dwarf_expr_context_funcs): New, move here methods from ...
3728 (struct dwarf_expr_context): ... here. New fields funcs.
3729 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3730 (dwarf_expr_ctx_funcs): New.
3731 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3732 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3733 (needs_frame_ctx_funcs): New.
3734 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3735
2b1260ab
FM
37362011-07-15 Fawzi Mohamed <[email protected]>
3737
3738 * MAINTAINERS (Write After Approval): Add myself to the list.
3739
8bd90839
FM
37402011-07-15 Fawzi Mohamed <[email protected]>
3741
3742 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3743 that CIE pointer of an FDE really points to a CIE .
3744
953b98d1
HZ
37452011-07-15 Hui Zhu <[email protected]>
3746
3747 * remote.c (remote_get_trace_status): Add comments.
3748
c8f2448a
JK
37492011-07-14 Jan Kratochvil <[email protected]>
3750
3751 Code cleanup - constify struct lval_funcs.
3752 * dwarf2loc.c (pieced_value_funcs): Make it const.
3753 * infrun.c (siginfo_value_funcs): Likewise.
3754 * opencl-lang.c (opencl_value_funcs): Likewise.
3755 * valops.c (value_assign, value_ind): Make the funcs variable const.
3756 * value.c (struct value): Make location.computed.funcs target const.
3757 Rearrange the comments.
3758 (allocate_computed_value): Make the funcs parameter target const.
3759 (value_computed_funcs): Return the funcs target const.
3760 (value_free, value_copy, set_value_component_location): Make the funcs
3761 variable const.
3762 * value.h (allocate_computed_value): Make the funcs parameter target
3763 const.
3764 (value_computed_funcs): Return the funcs target const.
3765 * windows-tdep.c (tlb_value_funcs): Make it const.
3766
f652de6f
HZ
37672011-07-14 Hui Zhu <[email protected]>
3768
3769 * remote.c (remote_get_trace_status): Initialize p.
3770
67f41397
JK
37712011-07-13 Jan Kratochvil <[email protected]>
3772
3773 Work around kgdb.
3774 * remote.c (remote_get_trace_status): New variable ex. Put
3775 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3776
d1b66e6d
TT
37772011-07-13 Tom Tromey <[email protected]>
3778
3779 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3780 value_from_contents for final conversion.
3781
1632a688
JK
37822011-07-13 Jan Kratochvil <[email protected]>
3783
3784 Code cleanup.
3785 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3786 Indent prototypes so they do not get into tags.
3787
a7035dbb
JK
37882011-07-12 Jan Kratochvil <[email protected]>
3789
3790 Code cleanup making also optimized out values lazy.
3791 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3792 allocate_optimized_out_value. Twice.
3793 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3794 * findvar.c (read_var_value): Likewise.
3795 * value.c (allocate_optimized_out_value): New function.
3796 * value.h (allocate_optimized_out_value): New declaration.
3797
d07ed419
JK
37982011-07-12 Jan Kratochvil <[email protected]>
3799
3800 Fix occasional crash of CTRL-C during DWARF read in.
3801 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3802
86d31898
TT
38032011-07-11 Tom Tromey <[email protected]>
3804
3805 * regcache.c (struct regcache_descr): Fix typo.
3806 * i387-tdep.c (i387_supply_xsave): Fix typo.
3807
2ab95328
TT
38082011-07-11 Tom Tromey <[email protected]>
3809
3810 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3811 (read_file_scope, read_type_unit_scope): Use it.
3812
04ad99e6
JK
38132011-07-11 Jan Kratochvil <[email protected]>
3814
3815 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3816 `int'.
3817
713389e0
PM
38182011-07-11 Phil Muldoon <[email protected]>
3819
3820 PR python/12438
3821 * python/python.c: Set gdbpy_should_print_stack default to off.
3822 (set_python): Deprecate maint set python print-stack to
3823 class_deprecate.
3824 (_initialize_python): Deprecate maint set/show python print-stack.
3825 Add new prefix command, python. Add new setting, print-backtrace.
3826 * NEWS: Document set python print-stack. Document default change.
3827
754eadd1
PM
38282011-07-11 Phil Muldoon <[email protected]>
3829
3830 * python/py-inferior.c (infpy_dealloc): New function.
3831 (inferior_to_inferior_object): Return a new object, or a
3832 new reference to the existing object.
3833 (find_thread_object): Cleanup references to inferior.
3834 (delete_thread_object): Ditto.
3835 * python/py-infthread.c (create_thread_object): Do not increment
3836 inferior reference count.
3837
5e44ecb3
TT
38382011-07-08 Tom Tromey <[email protected]>
3839
3840 * dwarf2loc.c (locexpr_regname): New function.
3841 (locexpr_describe_location_piece): Use it.
3842 (disassemble_dwarf_expression): Add per_cu argument. Use
3843 locexpr_regname.
3844 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3845 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3846 New cases.
3847 (locexpr_describe_location_1): Add per_cu argument.
3848 (locexpr_describe_location): Update.
3849 (loclist_describe_location): Update.
3850
e0e9434c
TT
38512011-07-08 Tom Tromey <[email protected]>
3852
3853 * dwarf2expr.c (execute_stack_op): Add QUIT.
3854
26afc0d7
HZ
38552011-07-07 Hui Zhu <[email protected]>
3856
3857 Revert:
3858 2011-07-06 Hui Zhu <[email protected]>
3859 * remote.c (remote_start_remote): Add TRY_CATCH for
3860 remote_get_trace_status.
3861 * tracepoint.c (disconnect_tracing): Ditto.
3862
a40a111f
AB
38632011-07-07 Andrew Burgess <[email protected]>
3864
3865 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3866 variables as signed, not unsigned.
3867
e2bd3b15
JB
38682011-07-06 Joel Brobecker <[email protected]>
3869
3870 * jit.c (jit_inferior_init): Reformat forward declaration.
3871
e3d961fe 38722011-07-06 Matt Rice <[email protected]>
3873
3874 * MAINTAINERS (Write After Approval): Add myself to the list.
3875
0f3428f0
HZ
38762011-07-06 Hui Zhu <[email protected]>
3877
3878 * remote.c (remote_start_remote): Add TRY_CATCH for
3879 remote_get_trace_status.
3880 * tracepoint.c (disconnect_tracing): Ditto.
3881
fc9f3a69
TT
38822011-07-05 Tom Tromey <[email protected]>
3883
3884 * symtab.c (operator_chars): Now static.
3885 * linespec.c (operator_chars): Don't declare.
3886
26e519b9
TJB
38872011-07-05 Thiago Jung Bauermann <[email protected]>
3888
3889 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3890
eb2a6f42
TT
38912011-07-05 Tom Tromey <[email protected]>
3892
3893 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3894 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3895 (TYPE_CPLUS_REALLY_JAVA): New macro.
3896 * dwarf2read.c (process_structure_scope): Set
3897 TYPE_CPLUS_REALLY_JAVA.
3898
21083d0f 38992011-07-05 Thiago Jung Bauermann <[email protected]>
177b42fe
TJB
3900
3901 * ada-lang.c: Fix typos.
3902 * amd64-tdep.c: Likewise.
3903 * breakpoint.c: Likewise.
3904 * cli/cli-decode.c: Likewise.
3905 * findcmd.c: Likewise.
3906 * inline-frame.c: Likewise.
3907 * mi/mi-main.c: Likewise.
3908 * minsyms.c: Likewise.
3909 * monitor.c: Likewise.
3910 * monitor.h: Likewise.
3911 * prologue-value.c: Likewise.
3912 * reverse.c: Likewise.
3913 * s390-tdep.c: Likewise.
3914
3b2a0cf2
JB
39152011-07-06 Paul Pluzhnikov <[email protected]>
3916
3917 * jit.c (jit_inferior_init): Forward declare.
3918 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3919
efae1d92
JB
39202011-07-04 Joel Brobecker <[email protected]>
3921
3922 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3923
6040a59d
JB
39242011-07-04 Tristan Gingold <[email protected]>
3925
3926 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3927 (tcb_fieldno): Add activation_link field.
3928 (get_known_tasks_addr): Moved and rewritten.
3929 (get_tcb_types_info): Set activation_link field.
3930 (read_known_tasks_array): Add parameter. Rewritten.
3931 (read_known_tasks_list): New function.
3932 (read_known_tasks): New function.
3933 (ada_build_task_list): Call read_known_tasks instead of
3934 read_known_tasks_array.
3935 * ravenscar-thread.c: Add first_task_name constant.
3936 (has_ravenscar_runtime): Check for task list too.
3937
cb741e45
JB
39382011-07-04 Tristan Gingold <[email protected]>
3939
3940 * ada-tasks.c: Renames fieldno to actb_fieldno.
3941 (ada_get_task_number): Indentation.
3942 (get_tcb_types_info): Remove all parameters. Write directly
3943 the globals.
3944 (ptid_from_atcb_common): Adjust.
3945 (read_atcb): Adjust.
3946
7475b06c
TJB
39472011-07-04 Thiago Jung Bauermann <[email protected]>
3948
3949 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3950
15230f37
TJB
39512011-07-04 Thiago Jung Bauermann <[email protected]>
3952
3953 * ui-out.c (ui_out_field_core_addr): Mention that the function
3954 description is in the header file.
3955 * ui-out.h (ui_out_field_core_addr): Document function.
3956
65743aba
TJB
39572011-07-04 Thiago Jung Bauermann <[email protected]>
3958
3959 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3960 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3961
c37a5aab
TJB
39622011-07-04 Thiago Jung Bauermann <[email protected]>
3963
3964 * symtab.c (expand_line_sal): Remove empty line.
3965
59adf69e
TS
39662011-07-04 Thomas Schwinge <[email protected]>
3967
3968 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3969 same way as ELFOSABI_NONE.
3970 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3971
e5dd4106
TJB
39722011-07-04 Thiago Jung Bauermann <[email protected]>
3973
3974 * breakpoint.c: Fix typos in comments.
3975 * linespec.c: Likewise.
3976 * symtab.c: Likewise.
3977
d40102a1
JB
39782011-07-04 Joel Brobecker <[email protected]>
3979
3980 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3981 section in separate object files.
3982
2f741504
JK
39832011-07-04 Jan Kratochvil <[email protected]>
3984
3985 Fix false GCC warning.
3986 * linespec.c (decode_line_1): Initialize values.
3987
418c7cf7
JK
39882011-07-01 Jan Kratochvil <[email protected]>
3989
3990 * linespec.c (find_method): Accept the function type automatically only
3991 if it was specified with parameter types.
3992
3d50dd94
JK
39932011-07-01 Jan Kratochvil <[email protected]>
3994
3995 Stop on first linespec terminator instead of eating what we can.
3996 * linespec.c (is_linespec_boundary): New function.
3997 (name_end): Remove function.
3998 (keep_name_info): New parameter on_boundary, replace the body.
3999 (decode_line_1): Provide the parameter to keep_name_info.
4000 (decode_compound): Likewise. Drop the trailing java return type
4001 handling. Twice.
4002
dcf9f4ab
JK
40032011-07-01 Jan Kratochvil <[email protected]>
4004
4005 Fall back linespec to minimal symbols.
4006 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4007 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4008 (find_method, symbol_found): Change error to cplusplus_error.
4009
3f542ed1
JK
40102011-07-01 Jan Kratochvil <[email protected]>
4011
bc68c4e5 4012 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4013
900e11f9
JK
40142011-07-01 Jan Kratochvil <[email protected]>
4015 Tom Tromey <[email protected]>
4016
4017 * dwarf2read.c (check_physname): New variable.
4018 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4019 (show_check_physname): New function.
4020 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4021
2301925d
JB
40222011-07-01 Joel Brobecker <[email protected]>
4023
4024 * machoread.c (macho_symfile_read): Delete OBE comment.
4025
38947cca
JB
40262011-07-01 Joel Brobecker <[email protected]>
4027
4028 * machoread.c (struct macho_oso_data): Delete.
4029 (current_oso): Delete.
4030 (macho_relocate_common_syms): New function, mostly extracted
4031 out of
4032 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4033 Remove code that sets and unset current_oso.
4034 (macho_symfile_relocate): Delete handling of common symbols,
4035 now moved to macho_relocate_common_syms.
4036
a7aa0d73
JB
40372011-07-01 Joel Brobecker <[email protected]>
4038
4039 * darwin-nat.c (darwin_ptrace): Add documentation.
4040 Set errno to zero before calling ptrace. If ptrace returns
4041 -1 and errno is zero, then change then return zero.
4042 (darwin_kill_inferior): Issue a warning instead of triggering
4043 a failed assertion when the PT_KILL ptrace operations returned
4044 nonzero.
4045
5e9bc145
JB
40462011-07-01 Joel Brobecker <[email protected]>
4047
4048 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4049 only when inf->private->no_ptrace.
4050
00eb2c4a
JB
40512011-07-01 Joel Brobecker <[email protected]>
4052
4053 * ada-lang.c (print_it_exception): Print temporary catchpoints
4054 as "Temporary catchpoint".
4055 (print_mention_exception): Likewise.
4056
127c81bc
TT
40572011-07-01 Tom Tromey <[email protected]>
4058
4059 * jv-lang.c (java_language_defn): Use java_printchar,
4060 java_printstr.
4061 (java_get_encoding): New function.
4062 (java_emit_char): Use generic_emit_char.
4063 (java_printchar): New function.
4064 (java_printstr): Likewise.
4065
25552254
JB
40662011-07-01 Joel Brobecker <[email protected]>
4067
4068 * ada-typeprint.c (print_record_type): If unable to decode
4069 the name of the parent type, use the encoded name.
4070
d2d43431
JB
40712011-07-01 Jean-Charles Delay <[email protected]>
4072
4073 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4074 pointer to constrained packed array type output.
4075 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4076 packed array output.
4077
54ae186f
JB
40782011-07-01 Jean-Charles Delay <[email protected]>
4079
4080 * ada-typeprint.c (print_array_type): removed if condition on show
4081 being negative for bounds printing.
4082
8f17729f
JB
40832011-07-01 Joel Brobecker <[email protected]>
4084
4085 * ada-lang.c (ada_identical_enum_types_p): New function.
4086 (symbols_are_identical_enums): New function.
4087 (remove_extra_symbols): Do nothing if NSYMS < 2.
4088 Use symbols_are_identical_enums.
4089
f5aa6869
JB
40902011-07-01 Joel Brobecker <[email protected]>
4091
4092 * ada-valprint.c (ada_value_print): Handle typedefs.
4093
8f465ea7
JB
40942011-07-01 Joel Brobecker <[email protected]>
4095
4096 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4097
828292f2
JB
40982011-07-01 Eric Botcazou <[email protected]>
4099
4100 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4101 (decode_constrained_packed_array): Likewise.
4102 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4103
18920c42
JB
41042011-07-01 Joel Brobecker <[email protected]>
4105
4106 * ada-exp.y (convert_char_literal): Handle typedef types.
4107
c90092fe
JB
41082011-07-01 Joel Brobecker <[email protected]>
4109
4110 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4111
f748fb40
TT
41122011-06-30 Tom Tromey <[email protected]>
4113
4114 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4115 * valops.c (find_overload_match): Call do_cleanups on early exit
4116 path.
4117 * solib.c (solib_find): Call do_cleanups on early exit path.
4118
3bb47e8b
TT
41192011-06-30 Tom Tromey <[email protected]>
4120
4121 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4122 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4123 return paths. Defer final do_cleanups until last return.
4124 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4125 early return.
4126
4727bad3
TT
41272011-06-30 Tom Tromey <[email protected]>
4128
4129 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4130
bb361dbf
AB
41312011-06-30 Andrew Burgess <[email protected]>
4132
4133 * MAINTAINERS (Write After Approval): Add myself to the list.
4134
e0d00bc7
JK
41352011-06-29 Jan Kratochvil <[email protected]>
4136
4137 Disable epilogue unwinders on recent GCCs.
4138 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4139 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4140 * dwarf2read.c (process_full_comp_unit): Initialize
4141 EPILOGUE_UNWIND_VALID.
4142 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4143 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4144 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4145
4632c0d0
JK
41462011-06-29 Jan Kratochvil <[email protected]>
4147
4148 Code cleanup - reformatting.
4149 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4150 (producer_is_gcc_ge_4): ... here, change the return value.
4151 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4152 interpretation.
4153
32019081
JK
41542011-06-29 Jan Kratochvil <[email protected]>
4155
4156 Fix non-only rename list for Fortran modules import.
4157 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4158 cp_add_using_directive caller.
4159 (cp_add_using_directive): New parameter excludes, describe it. New
4160 variables ix and param. Compare if also excludes match. Allocate NEW
4161 with variable size, initialize EXCLUDES there.
4162 (cp_lookup_symbol_imports): New variable excludep, test
4163 current->EXCLUDES with it.
4164 * cp-support.h: Include vec.h.
4165 (struct using_direct): New field excludes, describe it.
4166 (DEF_VEC_P (const_char_ptr)): New.
4167 (cp_add_using_directive): New parameter excludes.
4168 * defs.h (const_char_ptr): New typedef.
4169 * dwarf2read.c (read_import_statement): New variables child_die,
4170 excludes and cleanups, read in excludes.
4171 (read_namespace): Adjust the cp_add_using_directive caller.
4172
70c622a3
JK
41732011-06-29 Jan Kratochvil <[email protected]>
4174
4175 Code cleanup.
4176 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4177 negative comparisons.
4178
39c4d40a
TT
41792011-06-29 André Pönitz <[email protected]>
4180
4181 * mi/mi-main.c (mi_cmd_list_features): Emit
4182 breakpoint-notifications.
4183
3b2b8fea
TT
41842011-06-29 Tom Tromey <[email protected]>
4185
4186 PR fortran/10036:
4187 * valprint.h (generic_emit_char, generic_printstr): Declare.
4188 * valprint.c (wchar_printable, append_string_as_wide)
4189 (print_wchar): Move from c-lang.c.
4190 (generic_emit_char): New function; mostly taken from c_emit_char.
4191 (generic_printstr): New function; mostly taken from c_printstr.
4192 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4193 represented as arrays.
4194 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4195 type.
4196 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4197 identically to TYPE_CODE_INT.
4198 * f-lang.c (f_get_encoding): New function.
4199 (f_emit_char): Use generic_emit_char.
4200 (f_printchar): Replace comment.
4201 (f_printstr): Use generic_printstr.
4202 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4203 "character" types specially.
4204 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4205 for Fortran.
4206 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4207 Move to valprint.c
4208 (c_emit_char): Call generic_emit_char.
4209 (c_printstr): Call generic_printstr.
4210
168e6d44
GB
42112011-06-29 Gary Benson <[email protected]>
4212
4213 * breakpoint.c (bpstat_what): Removed duplicated case.
4214
1c033f8c
TT
42152011-06-28 Tom Tromey <[email protected]>
4216
4217 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4218
5fe41fbf
TT
42192011-06-27 Tom Tromey <[email protected]>
4220
4221 * valops.c (find_overload_match): Call do_cleanups before early
4222 return.
4223 * top.c (execute_command): Call do_cleanups before early return.
4224 (command_loop): Likewise.
4225 * stack.c (backtrace_command): Make a null cleanup early. Don't
4226 conditionally call do_cleanups.
4227 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4228 TRY_CATCH.
4229 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4230 so cleanups are always run.
4231 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4232 * findcmd.c (parse_find_args): Call do_cleanups on early return
4233 path.
4234 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4235 Don't conditionally call do_cleanups.
4236 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4237 later.
4238
e26bd57d
EB
42392011-06-27 Eric Botcazou <[email protected]>
4240
4241 * MAINTAINERS (Write After Approval): Use default email address.
4242
6c3097fc
JB
42432011-06-27 Joel Brobecker <[email protected]>
4244
4245 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4246
369c397b
JB
42472011-06-27 Eric Botcazou <[email protected]>
4248
4249 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4250 saved_regs_mask and copied_regs_mask fields.
4251 (sparc_record_save_insn): New prototype.
4252 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4253 (sparc_record_save_insn): New function.
4254 (sparc_analyze_prologue): Add head comment. Recognize store insns
4255 of call-saved registers. Use OFFSET consistently. Recognize flat
4256 frames and cache their settings.
4257 (sparc32_skip_prologue): Handle flat frames.
4258 (sparc_frame_cache): Add frame_offset to the base address.
4259 (sparc32_frame_cache): Adjust to new frame description.
4260 (sparc32_frame_prev_register): Likewise.
4261 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4262 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4263 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4264 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4265 frame by calling sparc_record_save_insn.
4266 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4267 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4268 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4269
b315ab21
TG
42702011-06-27 Tristan Gingold <[email protected]>
4271
4272 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4273 field by map_addr and map_len.
4274 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4275 (munmap_section_buffer): Likewise.
4276
ddd49eee
TT
42772011-06-24 Tom Tromey <[email protected]>
4278
4279 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4280 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4281 * python/python.c (gdbpy_parameter): Make 'arg' const.
4282 (execute_gdb_command): Likewise.
4283 (gdbpy_decode_line): Likewise. Copy it.
4284 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4285 (gdbpy_write): Make 'arg' const.
4286 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4287 const.
4288 (gdbpy_lookup_type): Likewise.
4289 * python/py-prettyprint.c (print_children): Make 'name' const.
4290 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4291 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4292 Py_ssize_t.
4293 * python/py-function.c (fnpy_init): Make 'name' const.
4294 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4295 (gdbpy_string_to_argv): Make 'input' const.
4296 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4297 it.
4298 * gdbtypes.h (lookup_typename): Update.
4299 * gdbtypes.c (lookup_typename): Make 'name' const.
4300 (lookup_struct): Likewise.
4301 (lookup_union): Likewise.
4302 (lookup_enum): Likewise.
4303
5998129b
TT
43042011-06-24 Tom Tromey <[email protected]>
4305
4306 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4307 gdb_thread_db.h. Move all common/ entries to be together.
4308 (TAGS): Don't depend on DEPFILES.
4309
6e586cc5
YQ
43102011-06-23 Yao Qi <[email protected]>
4311
4312 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4313 * remote.c (remote_start_remote): ... here.
4314 * monitor.c (monitor_open): ... here.
4315
86c3c1fc
AB
43162011-06-23 Andrew Burgess <[email protected]>
4317
4318 * gdbtypes.c (append_composite_type_field_aligned): Fix
4319 calculation of bit position based on alignment.
4320
28010a5d
PA
43212011-06-22 Pedro Alves <[email protected]>
4322
4323 * breakpoint.c (bpstat_stop_status): Call the check_status
4324 breakpoint_ops method.
4325 (print_one_breakpoint_location): Also print the condition for Ada
4326 exception catchpoints.
4327 (allocate_bp_location): New, factored out from
4328 allocate_bp_location.
4329 (allocate_bp_location): Adjust. Call the owner breakpoint's
4330 allocate_location method, if there is one.
4331 (free_bp_location): Call the locations's dtor method, if there is
4332 one.
4333 (init_raw_breakpoint_without_location): New breakpoint_ops
4334 parameter. Use it.
4335 (set_raw_breakpoint_without_location): Adjust.
4336 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4337 (set_raw_breakpoint): Adjust.
4338 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4339 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4340 re_set and check_status methods.
4341 (init_catchpoint): Don't memset, initialize thread, addr_string
4342 and enable_state. Pass the ops down to init_raw_breakpoint.
4343 (install_catchpoint): Rename to ...
4344 (install_breakpoint): ... this, and make extern.
4345 (create_fork_vfork_event_catchpoint): Adjust.
4346 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4347 re_set and check_status methods.
4348 (create_syscall_event_catchpoint): Adjust.
4349 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4350 (masked_watchpoint_breakpoint_ops): Install NULL
4351 allocate_location, re_set and check_status methods.
4352 (catch_exec_command_1): Adjust.
4353 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4354 re_set and check_status methods.
4355 (create_ada_exception_breakpoint): Rename to ...
4356 (init_ada_exception_breakpoint): ... this. Add a struct
4357 breakpoint parameter, and delete the exp_string, cond_string and
4358 cond parameters. Use init_raw_breakpoint, and don't install or
4359 mention the breakpoint yet. Don't clear breakpoint fields that
4360 init_raw_breakpoint already clears.
4361 (re_set_breakpoint): Delete, split into ...
4362 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4363 functions.
4364 (breakpoint_re_set_one): Call the breakpoint's
4365 breakpoint_ops->re_set implementation, if there's one. Adjust.
4366 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4367 (struct bp_location_ops): New type.
4368 (struct bp_location): New field `ops'.
4369 (struct breakpoint_ops): New `allocate_location', `re_set' and
4370 `check_status' fields. Make `breakpoint_hit''s description match
4371 reality.
4372 (init_bp_location): Declare.
4373 (breakpoint_re_set_default): Declare.
4374 (create_ada_exception_breakpoint): Rename to ...
4375 (init_ada_exception_breakpoint): ... this. Add a struct
4376 breakpoint parameter, and delete the exp_string, cond_string and
4377 cond parameters.
4378 (install_breakpoint): Declare.
4379 * ada-lang.c: Include exceptions.h.
4380 <Ada exceptions description>: Update.
4381 (struct ada_catchpoint_location): New type.
4382 (ada_catchpoint_location_dtor): New function.
4383 (ada_catchpoint_location_ops): New global.
4384 (ada_catchpoint): New type.
4385 (create_excep_cond_exprs): New function.
4386 (dtor_exception, allocate_location_exception, re_set_exception)
4387 (should_stop_exception, check_status_exception): New functions.
4388 (print_one_exception, print_mention_exception)
4389 (print_recreate_exception): Adjust.
4390 (dtor_catch_exception, allocate_location_catch_exception)
4391 (re_set_catch_exception, check_status_catch_exception): New
4392 functions.
4393 (catch_exception_breakpoint_ops): Install them.
4394 (dtor_catch_exception_unhandled)
4395 (allocate_location_catch_exception_unhandled)
4396 (re_set_catch_exception_unhandled)
4397 (check_status_catch_exception_unhandled): New functions.
4398 (catch_exception_unhandled_breakpoint_ops): Install them.
4399 (dtor_catch_assert, allocate_location_catch_assert)
4400 (re_set_catch_assert, check_status_catch_assert): New functions.
4401 (catch_assert_breakpoint_ops): Install them.
4402 (ada_exception_catchpoint_p): Delete.
4403 (catch_ada_exception_command_split)
4404 (ada_exception_catchpoint_cond_string): Rename exp_string
4405 parameter to excep_string. Adjust.
4406 (ada_parse_catchpoint_condition): Delete.
4407 (ada_exception_sal): Rename the exp_string parameter to
4408 excep_string. Delete the cond_string and cond parameters.
4409 Adjust.
4410 (ada_decode_exception_location): Rename the exp_string parameter
4411 to excep_string. Delete the cond_string and cond parameters.
4412 Adjust.
4413 (create_ada_exception_catchpoint): New function.
4414 (catch_ada_exception_command, ada_decode_assert_location)
4415 (catch_assert_command): Adjust.
4416 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4417
9ac4176b
PA
44182011-06-22 Pedro Alves <[email protected]>
4419
4420 * ada-lang.c: Include arch-utils.h.
4421 (ada_decode_exception_location): Make static.
4422 (catch_ada_exception_command): Moved here from breakpoint.c.
4423 (ada_decode_assert_location): Make static.
4424 (catch_assert_command): Moved here from breakpoint.c.
4425 (_initialize_ada_lang): Install the exception and assert
4426 catchpoint commands here.
4427 * ada-lang.h (ada_decode_exception_location)
4428 (ada_decode_assert_location): Delete declarations.
4429 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4430 breakpoint.h.
4431 (create_ada_exception_breakpoint): Make extern.
4432 (catch_ada_exception_command, catch_assert_command): Moved to
4433 ada-lang.c.
4434 (add_catch_command): Make extern.
4435 (_initilize_breakpoint): Don't install the exception and assert
4436 catchpoint commands here.
4437 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4438 breakpoint.c
4439 (add_catch_command, create_ada_exception_breakpoint): Declare.
4440
c56053d2
PA
44412011-06-22 Pedro Alves <[email protected]>
4442
4443 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4444 the breakpoint to the breakpoint chain here.
4445 (set_raw_breakpoint_without_location): Add the breakpoint to the
4446 breakpoint chain here.
4447 (init_raw_breakpoint): Adjust comments.
4448 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4449 here.
4450 (init_catchpoint): Don't set the catchpoint's breakpoint number
4451 here.
4452 (install_catchpoint): New function.
4453 (create_fork_vfork_event_catchpoint)
4454 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4455 use install_catchpoint.
4456
d2f3fc74
PA
44572011-06-22 Pedro Alves <[email protected]>
4458
4459 * breakpoint.c (create_catchpoint_without_mention)
4460 (create_catchpoint): Delete.
4461
b4d90040
PA
44622011-06-22 Pedro Alves <[email protected]>
4463
4464 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4465 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4466 reference to exec_pathname.
4467 (struct exec_catchpoint): New type.
4468 (dtor_catch_exec): New function.
4469 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4470 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4471 (catch_exec_command_1): Adjust to use init_catchpoint.
4472 (delete_breakpoint): Remove reference to exec_pathname.
4473
be5c67c1
PA
44742011-06-22 Pedro Alves <[email protected]>
4475
4476 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4477 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4478 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4479 reference to syscalls_to_be_caught.
4480 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4481 NULL `dtor'.
4482 (struct syscall_catchpoint): New type.
4483 (dtor_catch_syscall): New function.
4484 (insert_catch_syscall, remove_catch_syscall)
4485 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4486 (print_recreate_catch_syscall): Adjust.
4487 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4488 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4489 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4490 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4491 (masked_watchpoint_breakpoint_ops)
4492 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4493 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4494 there is one. Remove references to syscalls_to_be_caught.
4495 (catching_syscall_number): Adjust.
4496 * ada-lang.c (catch_exception_breakpoint_ops)
4497 (catch_exception_unhandled_breakpoint_ops)
4498 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4499
e29a4733
PA
45002011-06-22 Pedro Alves <[email protected]>
4501
4502 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4503 field.
4504 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4505 reference to forked_inferior_pid.
4506 (struct fork_catchpoint): New type.
4507 (breakpoint_hit_catch_fork, print_it_catch_fork)
4508 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4509 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4510 (create_fork_vfork_event_catchpoint): Adjust to use
4511 init_catchpoint.
4512
346774a9
PA
45132011-06-22 Pedro Alves <[email protected]>
4514
4515 * breakpoint.c (add_to_breakpoint_chain)
4516 (init_raw_breakpoint_without_location): New functions, factored
4517 out from ...
4518 (set_raw_breakpoint_without_location): ... this one.
4519 (init_raw_breakpoint): New function, factored out from
4520 set_raw_breakpoint and adjusted to use
4521 init_raw_breakpoint_without_location.
4522 (set_raw_breakpoint): Adjust.
4523 (init_catchpoint): New function, factored out from
4524 create_catchpoint_without_mention and adjusted to use
4525 init_raw_breakpoint.
4526 (create_catchpoint_without_mention): Adjust.
4527
c38c4bc5
TT
45282011-06-22 Tom Tromey <[email protected]>
4529
4530 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4531 argument of 0 specially.
4532
b138ce37
YQ
45332011-06-22 Yao Qi <[email protected]>
4534
4535 * infrun.c (handle_inferior_event): Remove write-only local variable
4536 `sw_single_step_trap_p'.
4537
03de6823
TT
45382011-06-20 Tom Tromey <[email protected]>
4539
4540 * symtab.c (lookup_language_this): End loop if block is NULL.
4541
66a17cb6
TT
45422011-06-17 Tom Tromey <[email protected]>
4543
4544 * valops.c (value_of_this): Use lookup_language_this.
4545 * symtab.h (lookup_language_this): Declare.
4546 * symtab.c (lookup_language_this): New function.
4547 (lookup_symbol_aux): Use lookup_language_this.
4548 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4549
7518bff5
TT
45502011-06-17 Tom Tromey <[email protected]>
4551
4552 * value.h (value_of_this): Update.
4553 (value_of_local): Remove.
4554 * valops.c (value_of_this): Rename from value_of_local. Change
4555 parameters.
4556 * p-exp.y (exp): Update.
4557 (variable): Likewise.
4558 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4559
aee28ec6
TT
45602011-06-17 Tom Tromey <[email protected]>
4561
4562 * valops.c (value_of_local): Complain if NAME is NULL.
4563 * std-operator.def (OP_OBJC_SELF): Remove.
4564 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4565 * objc-exp.y (name_not_typename): Use OP_THIS.
4566 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4567 name for "this".
4568 <OP_OBJC_SELF>: Remove.
4569 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4570
eed8f803
TG
45712011-06-16 Tristan Gingold <[email protected]>
4572
4573 * python/py-events.h (gdb_py_events): Make it extern.
4574 * python/py-evtregistry.c (gdb_py_events): Declare.
4575
864ac8a7
HZ
45762011-06-16 Hui Zhu <[email protected]>
4577
4578 * remote.c (remote_trace_set_readonly_regions): Add check for
4579 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4580 output warning.
4581
ef7e8358
UW
45822011-06-15 Ulrich Weigand <[email protected]>
4583
4584 * arm-linux-tdep.c: Include "auxv.h".
4585 (AT_HWCAP): Define.
4586 (ARM_LINUX_SIZEOF_VFP): Define.
4587 (arm_linux_supply_vfp): New function.
4588 (arm_linux_collect_vfp): Likewise.
4589 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4590 (arm_linux_fpa_regset_sections): New variable.
4591 (arm_linux_vfp_regset_sections): Likewise.
4592 (arm_linux_core_read_description): New function.
4593 (arm_linux_init_abi): Install arm_linux_core_read_description and
4594 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4595 appropriate for the architecture.
4596 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4597 (tdesc_arm_with_m): Declare.
4598 (tdesc_arm_with_iwmmxt): Likewise.
4599 (tdesc_arm_with_vfpv2): Likewise.
4600 (tdesc_arm_with_vfpv3): Likewise.
4601 (tdesc_arm_with_neon): Likewise.
4602 * arm-linux-nat.c: Move features/*.c includes ...
4603 * arm-tdep.c: ... here.
4604 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4605 target description data structures ...
4606 * arm-tdep.c (_initialize_arm_tdep): ... here.
4607 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4608 HWCAP_VFPv3D16): Move definitions ...
4609 * arm-linux-tdep.h: ... here.
4610
c2fa21f1
HZ
46112011-06-15 Hui Zhu <[email protected]>
4612
4613 * remote.c (remote_trace_set_readonly_regions): Add a check for
4614 target_buf_size.
4615
dd707e8e
TT
46162011-06-14 Tom Tromey <[email protected]>
4617
4618 * coffread.c (coffread_objfile): Rename from current_objfile.
4619 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4620 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4621
86cc0029
TT
46222011-06-14 Tom Tromey <[email protected]>
4623
4624 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4625 (class_symtab): Remove.
4626 (jv_dynamics_progspace_key): New global.
4627 (jv_per_objfile_free): Reset program space data. Update assert.
4628 Don't clear globals.
4629 (get_dynamics_objfile): Use and set program space data.
4630 (get_java_class_symtab): Use get_dynamics_objfile.
4631 (add_class_symbol): Likewise.
4632 (java_link_class_type): Likewise.
4633 (java_object_type, jv_clear_object_type, set_java_object_type):
4634 Remove.
4635 (get_java_object_type): Update. Don't cache result.
4636 (is_object_type): Don't call set_java_object_type.
4637 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4638 initialize jv_dynamics_progspace_key.
4639
91a81f69
TT
46402011-06-14 Tom Tromey <[email protected]>
4641
4642 * symtab.h (current_objfile): Don't declare.
4643 * objfiles.h (current_objfile): Don't declare.
4644 * objfiles.c (current_objfile): Remove.
4645 * mdebugread.c (current_objfile): New file-scope global.
4646 * dbxread.c (current_objfile): New file-scope global.
4647 * coffread.c (current_objfile): New file-scope global.
4648
dc7eb48e
PA
46492011-06-13 Pedro Alves <[email protected]>
4650
4651 * top.h (line): Rename to ...
4652 (saved_command_line): ... this.
4653 (linesize): Rename to ...
4654 (saved_command_line_size): ... this.
4655 * top.c (line): Rename to ...
4656 (saved_command_line): ... this.
4657 (linesize): Rename to ...
4658 (saved_command_line_size): ... this.
4659 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4660 * event-top.c (command_line_handler): Adjust.
4661 * main.c (captured_main): Adjust.
4662
0d6c2135
MK
46632011-06-12 Mark Kettenis <[email protected]>
4664
4665 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4666 get_frame_func instead of get_frame_pc to determine the code
4667 address used to construct the frame ID.
4668 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4669 (i386_epilogue_frame_this_id): Likewise.
4670 (i386_epilogue_frame_prev_register): New function.
4671 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4672 (i386_stack_tramp_frame_sniffer): Fix coding style.
4673 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4674 (i386_gdbarch_init): Fix comments.
4675
8bbdd3f4
MK
46762011-06-12 Mark Kettenis <[email protected]>
4677
4678 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4679 instruction when walking back through the instruction stream.
4680
533a737e
JK
46812011-06-10 Jan Kratochvil <[email protected]>
4682
4683 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4684 fullname parameters order.
4685
44b13c5a
JK
46862011-06-10 Jan Kratochvil <[email protected]>
4687
4688 Code cleanup.
4689 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4690 for fun.
4691 * psymtab.c (map_symbol_filenames_psymtab)
4692 (map_partial_symbol_filenames): Likewise.
4693 * psymtab.h: Include symfile.h.
4694 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4695 * symfile.h (symbol_filename_ftype): New.
4696 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4697 map_symbol_filenames, clarify more the naming in comment.
4698
0b5574da
DE
46992011-06-07 Doug Evans <[email protected]>
4700
4701 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4702 Look for ../../gdb, for fullname.exp.
0b5574da 4703
5be4dfca
JK
47042011-06-07 Jan Kratochvil <[email protected]>
4705 Pedro Alves <[email protected]>
4706
4707 * cli/cli-cmds.c (shell_escape): Use waitpid.
4708 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4709
316a8b21
TG
47102011-06-07 Tristan Gingold <[email protected]>
4711
4712 * xcoffread.c (dwarf2_xcoff_names): New variable.
4713 (aix_process_linenos): Add a guard.
4714 (xcoff_symfile_finish): Free dwarf2.
4715 (xcoff_initial_scan): Add dwarf2 support.
4716
3dd5b83d
PA
47172011-06-06 Pedro Alves <[email protected]>
4718
4719 * infcall.c (run_inferior_call): Don't mask async. Instead force
4720 a synchronous wait, if the target can async.
4721
4722 * target.h (struct target_ops): Delete to_async_mask.
4723 (target_async_mask): Delete.
4724 * target.c (update_current_target): Delete references to to_async_mask.
4725 * linux-nat.c (linux_nat_async_mask_value): Delete.
4726 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4727 to linux_nat_async_mask_value.
4728 (linux_nat_async_mask): Delete.
4729 (linux_nat_async, linux_nat_close): Remove references to
4730 linux_nat_async_mask_value.
4731 * record.c (record_async_mask_value): Delete.
4732 (record_async): Remove references to record_async_mask_value.
4733 (record_async_mask): Delete.
4734 (record_can_async_p, record_is_async_p): Remove references to
4735 record_async_mask_value.
4736 (init_record_ops, init_record_core_ops): Remove references to
4737 record_async_mask.
4738 * remote.c (remote_async_mask_value): Delete.
4739 (init_remote_ops): Remove reference to remote_async_mask.
4740 (remote_can_async_p, remote_is_async_p): Remove references to
4741 remote_async_mask_value.
4742 (remote_async): Remove references to remote_async_mask_value.
4743 (remote_async_mask): Delete.
4744
4745 * infrun.c (fetch_inferior_event): Don't claim registers changed
4746 if the current thread is already not executing.
4747
64b9b334
JB
47482011-06-03 Joel Brobecker <[email protected]> (obvious fix)
4749
4750 From Stephen Kitt <[email protected]>
4751 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4752 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4753
325663dc
JB
47542011-06-03 Joel Brobecker <[email protected]>
4755
4756 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4757 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4758
8cf64490
TT
47592011-06-03 Tom Tromey <[email protected]>
4760
4761 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4762 code fields.
4763 * python/py-exitedevent.c (create_exited_event_object): Change
4764 type of 'exit_code'. Optionally add exit_code attribute.
4765 (emit_exited_event): Change type of 'exit_code'.
4766 * python/py-event.h (emit_exited_event): Update.
4767 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4768 * infrun.c (handle_inferior_event): Set exit code fields on
4769 inferior.
4770 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4771 fields.
4772 * inferior.c (exit_inferior_1): Initialize new fields.
4773
8ddd9a20
TT
47742011-06-03 Tom Tromey <[email protected]>
4775
4776 * dwarf2expr.c (get_signed_type): New function.
4777 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4778
8dfd1e6d
KS
47792011-06-02 Keith Seitz <[email protected]>
4780
4781 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4782
65fdb766
PA
47832011-06-02 Pedro Alves <[email protected]>
4784
4785 * top.h (simplified_command_loop): Delete declaration.
4786
f4b8c29b
MF
47872011-06-01 Mike Frysinger <[email protected]>
4788
4789 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4790 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4791
1706c199
YQ
47922011-06-01 Yao Qi <[email protected]>
4793
4794 * objfiles.h (obj_section_addr): Update reference to objfile from
4795 `abfd' to `obfd'.
4796 (obj_section_endaddr): Likewise.
4797
d19cd713 47982011-06-01 Daniel Jacobowitz <[email protected]>
8d07004d
DJ
4799
4800 * MAINTAINERS: Update my email address and affiliation. Also
4801 update Ian Lance Taylor's affiliation. Use UTF-8 for [email protected].
4802
e8eb7bc5
KS
48032010-05-31 Keith Seitz <[email protected]>
4804
4805 PR c++/12750
4806 * linespec.c (get_search_block): New function.
4807 (find_methods): Add FILE_SYMTATB parameter and use it and
4808 get_search_block to pass an appropriate block to
4809 lookup_symbol_in_namespace.
4810 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4811 Check if *ARGPTR starts with a filename first.
4812 If it does, call locate_first_half again to locate the next
4813 "first half" of the linespec.
4814 Pass FILE_SYMTATB to decode_objc and decode_compound.
4815 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4816 (locate_first_half): Stop on the first colon seen.
4817 (decode_compound): Add FILE_SYMTAB parameter.
4818 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4819 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4820 get_search_block with lookup_symbol.
4821 (find_method): Add FILE_SYMTAB parameter and pass it to
4822 find_methods.
4823 (decode_objc): Use get_search_block.
4824
2b1dbab0
KS
48252010-05-31 Keith Seitz <[email protected]>
4826
4827 PR symtab/12704
4828 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4829 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4830 and CP_ANONYMOUS_NAMESPACE_LEN.
4831 (cp_is_anonymous): Likewise.
4832 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4833 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4834 * dwarf2read.c (namespace_name): Likewise.
4835 (fixup_partial_die): Likewise.
4836 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4837 seen in the input, keep it.
4838
6d549500
PA
48392011-05-30 Pedro Alves <[email protected]>
4840
4841 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4842 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4843 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4844 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4845 * remote.c (_initialize_remote): Register
4846 async_remote_interrupt_twice directly as
4847 sigint_remote_twice_token event.
4848
395bff70
PA
48492011-05-30 Pedro Alves <[email protected]>
4850
4851 * target.h (enum inferior_event_type): Delete INF_ERROR.
4852 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4853
97224164
PA
48542011-05-30 Pedro Alves <[email protected]>
4855
4856 * interps.c (interp_set): Don't cancel continuations.
4857
07e78767
JK
48582011-05-30 Jan Kratochvil <[email protected]>
4859
4860 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4861
fa4cd53f
PA
48622011-05-30 Pedro Alves <[email protected]>
4863
4864 * continuations.h (continuation_ftype): Add `err' parameter.
4865 Document parameters.
4866 (do_all_continuations, do_all_continuations_thread)
4867 (do_all_intermediate_continuations)
4868 (do_all_intermediate_continuations_thread)
4869 (do_all_inferior_continuations): Add `err' parameter.
4870 * continuations.c (do_my_continuations_1, do_my_continuations)
4871 (do_all_inferior_continuations, do_all_continuations_ptid)
4872 (do_all_continuations_thread_callback)
4873 (do_all_continuations_thread, do_all_continuations)
4874 (do_all_intermediate_continuations_thread_callback)
4875 (do_all_intermediate_continuations_thread)
4876 (do_all_intermediate_continuations): Add `err' parameter, and pass
4877 it down all the way to the continuations proper.
4878 * inf-loop.c (inferior_event_handler): If fetching an inferior
4879 event throws an error, don't pop the target, and still call the
4880 continuations, but with `err' set. Adjust all other continuation
4881 calls.
4882 * breakpoint.c (until_break_command_continuation): Add `err'
4883 parameter.
4884 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4885 issue another step if `err' is set.
4886 (struct until_next_continuation_args): New.
4887 (until_next_continuation): Add `err' parameter. Adjust.
4888 (until_next_command): Adjust.
4889 (struct finish_command_continuation_args): Add `thread' field.
4890 (finish_command_continuation): Add `err' parameter. Handle it.
4891 (finish_forward): Adjust.
4892 (attach_command_continuation): Add `err' parameter. Handle it.
4893 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4894 cancel the continuations.
4895 * interps.c (interp_set): Adjust to cancel the continuations.
4896 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4897 continuations rather than discarding.
4898 (free_thread): Don't clear thread inferior resources here.
4899 (delete_thread_1): Do it here instead. And do it before removing
4900 the thread from the threads list. Tag the thread as exited before
4901 clearing thread inferior resources.
4902
c2949be0
JB
49032011-05-30 Joel Brobecker <[email protected]>
4904
4905 * infcall.c (call_function_by_hand): Rephrase error message.
4906
619cebe8
PA
49072011-05-27 Pedro Alves <[email protected]>
4908
4909 * defs.h (struct thread_info, struct inferior): Delete forward
4910 declarations.
4911 * breakpoint.h (struct thread_info): New forward declaration.
4912 * observer.sh (struct inferior): New forward declaration.
4913 * python/python-internal.h (struct inferior): New forward
4914 declaration.
4915
be34f849
PA
49162011-05-27 Pedro Alves <[email protected]>
4917
4918 * defs.h (struct continuation, continuation_ftype)
4919 (continuation_free_arg_ftype, add_continuation)
4920 (do_all_continuations, do_all_continuations_thread)
4921 (discard_all_continuations, discard_all_continuations_thread)
4922 (add_intermediate_continuation, do_all_intermediate_continuations)
4923 (do_all_intermediate_continuations_thread)
4924 (discard_all_intermediate_continuations)
4925 (discard_all_intermediate_continuations_thread)
4926 (add_inferior_continuation, do_all_inferior_continuations)
4927 (discard_all_inferior_continuations): Move to ...
4928 * continuations.h: ... this new file.
4929 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4930 infcmd.c, inferior.c, infrun.c, interps.c: Include
4931 continuations.h.
4932
432b4d03
JK
49332011-05-27 Jan Kratochvil <[email protected]>
4934 Doug Evans <[email protected]>
4935
4936 Fix PR 10970, PR 12702.
4937 * linux-nat.c (linux_lwp_is_zombie): New function.
4938 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4939 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4940
b0f260d6
PA
49412011-05-27 Pedro Alves <[email protected]>
4942
4943 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4944 typedefs.
4945 (add_continuation, add_intermediate_continuation)
4946 (add_inferior_continuation): Use them.
4947 * continuations.c (struct continuation): Use them.
4948 (make_continuation_ftype): Delete.
4949 (make_continuation, add_inferior_continuation, add_continuation)
4950 (add_intermediate_continuation): Use continuation_ftype and
4951 continuation_free_arg_ftype. Rename parameters to shorter names.
4952
af1e9a32
PA
49532011-05-27 Pedro Alves <[email protected]>
4954
4955 * continuations.c (make_continuation): Make it return void.
4956 (do_my_continuations): Rename to ...
4957 (do_my_continuations_1): ... this. Remove old_chain parameter and
4958 adjust.
4959 (do_my_continuations): New.
4960 (discard_my_continuations): Rename to ...
4961 (discard_my_continuations_1): ... this. Remove old_chain
4962 parameter and adjust.
4963 (discard_my_continuations): New.
4964 (add_inferior_continuation): Simplify.
4965 (do_all_inferior_continuations): Reimplement on top
4966 do_my_continuations.
4967 (discard_all_inferior_continuations): Simplify.
4968 (add_continuation): Simplify.
4969 (do_all_continuations_ptid): Simplify.
4970 (discard_all_continuations_thread_callback): Simplify.
4971 (add_intermediate_continuation): Simplify.
4972 (discard_all_intermediate_continuations_thread_callback):
4973 Simplify.
4974
50c0c017
PA
49752011-05-27 Pedro Alves <[email protected]>
4976
4977 * utils.c (struct continuation, add_continuation)
4978 (add_inferior_continuation)
4979 (do_all_inferior_continuations, discard_all_inferior_continuations)
4980 (restore_thread_cleanup, do_all_continuations_ptid)
4981 (do_all_continuations_thread_callback)
4982 (do_all_continuations_thread, do_all_continuations)
4983 (discard_all_continuations_thread_callback)
4984 (discard_all_continuations_thread, discard_all_continuations)
4985 (add_intermediate_continuation)
4986 (do_all_intermediate_continuations_thread_callback)
4987 (do_all_intermediate_continuations_thread)
4988 (do_all_intermediate_continuations)
4989 (discard_all_intermediate_continuations_thread_callback)
4990 (discard_all_intermediate_continuations_thread)
4991 (discard_all_intermediate_continuations): Move to ...
4992 * continuations.c: ... this new file, and adjust to no longer
4993 implement continuations on top of cleanups.
4994 * Makefile.in (SFILES): Add continuations.c.
4995 (COMMON_OBS): Add continuations.o.
4996
d8b34453
PA
49972011-05-26 Pedro Alves <[email protected]>
4998
4999 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5000 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5001 Internal error on invalid values.
5002 * reverse.c: Don't handle EXEC_ERROR.
5003 * mi/mi-main.c: Don't handle EXEC_ERROR.
5004
32231432
PA
50052011-05-26 Pedro Alves <[email protected]>
5006
5007 * record.c: Include event-loop.h, inf-loop.h.
5008 (record_beneath_to_async): New global.
5009 (tmp_to_async): New global.
5010 (record_async_inferior_event_token): New global.
5011 (record_open_1): Don't error out if async is enabled.
5012 (record_open): Handle to_async. Create an async event source in
5013 the event loop.
5014 (record_close): Delete the async event source.
5015 (record_resumed): New global.
5016 (record_execution_dir): New global.
5017 (record_resume, record_core_resume): Set them. Register the
5018 target on the event loop.
5019 (record_wait): Rename to ...
5020 (record_wait_1): ... this. Add more debug output. Handle
5021 TARGET_WNOHANG, and the target beneath returning
5022 TARGET_WAITKIND_IGNORE.
5023 (record_wait): Reimplement on top of record_wait_1.
5024 (record_async_mask_value): New global.
5025 (record_async, record_async_mask, record_can_async_p)
5026 (record_is_async_p, record_execution_direction): New functions.
5027 (init_record_ops, init_record_core_ops): Install new methods.
5028 * infrun.c (fetch_inferior_event): Temporarily switch the global
5029 execution direction to the direction the target was going.
5030 (execution_direction): Change type to int.
5031 * target.c (default_execution_direction): New function.
5032 (update_current_target): Inherit and de_fault
5033 to_execution_direction.
5034 * target.h (struct target_ops) <to_execution_direction>: New
5035 field.
5036 (target_execution_direction): New macro.
5037 * inferior.h (execution_direction): Change type to int.
5038
949dc678
PA
50392011-05-26 Pedro Alves <[email protected]>
5040
5041 * infcall.c (call_function_by_hand): Don't allow calling functions
5042 in reverse execution mode.
5043
c13bd2b5
PA
50442011-05-26 Pedro Alves <[email protected]>
5045
5046 * infcmd.c (finish_command): Allow async finish in reverse.
5047
6938fd34
YQ
50482011-05-26 Yao Qi <[email protected]>
5049
5050 * gdb_thread_db.h: Delete. Move to ...
5051 * common/gdb_thread_db.h: ... here.
5052
9da8c2a0
PA
50532011-05-26 Pedro Alves <[email protected]>
5054
5055 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5056 function's entry point instead of a manually managed momentary
5057 breakpoint, and only ever issue one proceed call.
5058 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5059 doing a reverse-finish, switch to stepi mode, to do another step.
5060 (insert_step_resume_breakpoint_at_sal): Make public.
5061 (normal_stop): No need to save function value return registers if
5062 going reverse.
5063 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5064
2c03e5be
PA
50652011-05-26 Pedro Alves <[email protected]>
5066
5067 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5068 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5069 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5070 at the end.
5071 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5072 step-resume breakpoints.
5073 (print_it_typical): Handle bp_hp_step_resume.
5074 (bpstat_what): Ditto.
5075 (bptype_string): Ditto.
5076 (print_one_breakpoint_location): Ditto.
5077 (allocate_bp_location): Ditto.
5078 (mention): Ditto.
5079 (breakpoint_re_set_one): Ditto.
5080 * infrun.c (handle_inferior_event): Adjust. Split
5081 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5082 BPSTAT_WHAT_HP_STEP_RESUME.
5083 (insert_step_resume_breakpoint_at_sal): Rename to ...
5084 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5085 parameter. Handle it.
5086 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5087 insert_step_resume_breakpoint_at_sal_1.
5088 (insert_step_resume_breakpoint_at_frame): Rename to ...
5089 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5090 set a high-priority step-resume breakpoint.
5091 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5092 (insert_step_resume_breakpoint_at_caller): Ditto.
5093
51be5b68
PA
50942011-05-26 Pedro Alves <[email protected]>
5095
5096 * breakpoint.c (iterate_over_related_breakpoints): New.
5097 (do_map_delete_breakpoint): New.
5098 (delete_command): Pass do_map_delete_breakpoint to
5099 map_breakpoint_numbers.
5100 (do_disable_breakpoint): New.
5101 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5102 breakpoints.
5103 (do_enable_breakpoint): Rename to ...
5104 (enable_breakpoint_disp): ... this.
5105 (enable_breakpoint): Adjust.
5106 (do_enable_breakpoint): New.
5107 (enable_once_breakpoint): Delete.
5108 (do_map_enable_breakpoint): New.
5109 (do_map_enable_once_breakpoint): New.
5110 (enable_once_command, enable_delete_command)
5111 (delete_trace_command): Iterate over the breakpoint's related
5112 breakpoints.
5113
4a1be8d2
PA
51142011-05-26 Pedro Alves <[email protected]>
5115
5116 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5117 for ALPHA_ZERO_REGNUM.
5118 (alpha_supply_int_regs): Explicitly supply zero as the value for
5119 ALPHA_ZERO_REGNUM in the register cache.
5120 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5121
59d70315
YQ
51222011-05-26 Yao Qi <[email protected]>
5123
5124 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5125
251d32d9
TG
51262011-05-26 Tristan Gingold <[email protected]>
5127
5128 * symfile.h (struct dwarf2_section_names): New type.
5129 (struct dwarf2_debug_sections): New type.
5130 (dwarf2_has_info): Add parameter.
5131 * dwarf2read.c (dwarf2_elf_names): New variable.
5132 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5133 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5134 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5135 (dwarf2_has_info): Add names parameter. Pass names
5136 to dwarf2_locate_sections.
5137 (section_is_p): Rewrite using the names parameter.
5138 (dwarf2_locate_sections): Use section names from the names parameter.
5139 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5140 * elfread.c (read_psyms): Ditto.
5141 * machoread.c (macho_symfile_read): Ditto.
5142
652c71b4
AS
51432011-05-25 Andreas Schwab <[email protected]>
5144
5145 PR gdb/8677
5146 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5147
f17170e5
KS
51482011-05-24 Keith Seitz <[email protected]>
5149
5150 PR breakpoint/12803
5151 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5152 (decode_compound): Unconditionally call keep_name_info.
5153
cdac0397
PA
51542011-05-24 Pedro Alves <[email protected]>
5155
5156 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5157 scope, clear its command list.
5158 (map_breakpoint_numbers): Don't walk the related breakpoints list
5159 of each breakpoint.
5160
91d4fe3f
TT
51612011-05-24 Tom Tromey <[email protected]>
5162
5163 * MAINTAINERS: Move Jim Blandy to past maintainers.
5164
3017a003
TG
51652011-05-24 Tristan Gingold <[email protected]>
5166
5167 * symfile.h (enum dwarf2_section_enum): New type.
5168 (dwarf2_get_section_info): New prototype.
5169 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5170 section_name by sect. Use a switch to select the info.
5171 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5172 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5173
c91c8c16
PA
51742011-05-24 Pedro Alves <[email protected]>
5175
5176 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5177 shared library event breakpoint if there's no execution.
5178
77bc418a
TJB
51792011-05-24 Thiago Jung Bauermann <[email protected]>
5180
5181 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5182 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5183
c50491a7
TT
51842011-05-23 Tom Tromey <[email protected]>
5185
5186 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5187 NULL.
5188
6d64e6d4
DE
51892011-05-23 Doug Evans <[email protected]>
5190
5191 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5192 entry for RuntimeError to doc string.
5193
2067c8d4
JG
51942011-05-23 Jerome Guitton <[email protected]>
5195
5196 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5197 sequence for probing loops.
5198
b136cd05
PA
51992011-05-23 Pedro Alves <[email protected]>
5200
5201 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5202 comment.
5203
22e74ef9
MK
52042011-05-21 Mark Kettenis <[email protected]>
5205
5206 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5207 zero as the value for %g0 in the register cache.
5208 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5209 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5210
842951eb
PA
52112011-05-20 Pedro Alves <[email protected]>
5212
5213 * infrun.c (proceed): Set previous_inferior_ptid here.
5214 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5215 inferior_ptid, not null_ptid.
5216 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5217 (fetch_inferior_event): Nor here.
5218
46cf51e6
PA
52192011-05-20 Pedro Alves <[email protected]>
5220
5221 * inf-loop.c (inferior_event_handler): Only output a message if
5222 verbose.
5223
29ef4c46
LM
52242011-05-20 Luis Machado <[email protected]>
5225
5226 * MAINTAINERS: Update my e-mail address.
5227
f148b27e
PA
52282011-05-20 Pedro Alves <[email protected]>
5229
5230 * infrun.c (proceed): Switch the inferior event loop to
5231 INF_EXEC_COMPLETE if the target refused to resume from a
5232 vfork/fork.
5233
09cee04b
PA
52342011-05-20 Pedro Alves <[email protected]>
5235
5236 * infcmd.c: Include "inf-loop.h".
5237 (step_once): When stepping into an inline subroutine, pretend the
5238 target has run. If the target can async, switch the inferior
5239 event loop to INF_EXEC_COMPLETE.
5240 * inferior.h (user_visible_resume_ptid): Declare.
5241 * infrun.c (user_visible_resume_ptid): New function, factored out
5242 from `resume'.
5243 (resume): Use it.
5244 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5245 that the current thread is running. Merge async and sync
5246 branches.
5247
751b8ce1
PA
52482011-05-20 Pedro Alves <[email protected]>
5249
5250 * infcmd.c (step_1): Simplify synchronous case.
5251
e93a69ed
PA
52522011-05-20 Pedro Alves <[email protected]>
5253
5254 * tracepoint.c: Include exceptions.h.
5255 (TFILE_PID): Move higher in file.
5256 (tfile_open): Delay pushing the tfile target until we're assured
5257 the tfile header is present in the file. Wrap reading the initial
5258 newline-terminated lines in TRY_CATCH. Pop the target if the
5259 initial setup failed. Add the tfile's thread immediately
5260 aftwards, before any non-essential setup. Don't skip
5261 post_create_inferior if there are no traceframes present in the
5262 file.
5263 (tfile_close): Remove redundant check for null before xfree call.
5264 (tfile_thread_alive): New function.
5265 (init_tfile_ops): Register it as to_thread_alive callback.
5266
6823e2b1
PA
52672011-05-20 Pedro Alves <[email protected]>
5268
5269 * tracepoint.c (tfile_open): Delete #if 0'd code.
5270
b3c8eb43
JK
52712011-05-20 Jan Kratochvil <[email protected]>
5272
5273 Fix -readnow for -gdwarf-4 unused type units.
5274 * dwarf2read.c (struct signatured_type): Remove the field offset.
5275 (create_signatured_type_table_from_index): Remove its initialization.
5276 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5277 instead. Add a complaint call.
5278 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5279 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5280 (lookup_signatured_type_at_offset, read_signatured_type)
5281 (write_one_signatured_type): Update the field for per_cu.
5282
310afc76
TT
52832011-05-19 Tom Tromey <[email protected]>
5284
5285 * python/py-inferior.c (python_inferior_exit): Use
5286 target_gdbarch.
5287 (python_on_resume): Likewise.
5288
cf6c5ffb
TT
52892011-05-19 Matt Rice <[email protected]>
5290
5291 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5292
fb80a3c5
HZ
52932011-05-19 Hui Zhu <[email protected]>
5294
5295 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5296
3672b1be
HZ
52972011-05-19 Hui Zhu <[email protected]>
5298
5299 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5300
ff355380
TT
53012011-05-18 Tom Tromey <[email protected]>
5302
5303 * dwarf2read.c (dwarf2_add_field): Constify.
5304 * value.c (value_static_field): Constify.
5305 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5306 Now const.
5307 * ax-gdb.c (gen_static_field): Constify
5308
ed731959
JK
53092011-05-18 Jan Kratochvil <[email protected]>
5310
5311 * linux-nat.c (kill_callback): Use SIGKILL first.
5312
967cff16
JB
53132011-05-18 Joel Brobecker <[email protected]>
5314
5315 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5316
1d06ead6
TT
53172011-05-18 Tom Tromey <[email protected]>
5318
5319 * value.c (value_fn_field): Constify.
5320 * symtab.c (gdb_mangle_name): Constify.
5321 * stabsread.c (update_method_name_from_physname): Make 'physname'
5322 argument const.
5323 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5324 const. Use explicit fputc_filtered loop.
5325 (pascal_type_print_base): Constify.
5326 * p-lang.h (pascal_type_print_method_args): Update.
5327 * linespec.c (add_matching_methods): Constify.
5328 (add_constructors): Likewise.
5329 * jv-typeprint.c (java_type_print_base): Constify.
5330 * gdbtypes.h (struct cplus_struct_type)
5331 <fn_fieldlist.fn_field.physname>: Now const.
5332 * dwarf2read.c (compute_delayed_physnames): Constify.
5333 (dwarf2_add_member_fn): Likewise.
5334 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5335
0d9a9a5f
PA
53362011-05-18 Pedro Alves <[email protected]>
5337
5338 * infrun.c (resume): Mention which is the current thread, and its
5339 current PC in debug output.
5340 (prepare_to_proceed): Mention the thread switching in debug
5341 output.
5342
05386e9e
TT
53432011-05-18 Tom Tromey <[email protected]>
5344
5345 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5346 path check. Use xmalloc and cleanups.
5347 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5348
ee86786c
TT
53492011-05-17 Tom Tromey <[email protected]>
5350
5351 * cp-valprint.c (cp_print_value_fields): Catch errors from
5352 value_static_field.
5353
9ff3b74f
TT
53542011-05-17 Tom Tromey <[email protected]>
5355
5356 * dwarf2read.c (dwarf2_get_die_type): Call
5357 get_die_type_at_offset.
5358 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5359 get_base_type function.
5360
cd3da28e
PA
53612011-05-17 Tomas Martinec <[email protected]>
5362
5363 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5364 trap_expected.
5365
fd20d931
DE
53662011-05-16 Doug Evans <[email protected]>
5367
5368 * python/py-auto-load.c (source_section_scripts): Mention objfile
5369 name in warning.
5370
75fc9810
DE
53712011-05-15 Doug Evans <[email protected]>
5372
290351b8
DE
5373 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5374 (try_thread_db_load_from_pdir): Call it. If unable to find
5375 libthread_db in directory of libpthread, see if we're looking at
5376 the separate-debug-info copy.
5377
75fc9810
DE
5378 * python/py-autoload.c (print_script): Print "Missing" instead of
5379 "No" for missing scripts.
5380 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5381
9f7bc587
DE
53822011-05-13 Doug Evans <[email protected]>
5383
5384 * ui-file.c (stdio_file_write_async_safe): Add comment.
5385
093cee7d
HZ
53862011-05-14 Hui Zhu <[email protected]>
5387
5388 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5389
dbaefcf7
DE
53902011-05-13 Doug Evans <[email protected]>
5391
98a5dd13
DE
5392 Support $pdir and $sdir in libthread-db-search-path.
5393 * NEWS: Mention $sdir,$pdir.
5394 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5395 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5396 (try_thread_db_load_from_sdir): New function.
5397 (try_thread_db_load_from_dir): New function.
5398 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5399 system directories if search of libthread-db-search-path fails,
5400 that is now done via $sdir.
5401 (has_libpthread): New function.
5402 (thread_db_load): Remove search for libthread_db in directory of
5403 libpthread, that is now done via $pdir.
5404
dbaefcf7
DE
5405 * NEWS: Mention "info auto-load-scripts".
5406 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5407 script_not_found_warning_printed.
5408 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5409 all callers updated. Initialize script_not_found_warning_printed.
5410 (get_auto_load_pspace_data_for_loading): New function.
5411 (maybe_add_script): New function.
5412 (source_section_scripts): Simplify. Only print one warning regardless
5413 of the number of auto-load scripts not found.
5414 (clear_section_scripts): Clear script_not_found_warning_printed.
5415 (auto_load_objfile_script): Record script in hash table.
5416 (count_matching_scripts): New function.
5417 (maybe_print_script): Renamed from maybe_print_section_script, all
5418 callers updated. Rewrite to use ui_out_*.
5419 (info_auto_load_scripts): Renamed from
5420 maintenance_print_section_scripts, all callers updated.
5421 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5422 renamed as "info auto-load-scripts".
5423
9930639c
TT
54242011-05-13 Tom Tromey <[email protected]>
5425
5426 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5427 (read_sleb128): Likewise.
5428
06826322
TT
54292011-05-13 Tom Tromey <[email protected]>
5430
5431 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5432 offset display.
5433
01124a23
DE
54342011-05-13 Doug Evans <[email protected]>
5435
5436 * linux-nat.c (debug_linux_nat_async): Delete.
5437 Replace all references to use debug_linux_nat instead.
5438 (show_debug_linux_nat_async): Delete.
5439 (sigchld_handler): Call ui_file_write_async_safe instead of
5440 fprintf_unfiltered.
5441 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5442 * ui-file.c (struct ui_file): New member to_write_async_safe.
5443 (null_file_write_async_safe): New function.
5444 (ui_file_write_async_safe): New function.
5445 (set_ui_file_write_async_safe): New function.
5446 (ui_file_new): Initialize to_write_async_safe.
5447 (stdio_file_write_async_safe): New function.
5448 (struct stdio_file): New member fd.
5449 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5450 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5451 fileno.
01124a23
DE
5452 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5453 (set_ui_file_write_async_safe): Declare.
5454 (ui_file_write_async_safe): Declare.
5455
72fc29ff
TT
54562011-05-13 Tom Tromey <[email protected]>
5457
5458 * utils.c (do_value_free): New function.
5459 (make_cleanup_value_free): Likewise.
5460 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5461 freeing correctly.
5462 (dwarf2_loc_desc_needs_frame): Call
5463 make_cleanup_value_free_to_mark.
5464 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5465 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5466 value_free_to_mark.
5467 (new_dwarf_expr_context): Don't call value_mark.
5468 * dwarf2-frame.c (execute_stack_op): Call
5469 make_cleanup_value_free_to_mark.
5470 * defs.h (make_cleanup_value_free): Declare.
5471
028d0ed5
TJB
54722011-05-13 Thiago Jung Bauermann <[email protected]>
5473
5474 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5475 prepare_execute_command.
5476 * top.c (prepare_execute_command): Return cleanup.
5477 (execute_command): Use cleanup from prepare_execute_command.
5478 * top.h (prepare_execute_command): Change prototype to return
5479 cleanup.
5480 * defs.h (struct value): Add opaque declaration.
5481 (make_cleanup_value_free_to_mark): Add prototype.
5482 * utils.c (do_value_free_to_mark): New function.
5483 (make_cleanup_value_free_to_mark): Likewise.
5484
b087e0ed
TT
54852011-05-12 Tom Tromey <[email protected]>
5486
5487 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5488 cast left-hand-side to unsigned.
5489
8a9b8146
TT
54902011-05-12 Tom Tromey <[email protected]>
5491
5492 PR gdb/12617:
5493 * value.h (value_from_contents): Declare.
5494 * value.c (value_from_contents): New function.
5495 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5496 (dwarf2_get_die_type): New function.
5497 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5498 (allocate_piece_closure): Acquire reference to values.
5499 (read_pieced_value): Update for value-based expressions.
5500 (write_pieced_value): Likewise.
5501 (free_pieced_value_closure): Call value_free as needed.
5502 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5503 Update for value-based expressions.
5504 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5505 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5506 <get_base_type>: New field.
5507 (struct dwarf_expr_piece) <v.value>: Change type.
5508 <v.regno>: New field.
5509 (struct dwarf_expr_context) <mark>: New field.
5510 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5511 (dwarf_expr_pop, dwarf_expr_push): Remove.
5512 (dwarf_expr_push_address): Declare.
5513 * dwarf2expr.c (dwarf_arch_cookie): New global.
5514 (struct dwarf_gdbarch_types): New.
5515 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5516 functions.
5517 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5518 static.
5519 (dwarf_expr_push_address): New function.
5520 (dwarf_expr_pop): Now static.
5521 (dwarf_expr_fetch): Change return type.
5522 (dwarf_require_integral): New function.
5523 (dwarf_expr_fetch): Simplify.
5524 (add_piece): Update.
5525 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5526 functions.
5527 (execute_stack_op) <sign_ext>: Remove.
5528 Use values for DWARF stack.
5529 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5530 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5531 New cases.
5532 (_initialize_dwarf2expr): New function.
5533 (add_piece): Update.
5534 (new_dwarf_expr_context): Set new field.
5535 (free_dwarf_expr_context): Call value_free_to_mark.
5536 * dwarf2-frame.c (no_base_type): New function.
5537 (execute_stack_op): Set get_base_type field. Update.
5538
e8d28ef4
TT
55392011-05-12 Tom Tromey <[email protected]>
5540
5541 * dwarf2read.c (read_common_block): Fix formatting.
5542
d248b706
KY
55432011-05-12 Kwok Cheung Yeung <[email protected]>
5544
5545 * breakpoint.c (disable_breakpoint): Disable all locations
5546 associated with a tracepoint on target if a trace experiment is
5547 running.
5548 (disable_command): Disable a specific tracepoint location on target if
5549 a trace experiment is running.
5550 (do_enable_breakpoint): Enable all locations associated with a
5551 tracepoint on target if a trace experiment is running.
5552 (enable_command) Enable a specific tracepoint location on target if a
5553 trace experiment is running.
5554 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5555 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5556 to_disable_tracepoint.
5557 * target.h: Add declaration of struct bp_location.
5558 (struct target_ops): Add new functions
5559 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5560 to_disable_tracepoint to target operations.
5561 (target_supports_enable_disable_tracepoint): New macro.
5562 (target_enable_tracepoint): New macro.
5563 (target_disable_tracepoint): New macro.
5564 * remote.c (struct remote_state): Add new field.
5565 (remote_enable_disable_tracepoint_feature): New.
5566 (remote_protocol_features): Add new entry.
5567 (remote_supports_enable_disable_tracepoint): New.
5568 (remote_enable_tracepoint): New.
5569 (remote_disable_tracepoint): New.
5570 (init_remote_ops): Add remote_enable_tracepoint,
5571 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5572 to remote operations.
5573 * tracepoint.c (start_tracing): Allow tracing to start without any
5574 tracepoints enabled with just a warning if they can be re-enabled
5575 later.
5576 * NEWS: Add news item for the new behaviour of the enable and disable
5577 GDB commands when applied to tracepoints.
5578 Add news items for the new remote packets QTEnable and QTDisable.
5579
cc88a640
JK
55802011-05-11 Jan Kratochvil <[email protected]>
5581
5582 * config.in: Regenerate.
5583 * configure: Regenerate.
5584 * configure.ac <--with-system-readline> (for readline_echoing_p):
5585 Remove the test.
5586 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5587 (tui_old_rl_echoing_p): ... here.
5588 (tui_setup_io): Rename extern declaration readline_echoing_p to
5589 _rl_echoing_p. Adjust assignments for the both renames.
5590
1f84b619
TJB
55912011-05-11 Thiago Jung Bauermann <[email protected]>
5592
5593 * symtab.c (lookup_symtab): Run cleanup before returning.
5594
74ac6d43
TT
55952011-05-11 Tom Tromey <[email protected]>
5596
5597 * dwarf2read.c (handle_data_member_location): New function.
5598 (dwarf2_add_field): Use it.
5599 (read_common_block): Likewise.
5600
5488dafb
JK
56012011-05-11 Jan Kratochvil <[email protected]>
5602
5603 Make addrs->SECTINDEX always defined.
5604 * symfile.c (relative_addr_info_to_section_offsets): Check for
5605 SECTINDEX -1, not for zero ADDR.
5606 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5607 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5608 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5609 on its validity.
5610
84e578fb
DE
56112011-05-10 Doug Evans <[email protected]>
5612
2471d008
DE
5613 * linux-thread-db.c: Whitespace cleanup.
5614 (try_thread_db_load_1): Fix comment.
5615
84e578fb
DE
5616 * linux-thread-db.c (set_libthread_db_search_path): New function.
5617 (_initialize_thread_db): Add setter for libthread-db-search-path.
5618
673c2bbe
DE
56192011-05-09 Doug Evans <[email protected]>
5620
478aac75
DE
5621 * NEWS: Mention --with-iconv-bin.
5622 * configure.ac: New option --with-iconv-bin.
5623 * configure: Regenerate.
5624 * config.in: Regenerate.
5625 * defs.h (relocate_gdb_directory): Declare.
5626 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5627 removed progname parameter, and exported. All callers updated.
5628 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5629
673c2bbe
DE
5630 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5631 adding missing call to restore_child_signals_mask.
5632
e4c8541f
PA
56332011-05-09 Pedro Alves <[email protected]>
5634
5635 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5636 parameter.
5637 * infrun.c (proceed, start_remote): Adjust.
5638 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5639 and adjust to not handle it.
5640 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5641 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5642 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5643 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5644 * windows-nat.c (do_initial_windows_stuff): Adjust.
5645 * infcmd.c (attach_command): Adjust.
5646 (notice_new_inferior): Adjust.
5647
a536c6d7
UW
56482011-05-06 Ulrich Weigand <[email protected]>
5649
5650 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5651 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5652 * spu-tdep.c (op_selb): Use correct value.
5653
7845b013
UW
56542011-05-06 Ulrich Weigand <[email protected]>
5655
5656 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5657 "parent" parameter to symbol_file_add_from_bfd call.
5658
9c06b0b4
TJB
56592011-05-06 Sergio Durigan Junior <[email protected]>
5660 Thiago Jung Bauermann <[email protected]>
5661
5662 Implement support for PowerPC BookE masked watchpoints.
5663 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5664 section.
5665 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5666 method. Initialize to NULL in all existing breakpoint_ops instances.
5667 (struct breakpoint) <hw_wp_mask>: New field.
5668 * breakpoint.c (is_masked_watchpoint): Add prototype.
5669 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5670 breakpoint's breakpoint_ops.works_in_software_mode if available.
5671 (watchpoints_triggered): Handle the case of a hardware masked
5672 watchpoint trigger.
5673 (watchpoint_check): Likewise.
5674 (works_in_software_mode_watchpoint): New function.
5675 (insert_masked_watchpoint, remove_masked_watchpoint)
5676 (resources_needed_masked_watchpoint)
5677 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5678 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5679 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5680 functions.
5681 (masked_watchpoint_breakpoint_ops): New structure.
5682 (watch_command_1): Check for the existence of the `mask' parameter.
5683 Set b->ops according to the type of hardware watchpoint being created.
5684 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5685 (ppc_linux_remove_mask_watchpoint)
5686 (ppc_linux_masked_watch_num_registers): New functions.
5687 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5688 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5689 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5690 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5691 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5692 (target_masked_watch_num_registers): New functions.
5693 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5694 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5695 methods.
5696 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5697 (target_masked_watch_num_registers): Add prototypes.
5698
8be455d7
JK
56992011-05-06 Jan Kratochvil <[email protected]>
5700
5701 PR 12573
5702 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5703 (producer_is_gcc_ge_4_0): New function.
5704 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5705 symtab->language code.
5706 (var_decode_location): Set cu->has_loclist.
5707 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5708 skip. Intialize force_skip from locations_valid. Move the prologue
5709 skipping code into two passes.
5710 * symtab.h (struct symtab): Make the primary field a bitfield. New
5711 field locations_valid.
5712
d8228535
JK
57132011-05-06 Jan Kratochvil <[email protected]>
5714
5715 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5716 (classify_inner_name): Call cp_lookup_nested_type with
5717 yylval.tsym.type.
5718 * cp-namespace.c (cp_lookup_nested_type): New variable
5719 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5720 type_name_no_tag_or_error with saved_parent_type.
5721 * dwarf2read.c (load_partial_dies): Read in any children of
5722 DW_TAG_typedef with complaint in such case.
5723 * gdbtypes.c (type_name_no_tag_or_error): New function.
5724 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5725 * valops.c (destructor_name_p): New comment for parameter type. Remove
5726 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5727 * value.h (destructor_name_p): Remove type const.
5728
1976171a
JK
57292011-05-06 Jan Kratochvil <[email protected]>
5730
5731 * symtab.c (compare_symbol_name): New function.
5732 (completion_list_add_name, expand_partial_symbol_name): Call it,
5733 remove the variable ncmp.
5734 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5735 gdb_assert it.
5736
a9634178
TJB
57372011-05-05 Thiago Jung Bauermann <[email protected]>
5738
5739 Demote to sw watchpoint only in update_watchpoint.
5740 * breakpoint.c (update_watchpoint): Change between software and
5741 hardware watchpoint for all kinds of watchpoints, not just
5742 read/write ones. Determine b->exact value here instead of
5743 in watch_command_1. Error out if there are not enough resources
5744 for a read or access hardware watchpoint.
5745 (watch_command_1): Remove logic of checking whether there are
5746 enough resources available, since update_watchpoint will do that
5747 work now. Don't set b->exact here. Catch exceptions thrown by
5748 update_watchpoint and delete the watchpoint.
5749 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5750 Use target_exact_watchpoints instead.
5751 (delete_breakpoint): Notify observers only if deleted watchpoint
5752 has a breakpoint number assigned to it.
5753
4c67c798
JJ
57542011-05-05 Janis Johnson <[email protected]>
5755
5756 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5757
a3fcb948
JG
57582011-05-05 Jerome Guitton <[email protected]>
5759
5760 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5761 New functions.
5762 (i386_stack_tramp_frame_unwind): New static global.
5763 (i386_match_pattern): New function, extracted from i386_match_insn.
5764 (i386_match_insn): Use i386_match_pattern.
5765 (i386_match_insn_block): New function.
5766 (i386_tramp_chain_in_reg_insns)
5767 (i386_tramp_chain_on_stack_insns): New static variables.
5768 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5769 of unwinders.
5770
4d393d60
JM
57712011-05-04 Joseph Myers <[email protected]>
5772
5773 * configure.host (xscale*): Don't handle target.
5774 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5775 handle targets.
5776
f70bd40b
YQ
57772011-05-04 Yao Qi <[email protected]>
5778
5779 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5780
dd3295ee
JB
57812011-05-03 Joel Brobecker <[email protected]>
5782
5783 Revert:
5784 | 2011-03-07 Michael Snyder <[email protected]>
5785 | * elfread.c (elf_symtab_read): Stop memory leak.
5786
90375a0e
PM
57872011-05-03 Pierre Muller <[email protected]>
5788
5789 * nto-tdep.c (nto_target): Replace deprecated call to
5790 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5791
d07205c2
JK
57922011-05-03 Jan Kratochvil <[email protected]>
5793
5794 Fix false GCC warning.
5795 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5796
1e718ff1
TJB
57972011-05-03 Thiago Jung Bauermann <[email protected]>
5798
5799 * breakpoint.c (update_watchpoint): Move code to change
5800 the enable state of breakpoint from here ...
5801 (do_enable_breakpoint): ... to here.
5802
35bef4fd
TT
58032011-04-26 Andrew Gontarek <[email protected]>
5804
78290264
PP
5805 * valprint.c (val_print_array_elements): Fixed poor performance
5806 of printing very large arrays with repeat_count_threshold set
5807 to unlimited. New comment.
35bef4fd 5808
38a714bb
TT
58092011-04-29 Tom Tromey <[email protected]>
5810
5811 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5812 (mi_parse): Likewise.
5813 * breakpoint.c (break_range_command): Use sizeof char*, not
5814 char**.
5815 (create_breakpoint): Likewise.
5816 (parse_breakpoint_sals): Likewise.
5817
eb73ad13
PA
58182011-04-29 Pedro Alves <[email protected]>
5819
5820 * linux-nat.c (linux_child_remove_fork_catchpoint)
5821 (linux_child_remove_vfork_catchpoint)
5822 (linux_child_remove_exec_catchpoint): New functions.
5823 (linux_target_install_ops): Install them.
5824
d65aec65
PM
58252011-04-29 Phil Muldoon <[email protected]>
5826
5827 PR mi/12531
5828
5829 * varobj.c (install_default_visualizer): Do not install a
5830 visualizer if the varobj is CPLUS_FAKE_CHILD.
5831 (construct_visualizer): Likewise.
5832
165195f4
JK
58332011-04-28 Jan Kratochvil <[email protected]>
5834
5835 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5836 case insensitive comparison.
5837
30852783
UW
58382011-04-28 Ulrich Weigand <[email protected]>
5839
5840 * infrun.c (proceed): Revert previous change.
5841 (resume): Instead, handle the case of signal delivery while stepping
5842 off a breakpoint location here, and only if software single-stepping
5843 is used. Handle nested signals.
5844
7ff120b4
YQ
58452011-04-28 Yao Qi <[email protected]>
5846
5847 * arm-tdep.c (copy_unmodified): Rename to ...
5848 (arm_copy_unmodified): .. this. New.
5849 (copy_preload): Move common part to ...
5850 (install_preload): .. this. New.
5851 (arm_copy_preload): New.
5852 (copy_preload_reg): Move common part to ...
5853 (install_preload_reg): ... this. New.
5854 (arm_copy_preload_reg): New.
5855 (copy_b_bl_blx): Move common part to ...
5856 (install_b_bl_blx): .. this. New.
5857 (arm_copy_b_bl_blx): New.
5858 (copy_bx_blx_reg): Move common part to ...
5859 (install_bx_blx_reg): ... this. New.
5860 (arm_copy_bx_blx_reg): New.
5861 (copy_alu_reg): Move common part to ...
5862 (install_alu_reg): ... this. New.
5863 (arm_copy_alu_reg): New.
5864 (copy_alu_shifted_reg): Move common part to ...
5865 (install_alu_shifted_reg): ... this. New.
5866 (copy_ldr_str_ldrb_strb): Move common part to ...
5867 (install_ldr_str_ldrb_strb): ... this. New.
5868 (arm_copy_ldr_str_ldrb_strb): New.
5869 (copy_copro_load_store): Move some common part to ...
5870 (install_copy_copro_load_store): ... this. New.
5871 (arm_copy_copro_load_store): New.
5872 (copy_svc): Delete.
5873 (arm_copy_svc): Renamed from copy_svc.
5874 (copy_undef): Delete.
5875 (arm_copy_undef): Renamed from copy_undef.
5876 (decode_ext_reg_ld_st): Delete.
5877 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5878 (decode_svc_copro): Delete.
5879 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5880 (copy_copro_load_store, copy_alu_imm): update callers.
5881 (copy_extra_ld_st, copy_block_xfer): Likewise.
5882 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5883 (decode_miscellaneous, decode_dp_misc): Likewise.
5884 (decode_ld_st_word_ubyte, decode_media): Likewise.
5885 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5886 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5887 (decode_unconditional, decode_miscellaneous): Likewise.
5888 (decode_media, decode_b_bl_ldmstm): Likewise.
5889 (arm_process_displaced_insn): Likewise..
5890 (decode_misc_memhint_neon): Delete.
5891 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5892 (decode_miscellaneous): Delete.
5893 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5894 (decode_dp_misc): Delete.
5895 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5896 (decode_ld_st_word_ubyte): Delete.
5897 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5898 (decode_media): Delete.
5899 (arm_decode_media): Renamed from decode_media.
5900 (decode_b_bl_ldmstm): Delete.
5901 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5902 (decode_ext_reg_ld_st): Delete.
5903 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5904 (decode_unconditional): Delete.
5905 (arm_decode_unconditional): Renamed from decode_unconditional.
5906
559a7a62
JK
59072011-04-27 Jan Kratochvil <[email protected]>
5908
5909 Case insensitive lookups implementation.
5910 * dwarf2read.c: Include ctype.h.
5911 (struct mapped_index): New field version.
5912 (mapped_index_string_hash): New parameter index_version. New comment
5913 for it. Call tolower appropriately.
5914 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5915 Choose the right index version for mapped_index_string_hash.
5916 (dwarf2_read_index): Support also the index version 5. Initialize the
5917 new struct mapped_index field version.
5918 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5919 (find_slot): Explain the version needs. Pass INT_MAX for the new
5920 parameter.
5921 (write_psymtabs_to_index): Produce version 5.
5922 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5923 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5924 * psymtab.c (lookup_partial_symbol): Find the
5925 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5926 entries.
5927 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5928 NAME lowercasing.
5929 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5930 (completion_list_add_name): New variable ncmp, initialize it, use it.
5931 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5932 * utils.c (strcmp_iw): Support case_sensitive_off.
5933 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5934 New function comment part. New variables saved_string1,
5935 saved_string2 and case_pass. Add a proper second pass.
5936
681bf369
JK
59372011-04-27 Jan Kratochvil <[email protected]>
5938
5939 Replace re_comp/re_exec by regcomp/regexec.
5940 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5941 (search_symbols_name_matches): Use them, use regexec.
5942 (search_symbols): New variable retval_chain, adjust the use of
5943 old_chain against it. Replace re_comp by regcomp. Use the new struct
5944 search_symbols_data fields, use regexec instead of re_exec.
5945
b11b1f88
JK
59462011-04-27 Jan Kratochvil <[email protected]>
5947
5948 Format the code for the next patch.
5949 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5950 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5951 New variables c1 and c2.
5952
2484c66b
UW
59532011-04-27 Ulrich Weigand <[email protected]>
5954
5955 * infrun.c (proceed): Do not single-step into signal delivery
5956 when stepping off a breakpoint location.
5957 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5958 (insert_step_resume_breakpoint_at_caller): Likewise.
5959 (insert_step_resume_breakpoint_at_sal): Likewise.
5960 (insert_longjmp_resume_breakpoint): Likewise.
5961
47423772
YQ
59622011-04-27 Yao Qi <[email protected]>
5963
5964 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5965
13bdd2e7
JB
59662011-04-27 Joel Brobecker <[email protected]>
5967
5968 * procfs.c (procfs_pass_signals): Fix advance declaration.
5969
2455069d
UW
59702011-04-27 Ulrich Weigand <[email protected]>
5971
5972 * target.h (struct target_ops): Remove to_notice_signals;
5973 add to_pass_signals.
5974 (target_notice_signals): Remove.
5975 (target_pass_signals): Add prototype.
5976 * target.c (update_current_target): Remove to_notice_signals;
5977 mention to_pass_signals.
5978 (target_pass_signals): New function.
5979 (debug_to_notice_signals): Remove.
5980 (setup_target_debug): Do not install debug_to_notice_signals.
5981
5982 * infrun.c (signal_pass): New global.
5983 (resume): Call target_pass_signals.
5984 (handle_inferior_event): Report all signals while stepping over
5985 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5986 are re-inserted when stepping over a signal handler.
5987 (signal_cache_update): New function.
5988 (signal_stop_update): Call it.
5989 (signal_print_update): Likewise.
5990 (signal_pass_update): Likewise.
5991 (handle_command): Call signal_cache_update and target_pass_signals
5992 instead of target_notice_signals.
5993 (_initialize_infrun): Initialize signal_pass.
5994
5995 * linux-nat.c (pass_mask): New global.
5996 (linux_nat_pass_signals): New function.
5997 (linux_nat_create_inferior): Report all signals initially.
5998 (linux_nat_attach): Likewise.
5999 (linux_nat_resume): Use pass_mask to decide whether to directly
6000 handle an inferior signal.
6001 (linux_nat_wait_1): Likewise.
6002 (linux_nat_add_target): Install to_pass_signals callback.
6003
6004 * nto-procfs.c (notice_signals): Remove.
6005 (procfs_resume): Do not call notice_signals.
6006 (procfs_notice_signals): Remove.
6007 (procfs_pass_signals): New function.
6008 (init_procfs_ops): Install to_pass_signals callback instead of
6009 to_notice_signals callback.
6010 (_initialize_procfs): Report all signals initially.
6011
6012 * procfs.c (procfs_notice_signals): Remove.
6013 (procfs_pass_signals): New function.
6014 (procfs_target): Install to_pass_signals callback instead of
6015 to_notice_signals callback.
6016 (register_gdb_signals): Remove.
6017 (procfs_debug_inferior): Report all signals initially.
6018 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6019
6020 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6021 parameters; use them instead of calling signal_..._state routines.
6022 (remote_notice_signals): Remove.
6023 (remote_start_remote): Report all signals initially.
6024 (remote_resume): Do not call remote_pass_signals.
6025 (_initialize_remote): Install to_pass_signals callback instead of
6026 to_notice_signals callback.
6027
46c6471b
PA
60282011-04-27 Pedro Alves <[email protected]>
6029
6030 * breakpoint.c (user_settable_breakpoint): Delete.
6031 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6032 (delete_command): Check user_breakpoint_p instead of looking at
6033 the breakpoint's type.
6034 (disable_command): Ditto.
6035 (enable_command): Ditto.
6036 (delete_trace_command): Use user_breakpoint_p instead of looking
6037 at the breakpoint number directly. When checking if there are
6038 user visible tracepoints, in order to know whether to ask the user
6039 for confirmation, check whether the breakpoint is actually a
6040 tracepoint.
6041
f6d90398
VP
60422011-04-27 Vladimir Prus <[email protected]>
6043
6044 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6045 compilation.
6046
8d3788bd
VP
60472011-04-27 Vladimir Prus <[email protected]>
6048
6049 MI breakpoint notifications.
6050
f33edef8
PP
6051 * annotate.c (breakpoint_changed): Adjust parameter type.
6052 * breakpoint.c (set_breakpoint_condition): Adjust to change
6053 in breakpoint_modified type.
6054 (breakpoint_set_commands): Likewise.
6055 (do_map_commands_command): Likewise.
6056 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6057 changed after bumping hit count.
6058 (bpstat_stop_status): Likewise.
6059 (print_one_breakpoint_location): Don't wrap in tuple here.
6060 (print_one_breakpoint): Always print individual locations.
6061 For locations, use unnamed tuple.
6062 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6063 has changed.
6064 (create_catchpoint, create_syscall_event_catchpoint): Call
6065 breakpoint_created obsever.
6066 (mention): Don't call breakpoint_created observer.
6067 (create_breakpoint_sal): Call breakpoint_created observer.
6068 (create_breakpoint, watch_command_1): Likewise.
6069 (create_ada_exception_breakpoint): Likewise.
6070 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6071 (locations_are_equal): New.
6072 (update_breakpoint_locations): If locations were changed, notify.
6073 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6074 Call breakpoint_modified observer.
6075
6076 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6077 (mi_cmd_break_insert): Don't set observers for modify and delete.
6078 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6079 (mi_breakpoint_created, mi_breakpoint_deleted)
6080 (mi_breakpoint_modified): New.
6081 (mi_interpreter_init): Hook the above.
6082 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6083 while -break-* commands are executing.
6084 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6085 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6086 (mi_redirect): New.
6087 (mi_ui_out_impl): Hook in mi_redirect.
6088 (mi_field_skip): True to the name, skip the field, don't output
6089 a field with an empty value.
6090
6091 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6092 (gdbpy_breakpoint_deleted): Adjust.
6093 * tui/tui-hooks.c (tui_event_create_breakpoint)
6094 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6095
a8f42b45
UW
60962011-04-26 Aleksandar Ristovski <[email protected]>
6097
6098 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6099 (procfs_remove_hw_watchpoint): Likewise.
6100
57e12211
TT
61012011-04-26 Michael Walle <[email protected]>
6102
6103 * remote.c (remote_start_remote): Ack packet after sending the
6104 interrupt sequence.
6105
af96c192
YQ
61062011-04-26 Yao Qi <[email protected]>
6107
f33edef8
PP
6108 * linux-nat.c: Move common macros to ...
6109 Include linux-ptrace.h.
6110 * common/linux-ptrace.h: ... here. New.
af96c192 6111
3e03848b
JK
61122011-04-25 Jan Kratochvil <[email protected]>
6113
6114 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6115 !objfile_has_partial_symbols. New comment.
6116 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6117 SYM_READ_PSYMBOLS is not present. Extend the comment.
6118 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6119
1ae0d051
JK
61202011-04-25 Jan Kratochvil <[email protected]>
6121
6122 * defs.h (ENUM_BITFIELD): Remove.
6123
03f2bd59
JK
61242011-04-24 Jan Kratochvil <[email protected]>
6125 Eli Zaretskii <[email protected]>
6126
6127 * NEWS: Document the new gdbserver --once option.
6128
4161fbb0
JZ
61292011-04-21 Jie Zhang <[email protected]>
6130
6131 * MAINTAINERS: Update my email address.
6132
bcb28afc
PM
61332011-04-21 Pierre Muller <[email protected]>
6134
6135 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6136 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6137 function call if __STDC_ISO_10646__ macro is defined.
6138 (intermediate_encoding): New prototype.
6139 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6140 to generate compile time error for unsupported gdb_wchar_t size.
6141 (ENDIAN_SUFFIX): New macro.
6142 (intermediate_encoding): New function.
6143
7b08b9eb
JK
61442011-04-20 Jan Kratochvil <[email protected]>
6145
6146 * ada-lang.c (struct add_partial_datum): Update the comment for
6147 expand_partial_symbol_name.
6148 (ada_add_partial_symbol_completions): Rename to ...
6149 (ada_expand_partial_symbol_name): ... here, change return type, update
6150 function comment, call symbol_completion_match instead of
6151 symbol_completion_add.
6152 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6153 and ada_expand_partial_symbol_name.
6154 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6155 FILE_MATCHER.
6156 (dw2_map_symbol_names): Remove.
6157 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6158 * psymtab.c (map_symbol_names_psymtab): Remove.
6159 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6160 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6161 order.
6162 (psym_functions): Unlist map_symbol_names_psymtab.
6163 (map_partial_symbol_names): Rename to ...
6164 (expand_partial_symbol_names): ... here, change the FUN type, call
6165 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6166 * psymtab.h (map_partial_symbol_names): Rename to ...
6167 (expand_partial_symbol_names): ... here, change the FUN type.
6168 * symfile.h (struct quick_symbol_functions): Update the description of
6169 expand_symtabs_matching. Remove map_symbol_names.
6170 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6171 (struct add_name_data): Update the comment for
6172 expand_partial_symbol_name.
6173 (add_partial_symbol_name): Rename to ...
6174 (expand_partial_symbol_name): ... here. Replace
6175 completion_list_add_name call by strncmp.
6176 (default_make_symbol_completion_list_break_on): Use now
6177 expand_partial_symbol_names and expand_partial_symbol_name.
6178 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6179
90476074
TT
61802011-04-20 Tom Tromey <[email protected]>
6181
6182 * dwarf2read.c (save_gdb_index_command): Replace format
6183 documentation with a pointer to the manual.
6184
c21236dc
PA
61852011-04-20 Pedro Alves <[email protected]>
6186
6187 * regcache.c: Include remote.h.
6188 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6189 (regcache_dump): Handle regcache_dump_remote.
6190 (maintenance_print_remote_registers): New function.
6191 (_initialize_regcache): Install "maint print remote-registers"
6192 command.
6193 * remote.c (map_regcache_remote_table): New function, factored out
6194 from ...
6195 (init_remote_state): ... here.
6196 (remote_register_number_and_offset): New.
6197 * remote.h (remote_register_number_and_offset): Declare.
6198
b78974c3
PA
61992011-04-20 Pedro Alves <[email protected]>
6200
6201 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6202 null_ptid, assume and allow a NULL address space, instead of
6203 asking the target for the ptid's address space.
6204 * infrun.c (ptid_is_pid): Remove assertion.
6205
7a9dd1b2
TT
62062011-04-19 Tom Tromey <[email protected]>
6207
6208 * windows-tdep.c (windows_xfer_shared_library):
6209 * windows-nat.c (get_module_name, windows_make_so):
6210 * v850-tdep.c (v850_handle_pushm):
6211 * utils.c (null_cleanup, gdb_realpath):
6212 * ui-out.c (get_next_header):
6213 * tracepoint.c (clear_traceframe_info):
6214 * symtab.c (lookup_symtab):
6215 * serial.h (struct serial_ops):
6216 * mipsread.c (read_alphacoff_dynamic_symtab):
6217 * infcmd.c (print_return_value):
6218 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6219 * f-exp.y (parse_number):
6220 * exceptions.c (catch_exceptions):
6221 * dummy-frame.c (dummy_frame_this_id):
6222 * defs.h (struct cleanup):
6223 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6224 * arm-tdep.c (arm_push_dummy_call):
6225 * amd64-tdep.h (amd64_collect_xsave):
6226 * amd64-tdep.c (amd64_collect_xsave):
6227 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6228 * README (typing): Remove duplicate words.
6229 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6230 * infrun.c (siginfo_value_read): Fix typo.
6231 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6232 * top.c (source_line_number): Add comma.
6233
9941e0c5
MK
62342011-04-19 Marc Khouzam <[email protected]>
6235
6236 * thread.c (any_live_thread_of_process): Prioritize threads
6237 that are not executing.
6238 * gdbthread.h (any_live_thread_of_process): Update comment
6239 as per above change.
6240
ed4b0e6a
AS
62412011-04-19 Andreas Schwab <[email protected]>
6242
6243 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6244 (scan_xcoff_symtab): Likewise.
6245
9b13a2db
PM
62462011-04-19 Pierre Muller <[email protected]>
6247
6248 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6249 inside if clause.
6250
1c6e1b0d
PM
62512011-04-19 Pierre Muller <[email protected]>
6252 Pedro Alves <[email protected]>
6253
6254 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6255 variables to simplify code and avoid == operator at end of
6256 line as this is against GNU coding standards.
6257
74de0234
PM
62582011-04-19 Pierre Muller <[email protected]>
6259
6260 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6261 lm_name to name_lm to avoid conflict with lm_name function.
6262
b23518f0
PM
62632011-04-19 Pierre Muller <[email protected]>
6264
6265 ARI fixes: Use only lowercase function name for static functions.
6266 * nto-tdep.c (LM_ADDR): Rename to...
6267 (lm_addr): New function name.
6268 (nto_relocate_section_addresses): Adapt to change above.
6269 * solib-sunos.c (LM_ADDR): Rename to...
6270 (lm_addr): New function name.
6271 (LM_NEXT): Rename to...
6272 (lm_next): New function name.
6273 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6274 function name changes above.
6275 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6276 (lm_addr_from_link_map): New function name.
6277 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6278 (has_lm_dynamic_from_link_map): New function name.
6279 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6280 (lm_dynamic_from_link_map): New function name.
6281 (LM_ADDR_CHECK): Rename to...
6282 (lm_addr_check): New function name.
6283 (LM_NEXT): Rename to...
6284 (lm_next): New function name.
6285 (LM_PREV): Rename to...
6286 (lm_prev): New function name.
6287 (LM_NAME): Rename to...
6288 (lm_name): New function name.
6289 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6290 (ignore_first_link_map_entry): New function name.
6291 (svr4_keep_data_in_core): Adapt to function name changes above.
6292 (svr4_current_sos): Likewise.
6293 (enable_break): Likewise.
6294 (svr4_relocate_section_addresses): Likewise.
6295
1448a0a2
PM
62962011-04-19 Pierre Muller <[email protected]>
6297
6298 ARI cleanup.
6299 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6300 sprintf. Simplify code and avoid loosing memory.
6301 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6302 (call0_frame_cache): Remove && operator from end of line.
6303
02835898
JK
63042011-04-17 Jan Kratochvil <[email protected]>
6305
6306 Fix libraries displacement if they change whether they were prelinked.
6307 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6308 does not match. Comment why.
6309
9a845ea2
JK
63102011-04-17 Jan Kratochvil <[email protected]>
6311
6312 * corelow.c: Include wrapper.h.
6313 (core_open): Call now gdb_target_find_new_threads.
6314 * wrapper.c: Include target.h.
6315 (gdb_target_find_new_threads): New.
6316 * wrapper.h (gdb_target_find_new_threads): New declaration.
6317
254f582e
JK
63182011-04-17 Jan Kratochvil <[email protected]>
6319
6320 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6321 even if !TARGET_HAS_EXECUTION.
6322
63524580
JK
63232011-04-17 Jan Kratochvil <[email protected]>
6324
6325 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6326 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6327 bfd_get_synthetic_symtab.
6328 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6329 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6330 parameter parent, remove the call to add_separate_debug_objfile.
6331 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6332 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6333 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6334 parent, new comment for it, call add_separate_debug_objfile for it.
6335 (symbol_file_add_separate): Pass objfile as the parameter parent,
6336 remove the call to add_separate_debug_objfile.
6337 (symbol_file_add_from_bfd): New parameter parent, pass it.
6338 (symbol_file_add): Pass NULL to the new parameter parent.
6339 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6340
90359a16
JK
63412011-04-17 Jan Kratochvil <[email protected]>
6342
6343 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6344 BSF_SYNTHETIC.
6345
626e7282
JK
63462011-04-17 Jan Kratochvil <[email protected]>
6347
6348 Fix Python access to inlined frames.
6349 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6350 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6351
cf31e6f9
TT
63522011-04-15 Tom Tromey <[email protected]>
6353
6354 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6355
c8d895f1
GB
63562011-04-15 Gary Benson <[email protected]>
6357
6358 * MAINTAINERS: Add myself to write-after-approval section.
6359
56a9aa1d
MF
63602011-04-14 Mike Frysinger <[email protected]>
6361
6362 * remote-sim.c (sim_command_completer): New function.
6363 (_initialize_remote_sim): Set completer to sim_command_completer.
6364
ba770c9c
TJB
63652011-04-13 Thiago Jung Bauermann <[email protected]>
6366
6367 * breakpoint.c (print_exception_catchpoint): Rename to ...
6368 (print_it_exception_catchpoint): ... this.
6369 (gnu_v3_exception_catchpoint_ops): Update with new name
6370 for print_it_exception_catchpoint.
6371
51bf2553
EBM
63722011-04-13 Edjunior Machado <[email protected]>
6373
6374 * MAINTAINERS: Add myself for write after approval privileges.
6375
d242658c
MP
63762011-04-13 Marek Polacek <[email protected]>
6377
6378 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6379
4a4106ca
TJB
63802011-04-13 Thiago Jung Bauermann <[email protected]>
6381
6382 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6383
26063d49
TJB
63842011-04-13 Thiago Jung Bauermann <[email protected]>
6385
6386 * breakpoint.c (save_breakpoints): Verify whether
6387 breakpoint_ops.print_recreate is defined before calling it.
6388
7782b183
GB
63892011-04-11 Gary Benson <[email protected]>
6390
6391 Fix failure with --enable-maintainer-mode.
6392 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6393
e8930875
JK
63942011-04-09 Jan Kratochvil <[email protected]>
6395
6396 Code cleanup.
6397 * symtab.c (search_symbols): Reorder the KIND description in the
6398 function comment. Remove the unused 4th element of types, types2,
6399 types3 and types4. New gdb_assert on KIND.
6400 (symtab_symbol_info): Remove the unused 4th element of classnames.
6401 New gdb_assert on KIND.
6402 * symtab.h (enum search_domain): New warning in the enum comment.
6403 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6404 TYPES_DOMAIN.
6405
b4f2f049
JK
64062011-04-09 Jan Kratochvil <[email protected]>
6407
6408 Fix crash of gdb save-index on a STABS file.
6409 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6410 PSYMTABS_ADDRMAP.
6411
60d5a603
JK
64122011-04-09 Jan Kratochvil <[email protected]>
6413
6414 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6415 * dwarf2read.c: Include ctype.h.
6416 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6417 functions.
6418 (dwarf2_add_field): Fix new_field->accessibility by calling
6419 dwarf2_default_access_attribute. Restructure setting accessibility
6420 vs. virtuality.
6421 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6422 is_private and is_protected by calling
6423 dwarf2_default_access_attribute.
6424
e0f68161
KB
64252011-04-08 Kevin Buettner <[email protected]>
6426
6427 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6428 to the initialization.
6429
2e1aae43
SE
64302011-04-08 Steve Ellcey <[email protected]>
6431
6432 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6433 initalization.
6434
c6ca3dab
PM
64352011-04-07 Pierre Muller <[email protected]>
6436
6437 Remove support for old Cygwin 1.5 versions.
6438 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6439 function on old Cygwin version.
6440 * windows-nat.c: Remove cygwin version check and always define
6441 __USEWIDE for Cygwin compilation.
6442
bd18283a
YQ
64432011-04-07 Yao Qi <[email protected]>
6444
6445 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6446 and TO.
6447 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6448 (arm_copy_svc): Remove parameters INSN and TO.
6449 (decode_svc_copro): Update caller.
6450 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6451 from function pointer `copy_svc_os'.
6452
8c8dba6d
YQ
64532011-04-07 Yao Qi <[email protected]>
6454
6455 * arm-tdep.c (cleanup_branch): Set a correct return address in
6456 LR for ARM and Thumb.
6457
59d7bcaf
JK
64582011-04-06 Jan Kratochvil <[email protected]>
6459
6460 Code cleanup.
6461 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6462 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6463 in the function comment, a new note on values compatibility.
6464 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6465 * symtab.h (SYMBOL_HASH_NEXT): New.
6466
e7db58ea
TJB
64672011-04-06 Thiago Jung Bauermann <[email protected]>
6468
6469 * ppc-linux-nat.c (check_condition): Add len output parameter.
6470 Set it based on the memory region referenced in the condition
6471 expression. Update all callers.
6472
9f743ef6
JK
64732011-04-06 Jan Kratochvil <[email protected]>
6474
6475 Fix crash regression on systems featuring .gdb_index.
6476 * objfiles.c (free_objfile): Move the
6477 forget_cached_source_info_for_objfile call earlier. Comment it.
6478 Extend the comment for objfile_free_data.
6479
9182c5bc
JK
64802011-04-06 Jan Kratochvil <[email protected]>
6481
6482 Fix regression of displaying the debug format.
6483 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6484 subfile.
6485
04bd08de
TT
64862011-04-04 Tom Tromey <[email protected]>
6487
6488 * cli/cli-interp.c (struct captured_execute_command_args):
6489 Remove.
6490 (do_captured_execute_command): Remove.
6491 (safe_execute_command): Use TRY_CATCH.
6492 * cli/cli-script.c (struct wrapped_read_command_file_args):
6493 Remove.
6494 (wrapped_read_command_file): Remove.
6495 (script_from_file): Use TRY_CATCH.
6496 * exceptions.c (catch_exception): Remove.
6497 * exceptions.h (catch_exception): Remove.
6498 (deprecated_throw_reason): Update comment.
6499 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6500 argument to 'context'.
6501 (mi_execute_command): Use TRY_CATCH.
6502 * remote.c (struct start_remote_args): Remove.
6503 (remote_start_remote): Update; change arguments.
6504 (remote_open_1): Use TRY_CATCH.
6505
58438ac1
TT
65062011-04-04 Tom Tromey <[email protected]>
6507
6508 * tracepoint.c (scope_info): Update.
6509 * symtab.c (decode_line_spec): Update.
6510 * python/python.c (gdbpy_decode_line): Update.
6511 * linespec.h (decode_line_1): Update.
6512 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6513 (decode_compound, find_method, symtab_from_filename)
6514 (decode_variable): Likewise.
6515 * cli/cli-cmds.c (edit_command): Update.
6516 (list_command): Update.
6517 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6518 argument.
6519 (create_breakpoint): Update.
6520 (until_break_command): Update.
6521 (addr_string_to_sals): Update.
6522 (decode_line_spec_1): Update.
6523
b78a6381
TT
65242011-04-04 Tom Tromey <[email protected]>
6525
6526 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6527 (do_captured_parse_breakpoint): Remove.
6528 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6529 Use TRY_CATCH directly.
6530
00174a86
TT
65312011-04-04 Tom Tromey <[email protected]>
6532
6533 * symtab.h (free_symtab): Remove.
6534 (forget_cached_source_info_for_objfile): Declare.
6535 * symmisc.c (free_symtab): Remove.
6536 * source.c (forget_cached_source_info_for_objfile): New function.
6537 (forget_cached_source_info): Use it.
6538 * objfiles.c (free_objfile): Simplify check before calling
6539 clear_current_source_symtab_and_line. Call
6540 forget_cached_source_info_for_objfile.
6541
30cc903e
TT
65422011-04-04 Tom Tromey <[email protected]>
6543
6544 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6545 (new_symtab): Don't set `free_code' on symtab.
6546 (new_linetable): Properly handle size==0.
6547 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6548 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6549 free_func.
6550 * jv-lang.c (struct jv_per_objfile_data): New.
6551 (jv_per_objfile_free): Free the data.
6552 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6553 (get_java_class_symtab): Set the `dict' field on the
6554 jv_per_objfile_data.
6555 (free_class_block): Remove.
6556 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6557 the symtab.
6558
0c2e6019
TT
65592011-04-04 Tom Tromey <[email protected]>
6560
6561 * symfile.c (reread_symbols): Update.
6562 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6563 field.
6564 * objfiles.c (allocate_objfile): Update.
6565 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6566 declare.
6567 * cp-namespace.c (lookup_symbol_file): Don't call
6568 lookup_possible_namespace_symbol.
6569 (initialize_namespace_symtab, get_possible_namespace_block)
6570 (free_namespace_block, cp_check_possible_namespace_symbols)
6571 (check_possible_namespace_symbols_loop)
6572 (check_one_possible_namespace_symbol)
6573 (lookup_possible_namespace_symbol): Remove.
6574 (maintenance_cplus_namespace): Replace with notice.
6575 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6576
554d387d
TT
65772011-04-04 Tom Tromey <[email protected]>
6578
6579 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6580 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6581 * symmisc.c (free_symtab): Don't free debugformat.
6582 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6583 (record_debugformat, record_producer): Document.
6584 * buildsym.c (end_symtab): Don't save debugformat and producer
6585 names on obstack.
6586 (end_symtab): Don't free debugformat and producer fields.
6587 (record_debugformat): Don't call xstrdup.
6588 (record_producer): Likewise.
6589
d4d4db8a
TT
65902011-04-04 Tom Tromey <[email protected]>
6591
6592 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6593 (source_line_charpos, source_charpos_line): Remove.
6594
8903c50d
TT
65952011-04-04 Tom Tromey <[email protected]>
6596
6597 * symtab.h (domain_enum): Split in two...
6598 (enum search_domain): New.
6599 (search_symbols): Update.
6600 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6601 redundant declarations.
6602 (search_symbols): Change 'kind' argument to search_domain.
6603 Update.
6604 (print_symbol_info): Likewise.
6605 (symtab_symbol_info): Likewise.
6606 * symfile.h (struct quick_symbol_functions)
6607 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6608 <expand_symtabs_matching>: Likewise.
6609 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6610 (expand_symtabs_matching_via_partial): Update.
6611 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6612 (dw2_expand_symtabs_for_function): Update.
6613 * block.h: Moved anonymous enum...
6614 * defs.h (enum block_enum): ... here. Now named.
6615
d9351f5f 66162011-04-03 Joel Brobecker <[email protected]>
6617
6618 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6619 * version.in: Bump version to 7.3.50.20110403-cvs.
6620
d6e00af6
JB
66212011-04-03 Joel Brobecker <[email protected]>
6622
6623 * NEWS: Create a new section for the next release branch.
6624 Rename the section of the current branch, now that it has
6625 been cut.
6626
2b9e5ea6
UW
66272011-04-01 Ulrich Weigand <[email protected]>
6628
6629 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6630 for "fpscr" in target description.
6631
0cf03b49
JK
66322011-04-01 Jan Kratochvil <[email protected]>
6633
6634 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6635 initialize it. Delay HASH initialization. Strip the part after open
6636 parenthesis for languages with qualifiers. Call do_cleanups.
6637
5d901a73
TT
66382011-04-01 Tom Tromey <[email protected]>
6639
6640 * utils.c (report_command_stats): Don't print `-' for negative
6641 number.
6642
b0dd7688
JB
66432011-04-01 Eric Botcazou <[email protected]>
6644
6645 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6646 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6647 typedefs.
6648
956a9fb9
JB
66492011-04-01 Joel Brobecker <[email protected]>
6650
6651 * breakpoint.h (bpdisp_text): Add declaration.
6652 * breakpoint.c (bpdisp_text): Make non-static.
6653 * ada-lang.c: #include "mi/mi-common.h".
6654 (print_it_exception): Rewrite to improve GDB/MI output.
6655
3352110b
PA
66562011-04-01 Pedro Alves <[email protected]>
6657
6658 * arm-tdep.h (struct address_space): Add forward declaration.
6659
18819fa6
UW
66602011-04-01 Ulrich Weigand <[email protected]>
6661
6662 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6663 * arm-tdep.c (arm_override_mode): New global.
6664 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6665 execution mode heuristics.
6666 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6667 second single-step breakpoint if needed, using
6668 arm_insert_single_step_breakpoint.
6669 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6670 ARM execution mode, do not call thumb_get_next_pc_raw.
6671 (arm_get_next_pc): Encode execution mode in return value. Call
6672 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6673 (arm_insert_single_step_breakpoint): New function.
6674 (arm_software_single_step): Call it.
6675 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6676 argument to return execution mode of sigreturn target.
6677 (arm_linux_syscall_next_pc): Use it.
6678 (arm_linux_copy_svc): Update call.
6679 (arm_linux_software_single_step): Call
6680 arm_insert_single_step_breakpoint.
6681
a6e293d1
JK
66822011-03-31 Jan Kratochvil <[email protected]>
6683
6684 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6685 the comment.
6686
a4c8e806
TT
66872011-03-31 Tom Tromey <[email protected]>
6688
6689 * varobj.c (update_dynamic_varobj_children): Properly handle
6690 errors from iterator.
6691
df5c6c50
JK
66922011-03-31 Jan Kratochvil <[email protected]>
6693
6694 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6695 struct linkage name twice.
6696
1dae3efc
TT
66972011-03-31 Tom Tromey <[email protected]>
6698
6699 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6700 missing ">" to message.
6701
f4f7ab05
TT
67022011-03-31 Tom Tromey <[email protected]>
6703
6704 * varobj.c (instantiate_pretty_printer): Remove duplicate
6705 'return'.
6706
fcf250e2
UW
67072011-03-31 Ulrich Weigand <[email protected]>
6708
6709 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6710 if neither saved value nor register available (e.g. signal frame).
6711
ee6436e3
TJB
67122011-03-31 Thiago Jung Bauermann <[email protected]>
6713
6714 * macroexp.c (expand): Avoid uninitialized variable
6715 compiler warning.
6716
423f41a5
TJB
67172011-03-31 Thiago Jung Bauermann <[email protected]>
6718
6719 * breakpoint.c (break_range_command): Fix typo in comment.
6720
f1310107
TJB
67212011-03-31 Thiago Jung Bauermann <[email protected]>
6722 Sergio Durigan Junior <[email protected]>
6723
6724 Implement support for PowerPC BookE ranged breakpoints.
6725 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6726 * breakpoint.h (struct bp_target_info) <length>: New member
6727 variable.
6728 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6729 instead of struct breakpoint as argument, and also add ASPACE
6730 and BP_ADDR arguments. Update all callers.
6731 (struct breakpoint_ops) <print_one_detail>: New method.
6732 (struct breakpoint) <addr_string_range_end>: New member variable.
6733 * breakpoint.c (breakpoint_location_address_match): Add function
6734 prototype.
6735 (insert_bp_location): Set bl->target_info.length.
6736 (breakpoint_here_p): Call breakpoint_location_address_match.
6737 (moribund_breakpoint_here_p): Likewise.
6738 (regular_breakpoint_inserted_here_p): Likewise.
6739 (breakpoint_thread_match): Likewise.
6740 (bpstat_stop_status): Likewise.
6741 (bpstat_check_location): Move call to
6742 breakpoint_ops.breakpoint_hit to the top.
6743 (print_one_breakpoint_location): Call
6744 breakpoint_ops.print_one_detail if available.
6745 (breakpoint_address_match_range): New function.
6746 (breakpoint_location_address_match): Likewise.
6747 (breakpoint_locations_match): Compare the length field of the
6748 locations too.
6749 (hw_breakpoint_used_count): Count resources used by all locations
6750 in a breakpoint, and use breakpoint_ops.resources_needed if
6751 available.
6752 (breakpoint_hit_ranged_breakpoint): New function.
6753 (resources_needed_ranged_breakpoint): Likewise.
6754 (print_it_ranged_breakpoint): Likewise.
6755 (print_one_ranged_breakpoint): Likewise.
6756 (print_one_detail_ranged_breakpoint): Likewise.
6757 (print_mention_ranged_breakpoint): Likewise.
6758 (print_recreate_ranged_breakpoint): Likewise.
6759 (ranged_breakpoint_ops): New structure.
6760 (find_breakpoint_range_end): New function.
6761 (break_range_command): Likewise.
6762 (delete_breakpoint): Free addr_string_range_end.
6763 (update_breakpoint_locations): Add SALS_END argument. Update
6764 all callers. Calculate breakpoint length if a non-zero SALS_END
6765 is given. Call breakpoint_locations_match instead of
6766 breakpoint_address_match.
6767 (reset_breakpoint): Find SaL of the end of the range if B is a
6768 ranged breakpoint.
6769 (_initialize_breakpoint): Register break-range command.
6770 * defs.h (print_core_address): Add function prototype.
6771 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6772 function.
6773 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6774 (ppc_linux_remove_hw_breakpoint): Likewise.
6775 (_initialize_ppc_linux_nat): Initialize
6776 to_ranged_break_num_registers.
6777 * target.c (update_current_target): Add comment about
6778 to_ranged_break_num_registers.
6779 (target_ranged_break_num_registers): New function.
6780 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6781 New method.
6782 (target_ranged_break_num_registers): Add function prototype.
6783 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6784 * utils.c (print_core_address): ... here.
6785
02d20e4a
UW
67862011-03-31 Ulrich Weigand <[email protected]>
6787
6788 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6789 variable compiler warning.
6790
ef23e705
TJB
67912011-03-30 Thiago Jung Bauermann <[email protected]>
6792
6793 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6794 code from here ...
6795 (re_set_breakpoint): ... to here ...
6796 (addr_string_to_sals): ... and here.
6797
311e6ab3
PM
67982011-03-29 Pierre Muller <[email protected]>
6799
6800 * Makefile.in (SFILES): Add missing C sources.
6801 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6802 Add missing headers.
6803
acd1d99c
MF
68042011-03-29 Mike Frysinger <[email protected]>
6805
6806 * .gitignore: New file.
6807
66ee2731
MF
68082011-03-29 Mike Frysinger <[email protected]>
6809
6810 * NEWS: Mention new cfi device simulation.
6811
53832f31
TT
68122011-03-29 Tom Tromey <[email protected]>
6813
6814 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6815 otherwise anonymous types.
6816 (dwarf2_name): Likewise.
6817 * valops.c (value_struct_elt_for_reference): Refine artificial
6818 type logic. Call error if j==-1.
6819
09b58708
JK
68202011-03-29 Andreas Tobler <[email protected]>
6821
6822 Fix false GCC warning.
6823 * infcall.c (find_function_addr): Initialize funaddr.
6824
6023c606
PM
68252011-03-29 Pierre Muller <[email protected]>
6826
6827 Fix mingw compilation with --enable-targets=all.
6828 * remote-mips.c (gdb_usleep.h): Include header.
6829 (mips_enter_debug): Use gdb_usleep instead of sleep.
6830
0e30163f
JK
68312011-03-28 Jan Kratochvil <[email protected]>
6832
6833 Support resolution of STT_GNU_IFUNC via breakpoints.
6834 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6835 bp_gnu_ifunc_resolver_return.
6836 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6837 the loop. Support bp_gnu_ifunc_resolver and
6838 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6839 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6840 breakpoints.
6841 (bptype_string, print_one_breakpoint_location): Support
6842 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6843 (user_settable_breakpoint): Return true also for
6844 bp_gnu_ifunc_resolver.
6845 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6846 bp_gnu_ifunc_resolver_return.
6847 (set_breakpoint_location_function): New parameter explicit_loc,
6848 describe it. Call find_pc_partial_function_gnu_ifunc with new
6849 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6850 EXPLICIT_LOC is not set.
6851 (set_raw_breakpoint): Set EXPLICIT_LOC for
6852 set_breakpoint_location_function.
6853 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6854 set_breakpoint_location_function.
6855 (mention): Support bp_gnu_ifunc_resolver and
6856 bp_gnu_ifunc_resolver_return.
6857 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6858 set_breakpoint_location_function.
6859 (update_breakpoint_locations): Remove static.
6860 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6861 bp_gnu_ifunc_resolver_return.
6862 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6863 bp_gnu_ifunc_resolver_return.
6864 (update_breakpoint_locations): New declaration.
6865 * elfread.c: Include gdbthread.h and regcache.h.
6866 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6867 functions.
6868 (elf_gnu_ifunc_fns): Install them.
6869 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6870 (stub_gnu_ifunc_resolver_return_stop): New functions.
6871 (stub_gnu_ifunc_fns): Install them.
6872 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6873 and gnu_ifunc_resolver_return_stop.
6874 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6875
07be84bf
JK
68762011-03-28 Jan Kratochvil <[email protected]>
6877
6878 STT_GNU_IFUNC reader implementation.
6879 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6880 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6881 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6882 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6883 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6884 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6885 (elf_gnu_ifunc_resolve_addr): New.
6886 (elf_symfile_read): Call elf_rel_plt_read.
6887 (elf_gnu_ifunc_fns): New.
6888 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6889 Install elf_gnu_ifunc_fns.
6890 * infcall.c (find_function_return_type): New function.
6891 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6892 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6893 (stub_gnu_ifunc_resolve_name): New functions.
6894 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6895 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6896 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6897
300f8e10
JK
68982011-03-28 Jan Kratochvil <[email protected]>
6899
6900 Code cleanup for later STT_GNU_IFUNC support.
6901 * infcall.c (find_function_addr): Remove variable code, use explicit
6902 dereferences for it. Move VALUE_TYPE initialization later.
6903
11c81455
JK
69042011-03-28 Jan Kratochvil <[email protected]>
6905
6906 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6907 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6908 (clear_pc_function_cache): Clear it.
6909 (find_pc_partial_function): Rename to ...
6910 (find_pc_partial_function_gnu_ifunc): ... this function. New
6911 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6912 (find_pc_partial_function): New wrapper for this function.
6913 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6914
0875794a
JK
69152011-03-28 Jan Kratochvil <[email protected]>
6916
6917 GDB internal type support for STT_GNU_IFUNC.
6918 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6919 (elf_symtab_read): Set mst_text_gnu_ifunc for
6920 BSF_GNU_INDIRECT_FUNCTION.
6921 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6922 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6923 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6924 nodebug_got_plt_symbol.
6925 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6926 (TYPE_GNU_IFUNC): New.
6927 (struct main_type): New field flag_gnu_ifunc.
6928 (struct builtin_type): New field builtin_func_func.
6929 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6930 nodebug_got_plt_symbol.
6931 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6932 (in_gnu_ifunc_stub): New.
6933 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6934 mst_text_gnu_ifunc.
6935 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6936 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6937 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6938 in_gnu_ifunc_stub.
6939 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6940 * symtab.c (search_symbols): Likewise.
6941 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6942 and mst_slot_got_plt.
6943 (in_gnu_ifunc_stub): New declaration.
6944
d0fb5eae
JK
69452011-03-28 Jan Kratochvil <[email protected]>
6946
6947 Support a ring of related breakpoints.
6948 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6949 other functions, add gdb_assert.
6950 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6951 watchpoint_del_at_next_stop.
6952 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6953 (bpstat_stop_status): Handle ring in related_breakpoint.
6954 (set_raw_breakpoint_without_location): Initialize ring in
6955 related_breakpoint.
6956 (delete_breakpoint): Handle ring in related_breakpoint, use
6957 watchpoint_del_at_next_stop.
6958 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6959
9cded63f
TT
69602011-03-28 Tom Tromey <[email protected]>
6961
6962 PR symtab/12441:
6963 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6964 with `language_minimal'.
6965
467d42c4
UW
69662011-03-25 Ulrich Weigand <[email protected]>
6967
6968 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6969 instead of checking for STT_ARM_TFUNC symbol type.
6970
62853458
TT
69712011-03-25 Tom Tromey <[email protected]>
6972
6973 * linespec.c (symbol_found): Restore line-based result for
6974 non-LOC_LABEL symbols.
6975
a7417d46
KT
69762011-03-25 Kai Tietz <[email protected]>
6977
6978 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6979 instead of strcmp for comparison.
6980 (tui_source_is_displayed): Likewise.
6981 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6982
55f1336d
TT
69832011-03-24 Mark Wielaard <[email protected]>
6984
f33edef8
PP
6985 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6986 complaint.
6987 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6988 (find_partial_die_in_comp_unit): Likewise in comment.
6989 (read_attribute_value): Likewise.
6990 (lookup_die_type): Likewise.
6991 (dwarf_form_name): Likewise.
6992 (dump_die_shallow): Likewise.
6993 (follow_die_ref_or_sig): Likewise.
55f1336d 6994
9ef07c8c
TT
69952011-03-24 Tom Tromey <[email protected]>
6996
6997 PR breakpoints/11816:
6998 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6999 (decode_compound): Update.
7000 (find_function_symbol): New function.
7001 (decode_dollar): Update.
7002 (decode_label): Add 'function_symbol' parameter. Handle
7003 function-relative labels.
7004 (decode_variable): Update.
7005 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7006 not its line. Set `special_display' and canonical name for
7007 labels.
7008
56435ebe
TT
70092011-03-24 Tom Tromey <[email protected]>
7010
7011 * linespec.h (struct linespec_result) <special_display>: New
7012 field.
7013 * breakpoint.h (struct breakpoint) <display_canonical>: New
7014 field.
7015 * breakpoint.c (print_breakpoint_location): Respect
7016 display_canonical.
7017 (create_breakpoint_sal): Add 'display_canonical' parameter.
7018 (create_breakpoints_sal): Update.
7019 (create_breakpoint): Update.
7020
7efd8fc2
TT
70212011-03-24 Tom Tromey <[email protected]>
7022
7023 * symtab.c (decode_line_spec): Update.
7024 * linespec.c (build_canonical_line_spec): Change type of
7025 'canonical'.
7026 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7027 (find_method, decode_all_digits, decode_dollar, decode_label)
7028 (symbol_found): Likewise.
7029 (init_linespec_result): New function.
7030 * breakpoint.c (struct captured_parse_breakpoint_args)
7031 <canonical_p>: New field, replaces addr_string_p.
7032 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7033 'addr_string'.
7034 (parse_breakpoint_sals): Likewise.
7035 (do_captured_parse_breakpoint): Update.
7036 (create_breakpoint): Use struct linespec_result.
7037 (until_break_command): Update.
7038 (breakpoint_re_set_one): Update.
7039 (decode_line_spec_1): Update.
7040 * linespec.h (struct linespec_result): New.
7041 (init_linespec_result): Declare.
7042
788c8b10
PA
70432011-03-23 Pedro Alves <[email protected]>
7044
7045 * regcache.c (regcache_raw_read): If the target didn't supply a
7046 given raw register, mark it as unavailable.
7047
0ba1096a
KT
70482011-03-23 Kai Tietz <[email protected]>
7049
7050 * breakpoint.c (clear_command): Use filename_cmp
7051 instead of strcmp for comparison.
7052 * buildsym.c (watch_main_source_file_lossage): Likewise.
7053 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7054 checking just for slash.
7055 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7056 strrchr and filename_cmp instead of strcmp for filenames.
7057 (add_old_header_file): Use filename_cmp
7058 instead of strcmp for comparison.
7059 * exec.c (exec_set_section_address): Likewise.
7060 * macrotab.c (macro_lookup_inclusion): Likewise.
7061 (macro_lookup_inclusion): Likewise.
7062 * elfread.c (_initialize_elfread): Likewise.
7063 (elfstab_offset_sections): Likewise.
7064 (elfstab_offset_sections): Use lbasename instead of
7065 strrchr.
7066 * mdebugread.c (parse_partial_symbols): Likewise.
7067 (arse_partial_symbols): Use filename_(n)cmp instead of
7068 str(n)cmp for comparison.
7069 * minsyms.c (lookup_minimal_symbol): Likewise.
7070 * psymtab.c (read_psymtabs_with_filename): Likewise.
7071 * solib.c (solib_read_symbols): Likewise.
7072 (reload_shared_libraries_1): Likewise.
7073 * symmisc.c (maintenance_print_symbols): Likewise.
7074 * symfile.c (separate_debug_file_exists): Likewise.
7075 (reread_symbols): Likewise.
7076 (find_separate_debug_file_by_debuglink): Likewise.
7077 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7078 * source.c (add_path): Likewise.
7079 * symtab.c (filename_seen): Likewise.
7080 (file_matches): Likewise.
7081 (print_symbol_info): Likewise.
7082 (maybe_add_partial_symtab_filename): Likewise.
7083 (make_source_files_completion_list): Likewise.
7084 * xml-syscall.c (init_sysinfo): Likewise.
7085 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7086 IS_DIR_SEPARATOR for checking for trailing path separator.
7087
dd90784c
JK
70882011-03-22 Jan Kratochvil <[email protected]>
7089
7090 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7091 label abort_expression.
7092 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7093 DWARF_VALUE_OPTIMIZED_OUT.
7094
3167638f
JK
70952011-03-22 Jan Kratochvil <[email protected]>
7096
7097 Code cleanup.
7098 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7099 to linkage_name. Invert its value. Update the function comment.
7100 (c_type_print_varspec_suffix): Invert it at the caller.
7101 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7102
ce406537
PA
71032011-03-22 Pedro Alves <[email protected]>
7104
7105 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7106 errors when reading the `stop_pc'.
7107 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7108 get_frame_pc.
7109
da5d4055
PM
71102011-03-22 Phil Muldoon <[email protected]>
7111
7112 * NEWS: Document gdb.Write stream keyword.
7113
29e0eb9c
JK
71142011-03-22 Jan Kratochvil <[email protected]>
7115
7116 Revert:
7117 2011-03-21 Jan Kratochvil <[email protected]>
7118 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7119 (dwarf2_add_field): Fix new_field->accessibility for
7120 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7121
05775840
PM
71222011-03-22 Phil Muldoon <[email protected]>
7123
f33edef8 7124 PR python/12183
05775840
PM
7125
7126 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7127 other error classes. Do not print stack trace.
7128
a0cb7835
JK
71292011-03-21 Jan Kratochvil <[email protected]>
7130
7131 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7132 (dwarf2_add_field): Fix new_field->accessibility for
7133 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7134
d19f7eee
UW
71352011-03-21 Ulrich Weigand <[email protected]>
7136
7137 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7138 encountering a load via a non-SP register.
7139
4a2fbb50
UW
71402011-03-21 Ulrich Weigand <[email protected]>
7141
7142 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7143 field in returned unwinder.
7144
3489610d
JB
71452012-03-21 Jan Kratochvil <[email protected]>
7146
7147 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7148
8c1a34e7
JB
71492012-03-21 Joel Brobecker <[email protected]>
7150
7151 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7152 of xmalloc.
7153
8fbca658
PA
71542012-03-18 Pedro Alves <[email protected]>
7155
7156 * frame.c (frame_unwind_register): Throw an error if unwinding the
7157 register failed.
7158 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7159 an unwind stop reason.
7160 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7161 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7162 UNWIND_UNAVAILABLE>: New.
7163 * inline-frame.c (inline_frame_unwind): Install
7164 default_frame_unwind_stop_reason.
7165 * frame-unwind.c: Include "exceptions.h".
7166 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7167 (default_frame_unwind_stop_reason): New.
7168 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7169 (default_frame_unwind_stop_reason): Declare.
7170 (struct frame_unwind) <stop_reason>: New function pointer.
7171
7172 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7173 * dwarf2-frame.c: Include exceptions.h.
7174 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7175 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7176 computing the CFA. If such an error was thrown, set
7177 unavailable_retaddr.
7178 (dwarf2_frame_unwind_stop_reason): New.
7179 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7180 unavailable.
7181 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7182 (dwarf2_signal_frame_unwind): Ditto.
7183
7184 * amd64-tdep.c: Include "exceptions.h".
7185 (struct amd64_frame_cache): New field "base_p".
7186 (amd64_init_frame_cache): Clear it.
7187 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7188 Avoid reading registers with functions that throw if the register
7189 is not necessary to compute the frame base.
7190 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7191 swallowing NOT_AVAILABLE_ERROR.
7192 (amd64_frame_unwind_stop_reason): New.
7193 (amd64_frame_this_id): Don't build a frame id if the frame base
7194 was unavailable.
7195 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7196 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7197 base_p if the frame base was computable.
7198 (amd64_sigtramp_frame_unwind_stop_reason): New.
7199 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7200 frame base was unavailable.
7201 (amd64_sigtramp_frame_unwind): Install
7202 amd64_sigtramp_frame_unwind_stop_reason.
7203 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7204 base_p if the frame base was computable.
7205 (amd64_epilogue_frame_unwind_stop_reason): New.
7206 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7207 frame base was unavailable.
7208 (amd64_epilogue_frame_unwind): Install
7209 amd64_epilogue_frame_unwind_stop_reason.
7210 * i386-tdep.c: Include "exceptions.h".
7211 (struct i386_frame_cache): New field "base_p".
7212 (i386_init_frame_cache): Clear it.
7213 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7214 Avoid reading registers with functions that throw if the register
7215 is not necessary to compute the frame base.
7216 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7217 swallowing NOT_AVAILABLE_ERROR.
7218 (i386_frame_unwind_stop_reason): New.
7219 (i386_frame_this_id): Don't build a frame id if the frame base was
7220 unavailable.
7221 (i386_frame_prev_register): Handle unavailable SP.
7222 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7223 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7224 base_p if the frame base was computable.
7225 (i386_epilogue_frame_unwind_stop_reason): New.
7226 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7227 base was unavailable.
7228 (i386_epilogue_frame_unwind): Install
7229 i386_epilogue_frame_unwind_stop_reason.
7230 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7231 base_p if the frame base was computable.
7232 (i386_sigtramp_frame_unwind_stop_reason): New.
7233 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7234 base was unavailable.
7235 (i386_sigtramp_frame_unwind): Install
7236 i386_sigtramp_frame_unwind_stop_reason.
7237 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7238 type's size, not the register's.
7239 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7240
7241 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7242 default_frame_unwind_stop_reason.
7243 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7244 (alpha_heuristic_frame_unwind): Ditto.
7245 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7246 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7247 * avr-tdep.c (avr_frame_unwind): Ditto.
7248 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7249 Ditto.
7250 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7251 * frv-tdep.c (frv_frame_unwind): Ditto.
7252 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7253 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7254 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7255 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7256 (hppa_stub_frame_unwind): Ditto.
7257 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7258 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7259 (ia64_libunwind_frame_unwind)
7260 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7261 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7262 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7263 * m32c-tdep.c (m32c_unwind): Ditto.
7264 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7265 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7266 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7267 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7268 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7269 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7270 * mep-tdep.c (mep_frame_unwind): Ditto.
7271 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7272 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7273 (mips_stub_frame_unwind): Ditto.
7274 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7275 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7276 * mt-tdep.c (mt_frame_unwind): Ditto.
7277 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7278 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7279 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7280 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7281 (s390_sigtramp_frame_unwind): Ditto.
7282 * score-tdep.c (score_prologue_unwind): Ditto.
7283 * sh-tdep.c (sh_frame_unwind): Ditto.
7284 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7285 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7286 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7287 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7288 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7289 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7290 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7291 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7292 (sparc64obsd_trapframe_unwind): Ditto.
7293 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7294 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7295 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7296 * v850-tdep.c (v850_frame_unwind): Ditto.
7297 * vax-tdep.c (vax_frame_unwind): Ditto.
7298 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7299 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7300 * xtensa-tdep.c (xtensa_unwind): Ditto.
7301
f23d1b92
PA
73022011-03-18 Pedro Alves <[email protected]>
7303
7304 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7305 there's always a frame. Use get_frame_pc_if_available instead of
7306 get_frame_pc, and if there's no PC available, don't look up a
7307 symtab.
7308
1d4f5741
PA
73092011-03-18 Pedro Alves <[email protected]>
7310
7311 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7312 unavailable PC.
7313
dba09041
PA
73142011-03-18 Pedro Alves <[email protected]>
7315
7316 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7317 gracefully.
7318
9a26e44c
PA
73192011-03-18 Pedro Alves <[email protected]>
7320
7321 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7322 * frame.c (frame_unwind_caller_pc_if_available): New.
7323 * stack.c (frame_info): Handle unavailable PC.
7324
73252011-03-18 Pedro Alves <[email protected]>
7326
7327 * frame.c (frame_unwind_pc): Rename to ...
7328 (frame_unwind_pc_if_available): ... this. New `pc' output
7329 parameter. Change return type to int. Gracefully handle
7330 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7331 happened, or 1 otherwise.
7332 (frame_unwind_pc): Reimplement on top of
7333 frame_unwind_pc_if_available.
7334 (get_frame_func): Rename to ...
7335 (get_frame_func_if_available): New `pc' output parameter. Change
7336 return type to int. Gracefully handle the PC not being available.
7337 (get_frame_func): Reimplement on top of
7338 get_frame_func_if_available.
7339 (select_frame): Handle the PC being unavailable.
7340 (get_prev_frame): Handle the PC being unavailable.
7341 (get_frame_pc_if_available): New.
7342 (get_frame_address_in_block_if_available): New.
7343 (find_frame_sal): Handle the frame PC not being available.
7344 * frame.h (get_frame_pc_if_available): Declare.
7345 (get_frame_address_in_block_if_available): Declare.
7346 (get_frame_func_if_available): Declare.
7347 * stack.c (print_frame_info): Handle the PC being unavailable.
7348 (find_frame_funname): Ditto.
7349 (print_frame): Handle the PC being unavailable.
7350 (get_frame_language): Ditto.
7351 * blockframe.c (get_frame_block): Ditto.
7352 * macroscope.c (default_macro_scope): Ditto.
7353 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7354
73552011-03-18 Pedro Alves <[email protected]>
7356
7357 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7358 NOT_AVAILABLE_ERROR when evaluating the location expression.
7359
73602011-03-18 Pedro Alves <[email protected]>
7361
7362 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7363 returning that the register piece is unavailable/optimized out.
7364 (write_pieced_value): Handle get_frame_register_bytes returning
7365 that the register piece is unavailable/optimized out when doing a
7366 read-modify write of a bitfield.
7367 * findvar.c (value_from_register): Handle get_frame_register_bytes
7368 returning that the register piece is unavailable/optimized out.
7369 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7370 and `unavailablep'. Throw error on bad debug info. Use
7371 frame_register instead of frame_register_read, to fill in the new
7372 arguments.
7373 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7374 and `unavailablep'.
7375 * valops.c: (value_assign): Adjust, and handle
7376 get_frame_register_bytes failing.
7377 * spu-tdep.c: Include exceptions.h.
7378 (spu_software_single_step): Adjust, and handle
7379 get_frame_register_bytes failing.
7380 (spu_get_longjmp_target): Ditto.
7381 * gdbarch.sh (register_to_value): Change to return int. New
7382 parameters `optimizedp' and `unavailablep'.
7383 * gdbarch.h, gdbarch.c: Regenerate.
7384 * i386-tdep.c (i386_register_to_value): Adjust to new
7385 gdbarch_register_to_value interface.
7386 * i387-tdep.c (i387_register_to_value): Ditto.
7387 * i387-tdep.h (i387_register_to_value): Ditto.
7388 * alpha-tdep.c (alpha_register_to_value): Ditto.
7389 * ia64-tdep.c (ia64_register_to_value): Ditto.
7390 * m68k-tdep.c (m68k_register_to_value): Ditto.
7391 * mips-tdep.c (mips_register_to_value): Ditto.
7392 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7393
0fdb4f18
PA
73942011-03-18 Pedro Alves <[email protected]>
7395
7396 * findvar.c (value_of_register): Mark the value as unavailable, if
7397 the register is unavailable.
7398 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7399 (frame_register): New `unavailablep' parameter.
7400 (frame_register_read): Update comment.
7401 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7402 Set it if the register is unavailable. If the register is
7403 unavailable, clear the output buffer.
7404 (frame_register): New `unavailablep' parameter. Pass it down.
7405 (frame_unwind_register): Adjust.
7406 (put_frame_register): Adjust.
7407 (frame_register_read): Adjust. Also return false if the register
7408 is not available.
7409 (frame_register_unwind_location): Adjust.
7410 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7411 is unavailable, mark the value accordingly.
7412 * stack.c (frame_info): Handle unavailable registers.
7413
e69aa73e
PA
74142011-03-18 Pedro Alves <[email protected]>
7415
7416 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7417 simplify, using regcache_cooked_read.
7418
05d1431c
PA
74192011-03-18 Pedro Alves <[email protected]>
7420
7421 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7422 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7423 (regcache_raw_read_unsigned, regcache_raw_read_part)
7424 (regcache_cooked_read, regcache_cooked_read_signed)
7425 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7426 (regcache_cooked_read_ftype): Change return to enum
7427 register_status.
7428 * regcache.c: Include exceptions.h
7429 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7430 (do_cooked_read): Change return to enum register_status. Always
7431 forward to regcache_cooked_read.
7432 (regcache_raw_read): Change return to enum register_status. If
7433 the register is not REG_VALID, memset the buffer. Return the
7434 register's status.
7435 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7436 return the register's status.
7437 (regcache_raw_read_unsigned): Ditto.
7438 (regcache_cooked_read): Change return to enum register_status.
7439 Assert that with read-only regcaches, the register's status must
7440 be known. If the regcache is read-only, and the register is not
7441 REG_VALID, memset the buffer. Return the register's status.
7442 (regcache_cooked_read_signed): Change return to enum
7443 register_status. Handle non-REG_VALID registers and return the
7444 register's status.
7445 (regcache_cooked_read_unsigned): Change return to enum
7446 register_status. Handle non-REG_VALID registers and return the
7447 register's status.
7448 (regcache_xfer_part, regcache_raw_read_part)
7449 (regcache_cooked_read_part): Change return to enum
7450 register_status. Return the register's status.
7451 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7452 unavailable.
7453 (regcache_dump): Handle unavailable cooked registers.
7454 * frame.c (do_frame_register_read): Adjust interface to match
7455 regcache_cooked_read_ftype.
7456 * gdbarch.sh (pseudo_register_read): Change return to enum
7457 register_status.
7458 * gdbarch.h, gdbarch.c: Regenerate.
7459
7460 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7461 register_status.
7462 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7463 register_status. If reading a raw register indicates the raw
7464 register is not valid, return the raw register's status,
7465 otherwise, return REG_VALID.
7466 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7467 register_status. Handle non-REG_VALID raw registers and return
7468 the register's status.
7469 * arm-tdep.c (arm_neon_quad_read)
7470 (arm_pseudo_read): Change return to enum register_status. Handle
7471 non-REG_VALID raw registers and return the register's status.
7472 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7473 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7474 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7475 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7476 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7477 register_status.
7478 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7479 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7480 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7481 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7482 (m32c_pseudo_register_read): Change return to enum
7483 register_status. Adjust.
7484 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7485 enum register_status. Return the register's status.
7486 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7487 register_status. Return the register's status.
7488 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7489 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7490 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7491 * rs6000-tdep.c (move_ev_register_func): New typedef.
7492 (e500_move_ev_register): Use it. Change return to enum
7493 register_status. Return the register's status.
7494 (do_regcache_raw_read): New function.
7495 (do_regcache_raw_write): New function.
7496 (e500_pseudo_register_read): Change return to enum
7497 register_status. Return the register's status. Use
7498 do_regcache_raw_read.
7499 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7500 (dfp_pseudo_register_read): Change return to enum register_status.
7501 Return the register's status.
7502 (vsx_pseudo_register_read): Ditto.
7503 (efpr_pseudo_register_read): Ditto.
7504 (rs6000_pseudo_register_read): Ditto.
7505 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7506 register_status. Return the register's status.
7507 * sh64-tdep.c (pseudo_register_read_portions): New function.
7508 (sh64_pseudo_register_read): Change return to enum
7509 register_status. Use pseudo_register_read_portions. Return the
7510 register's status.
7511 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7512 register_status. Return the register's status.
7513 * sh-tdep.c (pseudo_register_read_portions): New function.
7514 (sh_pseudo_register_read): Change return to enum register_status.
7515 Use pseudo_register_read_portions. Return the register's status.
7516 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7517 enum register_status. Return the register's status.
7518 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7519 * spu-tdep.c (spu_pseudo_register_read_spu)
7520 (spu_pseudo_register_read): Ditto.
7521 * xtensa-tdep.c (xtensa_register_read_masked)
7522 (xtensa_pseudo_register_read): Ditto.
7523 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7524
e10abd8f
PM
75252011-03-18 Pierre Muller <[email protected]>
7526
7527 * python/py-value.c (valpy_getitem): Fix formatting of error function
7528 call.
7529
7ea6d463
PM
75302011-03-18 Pierre Muller <[email protected]>
7531
7532 ARI fixes: Add missing internationalization markups throughout
7533 C source files.
7534 * darwin-nat-info.c: Ditto.
7535 * record.c: Ditto.
7536 * remote.c: Ditto.
7537 * mi/mi-main.c: Ditto.
7538
001083c6
PM
75392011-03-18 Pierre Muller <[email protected]>
7540
7541 ARI fixes: Add missing internationalization markups throughout
7542 yacc files.
7543 * c-exp.y: Ditto.
7544 * cp-name-parser.y: Ditto.
7545 * f-exp.y: Ditto.
7546 * m2-exp.y: Ditto.
7547 * objc-exp.y: Ditto.
7548 * p-exp.y: Ditto.
7549
4f1cdeec
PM
75502011-03-18 Pierre Muller <[email protected]>
7551
7552 ARI fixes: Messages should have no trailing new lines.
7553 * darwin-nat.c (mach_check_error): Remove trailing new line from
7554 warning function call message.
7555 * record.c (bfdcore_read): Idem for error call.
7556
28e698f1
PM
75572011-03-18 Pierre Muller <[email protected]>
7558
7559 * common/signals.c (target_signal_from_host): Add _ markup to error
7560 function call message.
7561 (target_signal_to_host): Add _ markup and remove trailing new line
7562 from warning call message.
7563 (target_signal_from_command): Add _ markup to error function call
7564 message.
7565
99c3dc11
PM
75662011-03-18 Phil Muldoon <[email protected]>
7567
f33edef8 7568 PR python/12149
99c3dc11
PM
7569
7570 * python/python.c (gdbpy_write): Accept a stream argument and
7571 operate to the appropriate stream.
7572 (gdbpy_flush): Likewise.
7573 (_initialize_python): Add stream constants.
7574 (finish_python_initialization): Add GdbOutputErrorFile class.
7575
c20800be
KY
75762011-03-18 Kwok Cheung Yeung <[email protected]>
7577
7578 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7579
f4a1794a
KY
75802011-03-18 Kwok Cheung Yeung <[email protected]>
7581
7582 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7583 to store_signed_integer. Add debug message when relocating CALL
7584 instructions. Fix formatting of debug message.
7585 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7586
d4862372
JB
75872011-03-17 Joel Brobecker <[email protected]>
7588
7589 * target.h (struct target_ops): Remove to_lookup_symbol field.
7590 (target_lookup_symbol): Delete macro.
7591 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7592 (update_current_target, setup_target_debug): Remove handling
7593 of to_lookup_symbol target_ops field.
7594 * ada-tasks.c (get_known_tasks_addr): Remove use of
7595 target_lookup_symbol.
7596 * coffread.c (coff_symtab_read): Likewise.
7597 * dbxread.c (read_dbx_symtab): Ditto.
7598
d645e32e
JB
75992011-03-17 Joel Brobecker <[email protected]>
7600
7601 PR gdb/12116:
7602 * configure.ac: Add getthrds declaration check.
7603 * configure, config.in: Regenerate.
7604 * aix-thread.c (getthrds): Declare only if not already declared
7605 in procinfo.h. More declaration out of get_signaled_thread to
7606 global scope.
7607
29703da4
PM
76082011-03-17 Phil Muldoon <[email protected]>
7609
7610 * python/py-symtab.c: Populate symtab_object_methods,
7611 sal_object_methods.
7612 (stpy_is_valid): New function.
7613 (salpy_is_valid): Ditto.
7614 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7615 (sympy_is_valid): New function.
7616 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7617 (objfpy_is_valid): New function.
7618 * python/py-inferior.c: Populate inferior_object_methods.
7619 (infpy_is_valid): New function.
7620 * python/py-infthread.c: Populate thread_object_methods.
7621 (thpy_is_valid): New function.
7622 * python/py-block.c: Declare block_object_methods. Populate. Declare
7623 block_iterator_object_methods. Populate.
7624 (blpy_is_valid): New function.
7625 (blpy_iter_is_valid): Ditto.
7626
c00f8484
KS
76272011-03-16 Keith Seitz <[email protected]>
7628
7629 * linespec.c (find_methods): Canonicalize NAME before looking
7630 up the symbol.
7631 (name_end): New function.
7632 (keep_name_info): New function.
7633 (decode_line_1): Use keep_name_info.
7634 (decode_compound): Likewise.
7635 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7636 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7637
7638 PR c++/12273
7639 * linespec.c (locate_first_half): Keep overload information, too.
7640 (decode_compound): Use a string to represent break characters
7641 to escape the loop.
7642 If P points to a break character, do not increment it.
7643 For C++ and Java, keep overload information and relevant keywords.
7644 If we cannot find a symbol, search the minimal symbols.
7645
7646 PR c++/11734
7647 * linespec.c (decode_compound): Rename SAVED_ARG to
7648 THE_REAL_SAVED_ARG.
7649 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7650 single-quotes.
7651 Pass a valid block to lookup_symbol.
7652 (lookup_prefix_sym): Likewise.
7653 (find_method): Construct search name based on SYM_CLASS instead
7654 of SAVED_ARG.
7655 * psymtab.c (lookup_partial_symbol): Add language parameter.
7656 (lookup_symbol_aux_psymtabs): Likewise.
7657 Don't assume that the psymtab we found was the right one. Search
7658 for the desired symbol in the symtab to be certain.
7659 (psymtab_search_name): New function.
7660 (lookup_partial_symbol): Use psymtab_search_name.
7661 Add language parameter.
7662 (read_symtabs_for_function): Add language parameter and pass to
7663 lookup_partial_symbol.
7664 (find_symbol_file_from_partial): Likewise.
7665
c91513d8
PP
76662011-03-16 Paul Pluzhnikov <[email protected]>
7667
7668 PR gdb/12528
7669 * dwarf2read.c (noop_record_line): New function.
7670 (dwarf_decode_lines): Ignore line tables for GCd functions.
7671
b37520b6
PM
76722011-03-16 Pierre Muller <[email protected]>
7673
7674 Fix ARI warnings about new lines at the end of messages, which
7675 are unneeded as there is a new line added at the end of the message
7676 automatically.
7677 * darwin-nat.c (darwin_stop_inferior): Ditto.
7678 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7679 * dfp.c (decimal_to_number): Ditto.
7680 * exec.c (print_section_info): Ditto.
7681 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7682 * osdata.c (get_osdata): Ditto.
7683 * record.c (bfdcore_write): Ditto.
7684 * remote-mips.c (mips_readchar): Ditto.
7685 * remote.c (read_ptid): Ditto.
7686 * ser-mingw.c (ser_windows_raw): Ditto.
7687 * tracepoint.c (add_local_symbols): Ditto.
7688 * windows-nat.c (fake_create_process): Ditto.
7689
b08ee6a2
TT
76902011-03-16 Tom Tromey <[email protected]>
7691
7692 * tracepoint.c (stop_tracing): Don't declare.
7693 * event-top.c (after_char_processing_hook): Add `(void)'.
7694
9a6f1302
PM
76952011-03-16 Phil Muldoon <[email protected]>
7696
7697 * NEWS: Add Parameter sub-classing description.
7698
7ceb86b1
KT
76992011-03-16 Kai Tietz <[email protected]>
7700
7701 * MAINTAINERS: Update my e-mail address.
7702
efeff6cf
AT
77032011-03-15 Andreas Tobler <[email protected]>
7704
7705 * MAINTAINERS: Add myself for write after approval privileges.
7706
681c238c
MS
77072011-03-15 Michael Snyder <[email protected]>
7708
f3df5b08
MS
7709 * frame.c (find_frame_sal): Assert sym is not null.
7710
13f6513c
MS
7711 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7712
50412521
MS
7713 * objc-lang.c (selectors_info): Check strchr for null result.
7714
681c238c
MS
7715 * stabsread.c (define_symbol): Guard against bad stabstring input.
7716
6ced1581
PM
77172011-03-15 Pierre Muller <[email protected]>
7718
7719 Remove trailing spaces and tabulations from pascal language
7720 support sources.
7721 p-exp.y: Ditto.
7722 p-lang.c: Ditto.
7723 p-lang.h: Ditto.
7724 p-valprint.c: Ditto.
7725
9373cf26
JK
77262011-03-15 Jan Kratochvil <[email protected]>
7727
7728 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7729 than LOW. Comment it.
7730 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7731 HIGHPC not strictly higher than LOWPC.
7732
9a1edae6
PM
77332011-03-15 Pierre Muller <[email protected]>
7734
7735 Fix formatting of function declarations returning a pointer in
7736 previous commit.
7737 * varobj.c (varobj_add_child): Ditto.
7738 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7739 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7740
24e9cda0
UW
77412011-03-15 Ulrich Weigand <[email protected]>
7742
7743 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7744 for the "generic" vector ABI used with GCC 4.3 and later.
7745 (ppc64_sysv_abi_return_value): Likewise.
7746
77472011-03-15 Ulrich Weigand <[email protected]>
81b4675a
UW
7748
7749 * infcall.c (call_function_by_hand): Function return value is
7750 always a non_lval, even when using struct_return.
7751
c9174737
PA
77522011-03-15 Pedro Alves <[email protected]>
7753
7754 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7755 (map_display_numbers): New.
7756 (do_delete_display): New.
7757 (undisplay_command): Use map_display_numbers.
7758 (do_enable_disable_display): New.
7759 (enable_disable_display_command): New function.
7760 (enable_display): Delete.
7761 (enable_display_command): New.
7762 (disable_display_command): Reimplement.
7763 (_initialize_printcmd): Adjust "enable display" command to use
7764 `enable_display_command' as callback.
7765
350c6c65
PM
77662011-03-14 Phil Muldoon <[email protected]>
7767
7768 * NEWS: Add Python breakpoint 'stop' operation.
7769
824446ad
PM
77702011-03-14 Phil Muldoon <[email protected]>
7771
7772 * NEWS: Delete duplicate entry. Fix typo.
7773
2021ad3a
PM
77742011-03-14 Pierre Muller <[email protected]>
7775
7776 Fix ARI warning about function names in first column.
7777 Put prototype declaration on same line as return type.
7778 * objc-exp.y: Ditto.
7779 * p-exp.y: Ditto.
7780 * python/py-stopevent.h: Ditto.
7781 For long function names, split parameters to
7782 allow function name on same line as return type.
7783 * solib-pa64.c: Ditto.
7784 * varobj.c: Ditto.
7785 * varobj.h: Ditto.
7786 For long function declaration, use single line.
7787 * hppa-tdep.h: Ditto.
7788 * inferior.h: Ditto.
7789
7371cf6d
PM
77902011-03-14 Phil Muldoon <[email protected]>
7791
7792 * python/python.h: Declare gdbpy_should_stop and
7793 gdbpy_breakpoint_has_py_cond.
7794 * python/python.c: Add python.h to includes. Remove python.h from
7795 HAVE_PYTHON definition
7796 (gdbpy_should_stop): New dummy function.
7797 (gdbpy_breakpoint_has_py_cond): New dummy function.
7798 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7799 sub-classing capabilities.
7800 (gdbpy_should_stop): New function.
7801 (gdbpy_breakpoint_has_py_cond): New function.
7802 (local_setattro): New function.
7803 * breakpoint.c (condition_command): Add check for Python 'stop'
7804 operation.
7805 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7806 operation function as part of stop/continue tests.
7807
37b50a69
TT
78082011-03-14 Tom Tromey <[email protected]>
7809
7810 PR gdb/12576:
7811 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7812 (needs_frame_dwarf_call): Likewise.
7813
eeae04df
PM
78142011-03-14 Pierre Muller <[email protected]>
7815
7816 Fix ARI warning about functions without parameters that do not
7817 use (void).
7818 * breakpoint.c (all_tracepoints): Replace () by (void).
7819 * f-exp.y (match_string_literal): Ditto.
7820 (yylex): Ditto.
7821 * m2-exp.y (yylex): Ditto.
7822 * mep-tdep.c (current_me_module): Ditto.
7823 (current_options): Ditto.
7824 (current_cop_data_bus_width): Ditto.
7825 (current_cr_names): Ditto.
7826 (current_cr_is_float): Ditto.
7827 (current_ccr_names): Ditto.
7828 * objc-exp.y (yylex): Ditto.
7829 * p-exp.y (yylex): Ditto.
7830 * remote.c (send_interrupt_sequence): Ditto.
7831 * tracepoint.c (current_trace_status): Ditto.
7832 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7833 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7834
6dc3565d
MS
78352011-03-11 Michael Snyder <[email protected]>
7836
1427fe5e
MS
7837 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7838 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7839 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7840 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7841 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7842
60bc018f
MS
7843 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7844 (delete_async_event_handler): Ditto.
7845
f3be5b64
MS
7846 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7847
4c2d5724
MS
7848 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7849
6dc3565d
MS
7850 * top.c (set_verbose): Assert showcmd was found.
7851
4e6ca6d5
MG
78522011-03-11 Maxim Grigoriev <[email protected]>
7853
7854 * xtensa-tdep.c (warning_once): Correct style issues.
7855
815a83e4
YQ
78562011-03-11 Yao Qi <[email protected]>
7857
7858 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7859
f2eb0bc8
AS
78602011-03-11 Andreas Schwab <[email protected]>
7861
7862 * common/aclocal.m4: Remove.
7863
b801de47
MG
78642011-03-10 Maxim Grigoriev <[email protected]>
7865
7866 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7867 (xtensa_write_register, xtensa_read_register): Likewise.
7868 (xtensa_hextochar): Removed.
7869 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7870
dbab50de
MG
78712011-03-10 Maxim Grigoriev <[email protected]>
7872
7873 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7874 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7875 (xtensa_alloc_frame_cache): Add initialization for new fields.
7876 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7877 (warning_once): New function.
7878 (xtensa_insn_kind): New item c0opc_and.
7879 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7880 (call0_track_op): Change arguments. New local variable litbase.
7881 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7882 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7883 in the prologue.
dbab50de 7884 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7885 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7886 Add the variety of updates to handle extended prologues, which now can
7887 conduct dynamic stack adjustments.
7888 (call0_frame_cache): Likewise.
7889 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7890 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7891
b2c04452
MS
78922011-03-10 Michael Snyder <[email protected]>
7893
f8f67713
MS
7894 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7895 (cmd_qtframe): Ditto.
7896 (cmd_qtbuffer): Ditto.
7897 (cmd_bigqtbuffer): Ditto.
7898
197f0a60
TT
78992011-03-10 Tom Tromey <[email protected]>
7900
7901 * tracepoint.c (trace_actions_command): Update.
7902 * thread.c (thread_apply_command): Update.
7903 * reverse.c (delete_bookmark_command): Update.
7904 (bookmarks_info): Update.
7905 * printcmd.c (undisplay_command): Update.
7906 * memattr.c (mem_enable_command): Update.
7907 (mem_disable_command): Update.
7908 (mem_delete_command): Update.
7909 * inferior.c (detach_inferior_command): Update.
7910 (kill_inferior_command): Update.
7911 (remove_inferior_command): Update.
7912 * cli/cli-utils.h (struct get_number_or_range_state): New.
7913 (init_number_or_range): Declare.
7914 (get_number_or_range): Update.
7915 * cli/cli-utils.c (init_number_or_range): New function.
7916 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7917 static variables.
7918 (number_is_in_list): Update.
7919 * breakpoint.h (get_tracepoint_by_number): Update.
7920 * breakpoint.c (map_breakpoint_numbers): Update for change to
7921 get_number_or_range.
7922 (find_location_by_number): Use get_number, not
7923 get_number_or_range.
7924 (trace_pass_set_count): New function.
7925 (trace_pass_command): Update for change to get_number_or_range.
7926 Rework loop logic.
7927 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7928 'state' parameter.
7929
ecec24e6
PM
79302011-03-10 Phil Muldoon <[email protected]>
7931
7932 * python/py-param.c (add_setshow_generic): Add set/show callback
7933 parameters. Register Python object context.
7934 (get_show_value): New function.
7935 (get_set_value): New function.
7936 (call_doc_function): New function.
7937 (get_doc_string): Move behind get_show_value/get_set_value.
7938
6d6c6b1f
JK
79392011-03-10 Andreas Tobler <[email protected]>
7940
7941 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7942
68d6df83
MG
79432011-03-09 Maxim Grigoriev <[email protected]>
7944
dbab50de 7945 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7946 (xtensa_write_register): Likewise.
7947 (xtensa_hextochar): Add comment and update to match coding conventions.
7948 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7949 (execute_l32e, execute_s32e, execute_code): Update comments.
7950 (xtensa_exception_handler_t): Update to match coding conventions.
7951 (xtensa_insn_kind): Likewise.
7952
85c9d6a6
MS
79532011-03-09 Michael Snyder <[email protected]>
7954
7955 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7956
91495617
PA
79572011-03-09 Pedro Alves <[email protected]>
7958
7959 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7960
eb8c0621
TT
79612011-03-09 Tom Tromey <[email protected]>
7962
7963 * thread.c (restore_selected_frame): Handle frame_level == -1.
7964 (make_cleanup_restore_current_thread): Use
7965 get_selected_frame_if_set.
7966 * frame.h (get_selected_frame_if_set): Declare.
7967 * frame.c (get_selected_frame_if_set): New function.
7968
9f37bbcc
PA
79692011-03-09 Pedro Alves <[email protected]>
7970
7971 * cli/cli-cmds.c (shell_escape): Use lbasename.
7972 * coffread.c (coff_start_symtab): Constify parameter.
7973 (complete_symtab): Constify `name' parameter.
7974 (coff_symtab_read): Constify `filestring' local.
7975 (coff_getfilename): Constify return and `result' local.
7976 Use lbasename.
7977 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7978 * linux-fork.c (info_checkpoints_command): Use lbasename.
7979 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7980 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7981 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7982 * procfs.c (procfs_make_note_section): Use lbasename.
7983 * tui/tui-io.c (printable_part): Constity return and parameter.
7984 Use lbasename.
7985 (print_filename): Constify parameters, and local `s'.
7986 (tui_rl_display_match_list): Constify local `temp'.
7987
f8de3c55
JK
79882011-03-09 Jan Kratochvil <[email protected]>
7989
7990 Revert:
7991 2011-03-08 Jan Kratochvil <[email protected]>
7992 Fix DWARF-3+ DW_AT_accessibility default assumption.
7993 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7994 cu->header.version >= 3.
7995
d9837b00
YQ
79962011-03-09 Yao Qi <[email protected]>
7997
7998 * common/Makefile.in: Remove.
7999 * common/configure: Remove.
8000 * common/configure.ac: Remove.
8001
e637a4f5
YQ
80022011-03-09 Yao Qi <[email protected]>
8003
8004 Revert:
8005 2011-02-11 Yao Qi <[email protected]>
8006
8007 * common/Makefile.in: Add copyright header.
8008
8009 2011-02-11 Yao Qi <[email protected]>
8010
8011 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8012 libcommon.a.
8013 * configure.ac: Add common to sub dir.
8014 * configure: Regenerate.
8015
f976a05d
MG
80162011-03-08 Maxim Grigoriev <[email protected]>
8017
8018 * xtensa-tdep.c (call0_ret): New function.
8019 (xtensa_skip_prologue): Speed up analysis.
8020
57041825
MG
80212011-03-08 Maxim Grigoriev <[email protected]>
8022
8023 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8024 while executing MI command -data-list-changed-registers.
8025
08b9c608
MG
80262011-03-08 Maxim Grigoriev <[email protected]>
8027
8028 * xtensa-tdep.c (xtensa_read_register): New function.
8029 (xtensa_write_register): New function.
8030 (xtensa_find_register_by_name): New function.
8031 (xtensa_windowed_frame_cache): Update comments in type description.
8032 (xtensa_frame_cache): Likewise.
8033 (xtensa_window_interrupt_insn): New function.
8034 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8035 (xtensa_insn_kind): Add new instructions.
8036 (rwx_special_register): New function.
8037 (call0_classify_opcode): Add new instructions to the analysis.
8038 (a0_saved, a7_saved, a11_saved): New variables.
8039 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8040 (execute_l32e): New function.
8041 (execute_s32e): New function.
8042 (xtensa_exception_handler_t): New type.
8043 (execute_code): New function.
8044 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8045 analysis for Xtensa Window Exception handlers.
8046
4d1acb11
MG
80472011-03-08 Maxim Grigoriev <[email protected]>
8048
98689b25
MG
8049 * xtensa-tdep.c (TX_PS): New.
8050 (windowing_enabled): Update to count for Call0 ABI.
8051 (xtensa_hextochar): New.
8052 (xtensa_init_reggroups): Make algorithm generic.
8053 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8054
80552011-03-08 Maxim Grigoriev <[email protected]>
8056
8057 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8058
d3f323f3
MS
80592011-03-08 Michael Snyder <[email protected]>
8060
3dcabaa8
MS
8061 * i386-tdep.c (i386_follow_jump): Check return value of
8062 target_read_memory.
8063 (i386_analyze_struct_return): Ditto.
8064 (i386_skip_probe): Ditto.
8065 (i386_match_insn): Ditto.
8066 (i386_skip_noop): Ditto.
8067 (i386_analyze_frame_setup): Ditto.
8068 (i386_analyze_register_saves): Ditto.
8069 (i386_skip_prologue): Ditto.
8070 (i386_skip_main_prologue): Ditto.
8071
13b3fd9b
MS
8072 * target.c (read_whatever_is_readable): Fix memory leak.
8073
d3f323f3
MS
8074 * i386-tdep.c (i386_process_record): Document fall through.
8075
421d5c74
JK
80762011-03-08 Jan Kratochvil <[email protected]>
8077
8078 Fix DWARF-3+ DW_AT_accessibility default assumption.
8079 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8080 cu->header.version >= 3.
8081
63154eca
PA
80822011-03-08 Pedro Alves <[email protected]>
8083
8084 * remote.c (remote_check_symbols): Skip if the target has no
8085 execution.
8086
f1a507a1
JB
80872011-03-08 Joel Brobecker <[email protected]>
8088
8089 * target.c (read_whatever_is_readable): Reformat comment,
8090 with a minor typo fix. Minor reformatting of the code.
8091
36073a92
YQ
80922011-03-08 Yao Qi <[email protected]>
8093
8094 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8095 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8096 Use cached result instead of calling displaced_in_arm_mode again.
8097 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8098 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8099 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8100 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8101 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8102 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8103 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8104 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8105 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8106 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8107 (arm_catch_kernel_helper_return): Likewise.
8108 * gdb/arm-tdep.h : Update function declarations.
8109
d3f323f3 81102011-03-07 Michael Snyder <[email protected]>
e6040cbd 8111
e0e40094
MS
8112 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8113
0b2381f5
MS
8114 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8115
0350914a
MS
8116 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8117
69feea6f
MS
8118 * elfread.c (elf_symtab_read): Stop memory leak.
8119
e6040cbd
MS
8120 * main.c (captured_main): Fix memory leak.
8121
052874e8
AS
81222011-03-07 Andreas Schwab <[email protected]>
8123
8124 * ada-lang.c (compare_names): Call is_name_suffix with string1
8125 instead of string2.
8126
b11896a5
TT
81272011-03-07 Tom Tromey <[email protected]>
8128
8129 * xcoffread.c (xcoff_sym_fns): Update.
8130 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8131 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8132 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8133 (symbol_file_add_with_addrs_or_offsets): Likewise.
8134 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8135 * somread.c (som_sym_fns): Update.
8136 * psymtab.h (require_partial_symbols): Declare.
8137 * psymtab.c (require_partial_symbols): New function.
8138 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8139 (ALL_OBJFILE_PSYMTABS): Undef.
8140 (ALL_PSYMTABS): Move from psympriv.h.
8141 (lookup_partial_symtab, find_pc_sect_psymtab)
8142 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8143 (find_last_source_symtab_from_partial)
8144 (forget_cached_source_info_partial)
8145 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8146 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8147 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8148 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8149 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8150 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8151 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8152 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8153 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8154 psymtabs.
8155 * mipsread.c (ecoff_sym_fns): Update.
8156 * machoread.c (macho_sym_fns): Update.
8157 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8158 (read_psyms): New function.
8159 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8160 (elf_sym_fns_lazy_psyms): New global.
8161 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8162 dwarf2_build_psymtabs.
8163 * dbxread.c (aout_sym_fns): Update.
8164 * coffread.c (coff_sym_fns): Update.
8165
fda326dd
TT
81662011-03-07 Tom Tromey <[email protected]>
8167
8168 * infrun.c (print_exited_reason): Include inferior id and pid in
8169 message.
8170
aeaec162
TT
81712011-03-07 Tom Tromey <[email protected]>
8172
8173 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8174 parameter.
8175 (target_has_execution_1): Update.
8176 (target_has_execution_current): Declare.
8177 (target_has_execution): Call target_has_execution_current.
8178 (default_child_has_execution): Update.
8179 * target.c (default_child_has_execution): Add 'the_ptid'
8180 parameter.
8181 (target_has_execution_1): Likewise.
8182 (target_has_execution_current): New function.
8183 (add_target): Update.
8184 (init_dummy_target): Update.
8185 * remote-m32r-sdi.c (m32r_has_execution): New function.
8186 (init_m32r_ops): Use it.
8187 * record.c (record_core_has_execution): Now static. Add
8188 'the_ptid' parameter.
8189 * inferior.c (have_live_inferiors): Don't save current thread.
8190 Use target_has_execution_1.
8191
08e14083
YQ
81922011-03-07 Yao Qi <[email protected]>
8193
8194 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8195
c05d19c5
JB
81962011-03-07 Joel Brobecker <[email protected]>
8197
8198 * elfread.c (elf_symtab_read): Minor reformatting.
8199
3e6ef9e4
JB
82002011-03-07 Joel Brobecker <[email protected]>
8201
8202 * objc-lang.c (selectors_info): Minor reformatting.
8203
dbb8534f
JB
82042011-03-07 Joel Brobecker <[email protected]>
8205
8206 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8207
dd70cc93
JB
82082011-03-07 Joel Brobecker <[email protected]>
8209 Michael Snyder <[email protected]>
8210
8211 * ada-valprint.c (ada_val_print_array): Move the declaration of
8212 "byte_order" and "elttype" inside the block where these variables
8213 are actually used. Remove some special handling for the case
8214 where "elttype" and "eltlen" are null. Replace by a comment
8215 and a couple of assertion checks.
8216
b27cf2b3
MS
82172011-03-05 Michael Snyder <[email protected]>
8218
8219 * source.c (add_path): Replace semicolon at end of block.
8220 * dwarf2expr.c (execute_stack_op): Ditto.
8221
5387a0c6
MF
82222011-03-05 Mike Frysinger <[email protected]>
8223
8224 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8225 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8226 (bfin-*-*): Likewise.
8227
e3aa49af
MS
82282011-03-05 Michael Snyder <[email protected]>
8229
82ae4854
MS
8230 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8231 * mdebugread.c (parse_symbol): Ditto.
8232 * parse.c (parse_exp_in_context): Ditto.
8233 * source.c (add_path): Ditto.
8234 * utils.c (gnu_debuglink_crc32): Ditto.
8235 * varobj.c (variable_language): Ditto.
8236
e3aa49af
MS
8237 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8238
154f592e
MS
82392011-03-04 Michael Snyder <[email protected]>
8240
da3ecdc6
MS
8241 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8242
9cc89665
MS
8243 * symfile.c (simple_overlay_update): Check for null return value
8244 from lookup_minimal_symbol.
8245
154f592e
MS
8246 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8247
63ffa6ee
TJB
82482011-03-04 Thiago Jung Bauermann <[email protected]>
8249
8250 * eval.c (parse_and_eval_address_1): Remove function.
8251 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8252 instead of parse_and_eval_address_1.
8253 * value.h (parse_and_eval_address_1): Remove prototype.
8254
a17d146e
MS
82552011-03-04 Michael Snyder <[email protected]>
8256
8257 * remote.c (putpkt_binary): Document that case stmt falls through.
8258
1a6a67de
TJB
82592011-03-04 Thiago Jung Bauermann <[email protected]>
8260
8261 * breakpointc (print_it_typical): Move NULL check from here...
8262 (print_bp_stop_message): ... to here.
8263
488919c4
MS
82642011-03-04 Michael Snyder <[email protected]>
8265
8266 * breakpoint.c (enable_command): Use break instead of continue,
8267 and fill in a missing break.
8268 (disable_command): Ditto.
8269
1e182ce8
UW
82702011-03-04 Ulrich Weigand <[email protected]>
8271
8272 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8273 (terminal_save_ours): Remove misleading comment.
8274 (inflow_inferior_data_cleanup): Free ttystate.
8275 (inflow_inferior_exit): Likewise.
8276 (copy_terminal_info): Copy ttystate.
8277
8278 * serial.c (serial_copy_tty_state): New function.
8279 * serial.h (serial_copy_tty_state): Add prototype.
8280 (struct serial_ops): Add copy_tty_state callback.
8281 * ser-base.c (ser_base_copy_tty_state): New function.
8282 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8283 * ser-go32.c (dos_copy_tty_state): New function.
8284 (dos_ops): Install copy_tty_state callback.
8285 * ser-mingw.c (_initialize_ser_windows): Likewise.
8286 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8287 * ser-unix.c (hardwire_copy_tty_state): New function.
8288 (_initialize_ser_hardwire): Install it.
8289
b2c5f112
MS
82902011-03-04 Michael Snyder <[email protected]>
8291
2abae994
MS
8292 * breakpoint.c (create_breakpoint): Add missing break statement.
8293
7f5936f9
MS
8294 Reverting this patch:
8295 * infcall.c (call_function_by_hand): Add break statements for lint.
8296
b2c5f112
MS
8297 Reverting this patch:
8298 * cli/cli-script.c (script_from_file): Add break for lint.
8299
42b1321c
MS
83002011-03-04 Michael Snyder <[email protected]>
8301
8302 * solib.c (reload_shared_libraries_1): Close memory leak.
8303
3e2a0cee
TT
83042011-03-03 Tom Tromey <[email protected]>
8305
8306 PR gdb/12538:
8307 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8308 DW_STRING is NULL.
8309
58397cb7
MS
83102011-03-03 Michael Snyder <[email protected]>
8311
2e3fd767
MS
8312 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8313 fields of struct 'st' to zero.
8314
58397cb7
MS
8315 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8316 sal.pspace before calling set_current_source_symtab_and_line.
8317
ced54c8f
YQ
83182011-03-03 Yao Qi <[email protected]>
8319
8320 * Makefile.in (configure-common): Remove. Let Makefile
8321 in dir common to rebuild itself.
8322 (common/Makefile): Likewise.
8323
3351ea09
JB
83242011-03-03 Joel Brobecker <[email protected]>
8325
8326 * utils.c (parse_escape): Add i18n markup in error message.
8327
bf9f652a
YQ
83282011-03-03 Yao Qi <[email protected]>
8329
8330 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8331 ARM_PC_REGNUM.
8332 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8333 (displaced_write_reg, displaced_read_reg): Likewise.
8334 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8335 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8336 (cleanup_branch): Replace magic number 14 and 15 with
8337 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8338
d42de051
MS
83392011-03-02 Michael Snyder <[email protected]>
8340
240f9570
MS
8341 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8342
10dd8b54
MS
8343 * cli/cli-script.c (script_from_file): Add break for lint.
8344
b98bd911
MS
8345 * mdebugread.c (parse_partial_symbols): Fix indent.
8346
3494b66d
MS
8347 * target-descriptions.c (tdesc_gdb_type): No need to call
8348 xstrdup, callee saves a copy.
8349
daac021a
MS
8350 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8351
c38d16a7
MS
8352 * infcall.c (call_function_by_hand): Add break statements for lint.
8353
905b671b
MS
8354 * utils.c (parse_escape): Escape the escape char.
8355
f2eb0bc8 8356 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8357 PyList_Append fails.
8358 (gdbpy_inferiors): Error out if build_inferior_list fails.
8359
8c6a60d1
MS
8360 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8361 a function call.
8362
d42de051
MS
8363 * record.c (record_restore): Move printf to before error return.
8364
4db71c0b
YQ
83652011-03-02 Yao Qi <[email protected]>
8366
8367 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8368 is_thumb and insn_size.
8369 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8370 on both ARM and Thumb mode.
8371 (arm_process_displaced_insn): Set is_thumb and insn_size.
8372 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8373 (arm_displaced_step_fixup): Likewise.
8374
a9dc8dcc
MS
83752011-03-01 Michael Snyder <[email protected]>
8376
53624a93
MS
8377 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8378
77766669
MS
8379 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8380
62d5b8da
MS
8381 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8382
5e9e105f
MS
8383 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8384
dc19db01
MS
8385 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8386 with xmalloc.
8387
5ce64950
MS
8388 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8389 which shadows function parameter.
8390
a0aa2878
MS
8391 * tracepoint.c (create_tsv_from_upload): Superfluous call
8392 to xstrdup. Callee already calls xstrdup.
8393
e325fb69
MS
8394 * linespec.c (decode_line_1): Remove unnecessary null check.
8395
21cbba77
MS
8396 * tracepoint.c (scope_info): Fix mem leak, remove underused
8397 variable.
8398
63360adc
MS
8399 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8400 superfluous null check.
8401
18ea20ac 8402 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8403 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8404
d014929c
MS
8405 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8406
6e9130cf
MS
8407 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8408 be null.
8409
5f01dbc0
MS
8410 * linespec.c (decode_line_1): Check for null before dereference.
8411
d684ab85
MS
8412 * reverse.c (record_restore): Move null-check to before pointer
8413 dereference.
8414
bfffb7e3
MS
8415 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8416
a9dc8dcc
MS
8417 * objc-lang.c (selectors_info): Add explanitory comment.
8418 (classes_info): Ditto.
8419
478fd957
UW
84202011-03-01 Ulrich Weigand <[email protected]>
8421
8422 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8423 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8424 versions of the trampoline. Handle Thumb vs. ARM addresses.
8425 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8426 (arm_linux_init_abi): Install it.
8427 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8428 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8429
0480cefa
MS
84302011-02-28 Michael Snyder <[email protected]>
8431
ac50ab3b
MS
8432 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8433 a little bigger, to avoid possibility of an overflow.
8434
f63fbe86
MS
8435 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8436 buffers a little bigger, to avoid possibility of an overflow.
8437
9e91a352
MS
8438 * coffread.c (coff_getfilename): Add check to avoid overflow.
8439
f2eb0bc8 8440 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8441 avoid overflow.
8442 (classes_info): Error out on too long REGEXP.
8443
098ab512
MS
8444 * infrun.c (handle_inferior_event): Remove unused function call.
8445
bcbd1de9
MS
8446 * fork-child.c (fork_inferior): Remove ifdef'd code and
8447 unused variable.
8448
2e456570
MS
8449 * linux-thread-db.c (attach_thread): Discard unused value.
8450
14571dad
MS
8451 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8452
a9cbf802
MS
8453 * remote.c (remote_get_noisy_reply): Discard unused value.
8454 (remote_vcont_resume): Ditto.
8455 (remote_stop_ns): Ditto.
8456
5715d26e
MS
8457 * linespec.c (decode_objc): Delete unused variable.
8458
4a9bca80
MS
8459 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8460
f47fb265
MS
8461 * dwarf2read.c (add_partial_symbol): Discard unused values.
8462 (read_base_type): Delete unused variable.
8463
e81cff30
MS
8464 * dbxread.c (read_dbx_symtab): Discard unused value.
8465
262acaeb
MS
8466 * eval.c (evaluate_subexp_standard): Delete unused variable,
8467 and discard unused values.
8468
df983543
MS
8469 * infcmd.c (_initialize_infcmd): Discard unused values.
8470
89acf84d
MS
8471 * stabsread.c (rs6000_builtin_type): Missing break statement.
8472
ab8b8aca
MS
8473 * dbxread.c (process_one_symbol): Discard unused value.
8474
6b4511ab
MS
8475 * coffread.c (coff_end_symtab): Delete unused variable.
8476
e8e80198
MS
8477 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8478 (dwarf2_add_typedef): Delete unused variable.
8479 (read_namespace): Ditto.
8480 (dwarf_decode_macros): Ditto.
8481
976aa66e
MS
8482 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8483
5b92b49f
MS
8484 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8485
91e8df85
MS
8486 * p-valprint.c (pascal_val_print): Discard unused value.
8487
899500d6
MS
8488 * utils.c (nquery): Call va_end before return;
8489 (yquery): Ditto.
8490 (query): Ditto.
8491
0480cefa
MS
8492 * proc-service.c (ps_plog): Call va_end before return.
8493
fb6a3ed3
TT
84942011-02-28 Tom Tromey <[email protected]>
8495
8496 * python/python.c (gdbpy_value_cst): New global.
8497 (_initialize_python): Initialize it.
8498 * python/python-internal.h (gdbpy_value_cst): Declare.
8499 * python/py-value.c (convert_value_from_python): Use
8500 gdbpy_value_cst.
8501
c05202a1
MS
85022011-02-28 Michael Snyder <[email protected]>
8503
e463f587
MS
8504 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8505
c38eea1a
MS
8506 * breakpoint.c (catch_syscall_completer): Free malloced list.
8507
3ef09ab5
MS
8508 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8509
8f9a01ee
MS
8510 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8511 (lval_func_check_synthetic_pointer): Ditto.
8512 (lval_func_free_closure): Fix use-after-free.
c05202a1 8513
477d0d57
TT
85142011-02-28 Tom Tromey <[email protected]>
8515
8516 * psymtab.c (expand_partial_symbol_tables): Use
8517 ALL_OBJFILE_PSYMTABS.
8518
20937029
JK
85192011-02-28 Jan Kratochvil <[email protected]>
8520
8521 * objc-lang.c (selectors_info): Error on too long REGEXP.
8522
907b7f4f
MS
85232011-02-28 Michael Snyder <[email protected]>
8524
92e96192
MS
8525 * python/py-param.c (set_parameter_value): Add missing
8526 break statement.
8527
907b7f4f
MS
8528 * linux-record.c (record_linux_system_call): Add missing
8529 break statement.
8530
12c5a436
UW
85312011-02-28 Ulrich Weigand <[email protected]>
8532
8533 * breakpoint.c (print_one_breakpoint_location): Remove unused
8534 argument PRINT_ADDRESS_BITS. Update callers.
8535 (print_one_breakpoint): Likewise.
8536
170b53b2
UW
85372011-02-28 Ulrich Weigand <[email protected]>
8538
8539 * breakpoint.c (wrap_indent_at_field): New function.
8540 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8541 Allocate ui_stream locally instead of using STB argument.
8542 (print_one_breakpoint_location): Update call.
8543 * ui-out.c (ui_out_query_field): New function.
8544 * ui-out.h (ui_out_query_field): Add prototype.
8545
8ab1f94d
JB
85462011-02-28 Joel Brobecker <[email protected]>
8547
8548 From Michael Snyder <[email protected]>
8549 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8550
7d488639
MS
85512011-02-27 Michael Snyder <[email protected]>
8552
ae179fba
MS
8553 * objc-lang.c (selectors_info): Prevent string overrun.
8554
086dbf66
MS
8555 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8556 error in strncpy.
8557
f2eb0bc8 8558 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8559 outer scope.
8560
7d488639
MS
8561 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8562 param with a local variable of the same name.
8563
3bd0f5ef
MS
85642011-02-27 Michael Snyder <[email protected]>
8565
8566 * value.c (value_from_history_ref): New function.
8567 * value.h (value_from_history_ref): Export.
8568 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8569 to parse value history references.
8570 * cli/cli-utils.h (get_number_trailer): Update comment.
8571
85722011-02-27 Michael Snyder <[email protected]>
8573
8574 * inferior.c (detach_inferior_command): Use get_number_or_range.
8575 (kill_inferior_command): Ditto.
8576 (remove_inferior_command): Ditto.
8577 (initialize_inferiors): Make command names plural.
8578 Update help strings.
8579
766062f6
MS
85802011-02-27 Michael Snyder <[email protected]>
8581
8582 * darwin-nat-info.c: Fix comment typo.
8583 * dwarf2expr.h: Ditto.
8584 * fbsd-nat.c: Ditto.
8585 * fbsd-nat.h: Ditto.
8586 * frame-unwind.h: Ditto.
8587 * frame.h: Ditto.
8588 * hppa-hpux-tdep.c: Ditto.
8589 * i386-linux-nat.c: Ditto.
8590 * linux-nat.c: Ditto.
8591 * nbsd-nat.c: Ditto.
8592 * nbsd-nat.h: Ditto.
8593 * ppc-linux-tdep.c: Ditto.
8594 * serial.c: Ditto.
8595 * ui-file.h: Ditto.
8596 * tui/tui-winsource.c: Ditto.
8597
f2c4ead5
MS
85982011-02-26 Michael Snyder <[email protected]>
8599
86b887df
MS
8600 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8601
66fd3b1e
MS
8602 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8603
8c814cdd
MS
8604 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8605 with a local variable of the same name.
8606
6d5e094a 8607 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8608 param with a local variable of the same name.
6d5e094a 8609 (i387_supply_xsave): Ditto.
e5b3d7d6 8610
5eee517d
MS
8611 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8612 that it does not shadow a function parameter.
8613
8fbf6b93
MS
8614 * i386-nat.c (i386_length_and_rw_bits): Document that case
8615 statement is meant to fall through.
8616
cb969d61
MS
8617 * expprint.c (dump_subexp_body_standard): Document that case
8618 statement is meant to fall through.
8619
f2c4ead5
MS
8620 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8621 dead if statement. Condition can't be false.
8622
b021a221
MS
86232011-02-25 Michael Snyder <[email protected]>
8624
8625 * arm-tdep.c: Fix typos in comments.
8626 * bsd-uthread.c: Ditto.
8627 * completer.c: Ditto.
8628 * corelow.c: Ditto.
8629 * cp-namespace.c: Ditto.
8630 * cp-support.c: Ditto.
8631 * cris-tdep.c: Ditto.
8632 * dbxread.c: Ditto.
8633 * dwarf2read.c: Ditto.
8634 * frame.h: Ditto.
8635 * gdbtypes.h: Ditto.
8636 * inferior.h: Ditto.
8637 * mdebugread.c: Ditto.
8638 * mips-tdep.c: Ditto.
8639 * ppc-linux-nat.c: Ditto.
8640 * ppc-linux-tdep.c: Ditto.
8641 * printcmd.c: Ditto.
8642 * sol-thread.c: Ditto.
8643 * solib-frv.c: Ditto.
8644 * solist.h: Ditto.
8645 * sparc64-tdep.c: Ditto.
8646 * spu-tdep.c: Ditto.
8647 * stabsread.c: Ditto.
8648 * symfile.c: Ditto.
8649 * valops.c: Ditto.
8650 * varobj.c: Ditto.
8651 * vax-nat.c: Ditto.
8652 * python/py-block.c: Ditto.
8653 * python/py-symbol.c: Ditto.
8654 * python/py-symtab.c: Ditto.
8655 * python/py-value.c: Ditto.
8656 * tui/tui-win.c: Ditto.
8657
c82c0b55
MS
86582011-02-25 Michael Snyder <[email protected]>
8659
8660 * inferior.c (print_inferior): Accept a string instead of an int
8661 for requested_inferiors, and use get_number_or_range to parse it.
8662 (info_inferiors_command): Pass args string to print_inferior.
8663 (initialize_inferiors): Change help string for info inferiors.
8664 * inferior.h (print_inferior): Export prototype change.
8665
ee00cd23
TT
86662011-02-25 Tom Tromey <[email protected]>
8667
8668 * common/ax.def (invalid2): Set to 0x31.
8669
0502ed8c
JK
86702011-02-25 Jan Kratochvil <[email protected]>
8671
8672 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8673 L and plongest.
8674 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8675 use L and plongest.
8676 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8677
2c9de912
MS
86782011-02-24 Michael Snyder <[email protected]>
8679
8680 * Makefile.in (clean): Make clean should remove generated files
8681 observer.h and observer.inc.
8682
a04b0428
JB
86832011-02-24 Joel Brobecker <[email protected]>
8684
8685 Revert the following patch (not approved yet):
8686 2011-02-21 Hui Zhu <[email protected]>
8687 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8688 * ax-gdb.c (gen_printf_expr_callback): New function.
8689 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8690 * ax-general.c (ax_memcpy): New function.
8691 (ax_print): Handle "printf".
8692 (ax_reqs): Ditto.
8693 * ax.h (ax_memcpy): Forward declare.
8694 * common/ax.def (invalid2): Removed.
8695 (printf): New entry.
8696 * printcmd.c (printcmd.h): New include.
8697 (string_printf): New function.
8698 (ui_printf): Removed.
8699 (printf_command): Remove static. Call string_printf.
8700 (eval_command): Call string_printf.
8701 * printcmd.h: New file.
8702 * tracepoint.c (validate_actionline,
8703 encode_actions_1): handle printf_command.
8704
2b52013f
TT
87052011-02-23 Tom Tromey <[email protected]>
8706
8707 * ax-general.c (ax_pick): Add missing newline.
8708
e5a67952
MS
87092011-02-23 Michael Snyder <[email protected]>
8710
8711 * breakpoint.c (breakpoint_1): Change first argument from an int
8712 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8713 breakpoints rather than just one. Use new function
e5a67952
MS
8714 'number_is_in_list' to implement.
8715 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8716 (watchpoints_info): Ditto.
8717 (tracepoints_info): Ditto.
8718 (maintenance_info_breakpoints): Ditto.
8719 (_initialize_breakpoint): Update help strings to reflect the fact
8720 that these functions can now take more than one argument.
8721 * cli/cli-utils.c (number_is_in_list): New function.
8722 * cli/cli-utils.h (number_is_in_list): Export.
8723
87242011-02-23 Michael Snyder <[email protected]>
fbcb778d
MS
8725
8726 * memattr.c (mem_enable_command): Use get_number_or_range.
8727 (mem_disable_command): Ditto.
8728 (mem_delete_command): Ditto.
8729 (_initialize_mem): Tweak usage message to reflect multiple
8730 arguments.
8731
6e6fbe60
DE
87322011-02-22 Doug Evans <[email protected]>
8733
8734 Add gdb.lookup_global_symbol python function.
8735 * NEWS: Add entry.
8736 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8737 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8738 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8739
79b97fa8
TT
87402011-02-22 Tom Tromey <[email protected]>
8741
8742 * language.c (language_class_name_from_physname): Rename
8743 'curr_language' argument to 'lang'; use in body.
8744
298f437a
MS
87452011-02-22 Michael Snyder <[email protected]>
8746
8747 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8748
b7ea3126
PA
87492011-02-22 Pedro Alves <[email protected]>
8750
8751 * frame-unwind.h: Fix comment to mention the this frame, not the
8752 next.
8753
58ee6d60
TT
87542011-02-22 Tom Tromey <[email protected]>
8755
8756 * symfile.c (auto_solib_limit): Remove.
8757 * symfile.h (auto_solib_limit): Remove.
8758
36238dbc
JB
87592011-02-22 Joel Brobecker <[email protected]>
8760
8761 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8762
aea5b279
MS
87632011-02-21 Michael Snyder <[email protected]>
8764
8765 * gdbthread.h (print_thread_info): Change prototype.
8766 * thread.c (print_thread_info): Accept char* instead of int for
8767 requested_threads argument. Use new function number_is_in_list
8768 to determine which threads to list.
8769 (info_threads_command): Pass char* to print_thread_info.
8770 * cli/cli-utils.c (number_is_in_list): New function.
8771 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8772 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8773 print_thread_info.
8774 (print_one_inferior): Ditto.
8775 (mi_cmd_list_thread_groups): Ditto.
8776
8caa75ee
JK
87772011-02-21 Jan Kratochvil <[email protected]>
8778
8779 * common/Makefile.in (CFLAGS): New.
8780 (COMPILE): Add $(CFLAGS).
8781
ea666128
TT
87822011-02-21 Tom Tromey <[email protected]>
8783
8784 * breakpoint.c (catch_syscall_command_1): Fix typo.
8785
e9cafbcc
TT
87862011-02-21 Tom Tromey <[email protected]>
8787
8788 * reverse.c: Include cli-utils.h.
8789 * printcmd.c: Include cli-utils.h.
8790 (string_printf): Use skip_spaces.
8791 * cli/cli-utils.h: New file.
8792 * cli/cli-utils.c: New file.
8793 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8794 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8795 * breakpoint.h (get_number, get_number_or_range): Move to
8796 cli-utils.h.
8797 * breakpoint.c: Include cli-utils.h.
8798 (get_number_trailer, get_number, get_number_or_range)
8799 (ep_skip_leading_whitespace): Move to cli-utils.c.
8800 (create_breakpoint_sal, find_condition_and_thread)
8801 (decode_static_tracepoint_spec, watch_command_1)
8802 (watch_maybe_just_location, ep_parse_optional_if_clause)
8803 (catch_fork_command_1, catch_exec_command_1)
8804 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8805 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8806 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8807 (HFILES_NO_SRCDIR): Add cli-utils.h.
8808 (cli-utils.o): New target.
8809
f67fd822
PM
88102011-02-18 Pierre Muller <[email protected]>
8811
8812 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8813 before calling discard_all_inferiors.
8814
c9def01d
UW
88152011-02-21 Ulrich Weigand <[email protected]>
8816
8817 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8818 (struct builtin_opencl_type): Remove.
8819 (builtin_opencl_type): Change return type to "struct type **".
8820 (lookup_opencl_vector_type): Update caller.
8821 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8822 (build_opencl_types): Install plain array of "struct type *"
8823 instead of "struct builtin_opencl_type".
8824
e3039479
UW
88252011-02-21 Matthew Gretton-Dann <[email protected]>
8826 Ulrich Weigand <[email protected]>
8827
8828 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8829 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8830 (struct arm_linux_hwbp_cap): New type.
8831 (arm_linux_get_hwbp_cap): New function.
8832 (arm_linux_get_hw_breakpoint_count): Likewise.
8833 (arm_linux_get_hw_watchpoint_count): Likewise.
8834 (arm_linux_can_use_hw_breakpoint): Likewise.
8835 (arm_hwbp_type): New type.
8836 (arm_hwbp_control_t): Likewise.
8837 (struct arm_linux_hw_breakpoint): Likewise.
8838 (struct arm_linux_thread_points): Likewise.
8839 (arm_threads): New global variable.
8840 (arm_linux_find_breakpoints_by_tid): New function.
8841 (arm_hwbp_control_initialize): Likewise.
8842 (arm_hwbp_control_is_enabled): Likewise.
8843 (arm_hwbp_control_disable): Likewise.
8844 (arm_linux_hw_breakpoint_initialize): Likewise.
8845 (arm_linux_get_hwbp_type): Likewise.
8846 (arm_linux_hw_watchpoint_initialize): Likewise.
8847 (arm_linux_hw_breakpoint_equal): Likewise.
8848 (arm_linux_insert_hw_breakpoint1): Likewise.
8849 (arm_linux_remove_hw_breakpoint1): Likewise.
8850 (arm_linux_insert_hw_breakpoint): Likewise.
8851 (arm_linux_remove_hw_breakpoint): Likewise.
8852 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8853 (arm_linux_insert_watchpoint): Likewise.
8854 (arm_linux_remove_watchpoint): Likewise.
8855 (arm_linux_stopped_data_address): Likewise.
8856 (arm_linux_stopped_by_watchpoint): Likewise.
8857 (arm_linux_watchpoint_addr_within_range): Likewise.
8858 (arm_linux_new_thread): Likewise.
8859 (arm_linux_thread_exit): Likewise.
8860 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8861 related target callbacks. Register arm_linux_new_thread and
8862 arm_linux_thread_exit.
8863 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8864 * arm-tdep.c (arm_pc_is_thumb): Make global.
8865 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8866
b5db5dfc
UW
88672011-02-21 Ulrich Weigand <[email protected]>
8868
8869 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8870 per-frame locations while within a function epilogue.
8871
e25b2cfa
PM
88722011-02-21 Pierre Muller <[email protected]>
8873
8874 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8875 to GNU coding standards.
8876
4af53f97
PM
88772011-02-21 Pierre Muller <[email protected]>
8878
8879 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8880 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8881 (ser_windows_close): Only call CancelIo if function exists.
8882 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8883 to check for existence of CancelIo function in kernel32 DLL.
8884
d0e92d82
HZ
88852011-02-21 Hui Zhu <[email protected]>
8886
8887 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8888 * ax-gdb.c (gen_printf_expr_callback): New function.
8889 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8890 * ax-general.c (ax_memcpy): New function.
8891 (ax_print): Handle "printf".
8892 (ax_reqs): Ditto.
8893 * ax.h (ax_memcpy): Forward declare.
8894 * common/ax.def (invalid2): Removed.
8895 (printf): New entry.
8896 * printcmd.c (printcmd.h): New include.
8897 (string_printf): New function.
8898 (ui_printf): Removed.
8899 (printf_command): Remove static. Call string_printf.
8900 (eval_command): Call string_printf.
8901 * printcmd.h: New file.
8902 * tracepoint.c (validate_actionline,
8903 encode_actions_1): handle printf_command.
8904
7d357efd
MS
89052011-02-19 Michael Snyder <[email protected]>
8906
8907 * reverse.c (delete_one_bookmark): Argument is now bookmark
8908 id rather than pointer to bookmark struct.
8909 (delete_bookmark_command): Use get_number_or_range.
8910 (goto_bookmark_command): Parse with get_number instead of strtoul.
8911 (bookmark_1): New function. Print info for one bookmark.
8912 (bookmarks_info): Use get_number_or_range and bookmark_1.
8913
7a45ebd7
MS
89142011-02-18 Michael Snyder <[email protected]>
8915
f2eb0bc8 8916 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8917 get_number_or_range.
65ebfb52 8918 (thread_apply_command): Ditto.
7a45ebd7 8919
94d5e490
TT
89202011-02-18 Tom Tromey <[email protected]>
8921
8922 * common/ax.def: New file.
8923 * ax.h (enum agent_op): Use ax.def.
8924 * ax-general.c (aop_map): Use ax.def.
8925
c7f96d2b
TT
89262011-02-18 Tom Tromey <[email protected]>
8927
8928 * ax-general.c (aop_map): Add pick and rot.
8929 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8930 <DW_OP_rot>: Implement.
8931 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8932 (ax_pick): Declare.
8933 * ax-general.c (ax_pick): New function.
8934
66694b75
TT
89352011-02-18 Tom Tromey <[email protected]>
8936
8937 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8938
eeaafae2
JK
89392011-02-18 Jan Kratochvil <[email protected]>
8940 Tom Tromey <[email protected]>
8941
8942 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8943 make_symbol_overload_list_block with NULL BLOCK.
8944 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8945
3c3fe74c
PA
89462011-02-18 Pedro Alves <[email protected]>
8947
8948 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8949 * breakpoint.h (get_number_or_range): Declare.
8950 * printcmd.c (ALL_DISPLAYS): Declare.
8951 (delete_display): Reimplement taking a display pointer.
8952 (undisplay_command): Accept a range of displays to delete, using
8953 get_number_or_range.
8954
13163d80
PM
89552011-02-18 Pierre Muller <[email protected]>
8956
8957 * c-valprint.c (c_val_print): Add embedded_offset to address
8958 for arrays of unspecified length.
8959 * p-valprint.c (pascal_val_print): Likewise.
8960
b434a28f
YQ
89612011-02-18 Yao Qi <[email protected]>
8962
8963 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8964 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8965 (thumb_process_displaced_insn): New.
8966 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8967 call to arm_process_displaced_insn.
8968 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8969
9f6f94ff
TT
89702011-02-17 Tom Tromey <[email protected]>
8971
8972 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8973 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8974 compile_dwarf_to_ax. No longer static. Call
8975 dwarf2_compile_cfa_to_ax.
8976 (locexpr_tracepoint_var_ref): Update.
8977 (loclist_tracepoint_var_ref): Update.
8978 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8979 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8980 argument; add 'gdbarch' and 'pc'.
8981 (dwarf2_compile_cfa_to_ax): New function.
8982 (dwarf2_frame_cache): Update.
8983
e67ad678
JB
89842011-02-17 Joel Brobecker <[email protected]>
8985
8986 * ada-lang.c (ada_type_of_array): Fix the size of the array
8987 in the case of an unconstrained packed array.
8988
946ebb0d
YQ
89892011-02-17 Yao Qi <[email protected]>
8990
8991 * common/Makefile.in: Add more targets for make.
8992
1ba1b353
TT
89932011-02-16 Tom Tromey <[email protected]>
8994
8995 * dwarf2loc.c (unimplemented): Fix typo.
8996
b1bfef65
TT
89972011-02-16 Tom Tromey <[email protected]>
8998
8999 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9000 (compile_dwarf_to_ax) <default>: Use unimplemented.
9001 <DW_OP_deref>: Update.
9002 (disassemble_dwarf_expression): Update.
9003 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9004 (decode_locdesc): Update.
9005 * dwarf2expr.h (dwarf_stack_op_name): Update.
9006
5f1e6f19
TT
90072011-02-16 Tom Tromey <[email protected]>
9008
9009 * ax.h (struct aop_map) <name>: Now const.
9010
a0c78a73
PA
90112011-02-16 Tom Tromey <[email protected]>
9012
9013 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9014 than axs_rvalue.
9015
946ebb0d 90162011-02-16 Yao Qi <[email protected]>
a42244db
YQ
9017
9018 * infrun.c (get_displaced_step_closure_by_addr): New.
9019 * inferior.h: Declare it.
9020 * arm-tdep.c: (arm_pc_is_thumb): Call
9021 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9022 returns non-NULL.
9023
08807d5a
PA
90242011-02-16 Pedro Alves <[email protected]>
9025 Jan Kratochvil <[email protected]>
9026
9027 gdb/
9028 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9029
29976f3f
PA
90302011-02-16 Pedro Alves <[email protected]>
9031 Jan Kratochvil <[email protected]>
9032
9033 * value.c (value_contents_copy_raw): Extend describing comment.
9034 Assert that the destination contents we're overwriting are wholly
9035 available.
fb68ae73 9036 (value_contents_copy): Extend describing comment.
29976f3f 9037
cd24cfaa
PA
90382011-02-16 Pedro Alves <[email protected]>
9039 Jan Kratochvil <[email protected]>
9040
9041 * value.c (value_available_contents_eq): Remove redundant local
9042 variables. Fix available contents comparision.
9043 * value.h (value_available_contents_eq): Extend describing
9044 comment.
9045
60bbf338
YQ
90462011-02-16 Yao Qi <[email protected]>
9047
9048 * thread.c (info_threads_command): Add missing i18n markup and remove
9049 trailing newline.
9050
17450429
PP
90512011-02-15 Paul Pluzhnikov <[email protected]>
9052
9053 * breakpoint.c (longjmp_names): New variable.
9054 (struct breakpoint_objfile_data): New type.
9055 (breakpoint_objfile_key): New variable.
9056 (msym_not_found): New variable.
9057 (msym_not_found_p): New predicate.
9058 (get_breakpoint_objfile_data): New function.
9059 (create_overlay_event_breakpoint): Check per-objfile cache for
9060 symbols first.
9061 (create_longjmp_master_breakpoint): Likewise.
9062 (create_std_terminate_master_breakpoint): Likewise.
9063 (create_exception_master_breakpoint): Likewise.
9064 (_initialize_breakpoint): Register per-objfile data key.
9065
af02033e
PP
90662011-02-15 Paul Pluzhnikov <[email protected]>
9067
9068 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9069 parameter value.
9070 (create_longjmp_master_breakpoint): Loop over longjmp names.
9071 (create_std_terminate_master_breakpoint): Const-propagate parameter
9072 value.
9073 (update_breakpoints_after_exec): Adjust.
9074 (breakpoint_re_set): Adjust.
9075
60f98dde
MS
90762011-02-15 Michael Snyder <[email protected]>
9077
cdf99611
MS
9078 * thread.c (info_threads_command): Process arg as thread id,
9079 or list of thread ids.
9080 (thread_find_command): New command.
9081 (_initialize_thread): Document argument for info threads.
9082 Document 'thread find' command.
9083 * NEWS: Document new command "thread find".
60f98dde 9084
0feedb2c
JK
90852011-02-15 Jan Kratochvil <[email protected]>
9086
9087 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9088 * aclocal.m4: Regenerated with aclocal-1.11.1.
9089 * common/configure: Regenerate with autoconf-2.64.
9090
648cd113
KW
90912011-02-15 Ken Werner <[email protected]>
9092
9093 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9094 bool data type to a size of one byte.
9095
5657161f
PA
90962011-02-15 Pedro Alves <[email protected]>
9097 Jan Kratochvil <[email protected]>
9098
9099 * target.c (memory_xfer_live_readonly_partial): Document where to
9100 look for interface description.
9101
494e194e
YQ
91022011-02-15 Yao Qi <[email protected]>
9103
9104 PR tdep/12352
9105 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9106 order to store PC value on stack instead of text section.
9107
d9492458
TJB
91082011-02-15 Thiago Jung Bauermann <[email protected]>
9109
9110 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9111 the EFP register set size.
9112 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9113 data from the VMX register.
9114 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9115 and write data from/to the VMX register.
9116
cdf99611
MS
91172011-02-14 Michael Snyder <[email protected]>
9118
9119 * command.h (enum command_class): New class 'no_set_class', for
9120 "show" commands without a corresponding "set" command.
9121 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9122 * copying.c (_initialize_copying): Ditto for "show copying" and
9123 "show warranty".
9124 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9125 "show version".
9126 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9127 which there is no corresponding "set" command (eg. "show copying").
9128
424447ee
PA
91292011-02-14 Pedro Alves <[email protected]>
9130 Jan Kratochvil <[email protected]>
9131
9132 * exec.c (section_table_available_memory): Change `len' parameter
9133 type to ULONGEST.
9134 * exec.h (section_table_available_memory): Ditto.
9135 * value.h (read_value_memory): Rename the `offset' parameter to
9136 `embedded_offset'.
9137
c0f61f9c 91382011-02-14 Pedro Alves <[email protected]>
e0ccc0c7 9139 Jan Kratochvil <[email protected]>
c0f61f9c
PA
9140
9141 * memrange.c (compare_mem_ranges): Mention sort order in
9142 describing comment.
9143 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9144 * tracepoint.c (traceframe_available_memory): Extend comment to
9145 mention what happens to RESULT when the target does not support
9146 the query.
9147
6bfc80c7
PA
91482011-02-14 Pedro Alves <[email protected]>
9149 Jan Kratochvil <[email protected]>
9150
9151 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9152 range.
9153
e7303042
PA
91542011-02-14 Pedro Alves <[email protected]>
9155
9156 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9157 No longer handle NULL values.
9158
8af8e3bc
PA
91592011-02-14 Pedro Alves <[email protected]>
9160
9161 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9162 * value.c: Include "exceptions.h".
9163 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9164 generic error.
9165 * cp-abi.c: Include gdb_assert.h.
9166 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9167 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9168 errors.
9169 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9170 parameters. No longer returns -1 on error.
9171 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9172 `val' parameters.
9173 * cp-valprint.c: Include exceptions.h.
9174 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9175 the baseclass_offset. Handle unavailable base classes. Use
9176 val_print_invalid_address.
9177 * p-valprint.c: Include exceptions.h.
9178 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9179 when fetching the baseclass_offset. No longer expect
9180 baseclass_offset returning -1. Handle unavailable base classes.
9181 Use val_print_invalid_address.
9182 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9183 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9184 `embedded_offset' and `val' parameters. Adjust.
9185 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9186 parameter, and change its type to gdb_byte pointer. Add
9187 `embedded_offset' and `val' parameters. Adjust. No longer expect
9188 baseclass_offset returning -1.
9189 (value_dynamic_cast): Use value_contents_for_printing rather than
9190 value_contents. Adjust.
9191 (search_struct_field): No longer expect baseclass_offset returning
9192 -1.
9193 (search_struct_method): If reading memory from the target is
9194 necessary, wrap it in a new value to pass to baseclass_offset. No
9195 longer expect baseclass_offset returning -1.
9196 (find_method_list): No longer expect baseclass_offset returning
9197 -1. Use value_contents_for_printing rather than value_contents.
9198 * valprint.c (val_print_invalid_address): New function.
9199 * valprint.h (val_print_invalid_address): Declare.
9200 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9201 and `val' parameters. No longer expect baseclass_offset returning
9202 -1. Adjust.
9203 * gnu-v2-abi.c: Include "exceptions.h".
9204 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9205 parameters. Handle unavailable memory. Recurse through
9206 gnuv2_baseclass_offset directly, rather than through
9207 baseclass_offset. No longer returns -1 on not found, instead
9208 throw an error.
9209 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9210 `val' parameters. Adjust.
9211
1b28d0b3
PA
92122011-02-14 Pedro Alves <[email protected]>
9213
9214 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9215 almost but not quite adjacent.
9216
ec0a52e1
PA
92172011-02-14 Pedro Alves <[email protected]>
9218
9219 * value.h (value_entirely_available): Declare.
9220 * value.c (value_entirely_available): New function.
9221 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9222 real type if the pointer is unavailable.
9223
24e6bcee
PA
92242011-02-14 Pedro Alves <[email protected]>
9225
9226 * valops.c (value_repeat): Use read_value_memory instead of
9227 read_memory.
9228
39d37385
PA
92292011-02-14 Pedro Alves <[email protected]>
9230
9231 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9232 * value.c (value_contents_copy_raw, value_contents_copy): New
9233 functions.
9234 (value_primitive_field): Use value_contents_copy_raw instead of
9235 memcpy.
9236 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9237 memcpy.
9238 (value_array, value_slice): Ditto.
9239 * valarith.c (value_subscripted_rvalue): Use
9240 value_contents_copy_raw instead of memcpy.
9241
a3d34bf4
PA
92422011-02-14 Pedro Alves <[email protected]>
9243
9244 <unavailable> references.
9245
9246 * valops.c (get_value_at): Use value_from_contents_and_address,
9247 avoiding read_memory.
9248
9fc6d940
PA
92492011-02-14 Pedro Alves <[email protected]>
9250
9251 * c-valprint.c (c_val_print): Print a string with unavailable
9252 contents as an array.
9253
5467c6c8
PA
92542011-02-14 Pedro Alves <[email protected]>
9255
9256 * value.h (unpack_bits_as_long): Delete declaration.
9257 (unpack_value_bits_as_long): Declare.
9258 (unpack_value_field_as_long): Declare.
9259 (value_field_bitfield): Declare.
9260 * value.c (unpack_bits_as_long): Rename to...
9261 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9262 value parameters. Return the extracted result in a new output
9263 parameter. If the value contents are unavailable, return false,
9264 otherwise return true.
9265 (unpack_value_bits_as_long): New.
9266 (unpack_field_as_long): Rename to...
9267 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9268 Add embedded_offset and value parameters. Return the extracted
9269 result in a new output parameter. If the value contents are
9270 unavailable, return false, otherwise return true.
9271 (unpack_value_field_as_long): New.
9272 (unpack_field_as_long_1): New.
9273 (unpack_field_as_long): Reimplement as wrapper around
9274 unpack_value_field_as_long_1.
9275 (value_field_bitfield): New function.
9276 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9277 unpack_value_bits_as_long. Mark the value as unavailable, if it
9278 is unavailable.
9279 * jv-valprint.c (java_print_value_fields): Use
9280 value_field_bitfield.
9281 * p-valprint.c (pascal_object_print_value_fields): Use
9282 value_field_bitfield.
9283 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9284
3158c6ed
PA
92852011-02-14 Pedro Alves <[email protected]>
9286
9287 * value.c (get_internalvar_integer): Also return the int value of
9288 TYPE_CODE_INT INTERNALVAR_VALUE values.
9289 (set_internalvar): Don't special case TYPE_CODE_INT.
9290
9fbdca0d
PA
92912011-02-14 Pedro Alves <[email protected]>
9292
9293 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9294 INTERNALVAR_POINTER.
9295 <pointer>: Delete.
9296 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9297 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9298 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9299
c8c1c22f
PA
93002011-02-14 Pedro Alves <[email protected]>
9301
9302 * value.h (value_available_contents_eq): Declare.
9303 * value.c (find_first_range_overlap): New function.
9304 (value_available_contents_eq): New function.
9305 * valprint.c (val_print_array_elements): Use
9306 value_available_contents_eq.
9307 * ada-valprint.c (val_print_packed_array_elements): Use
9308 value_available_contents_eq.
9309 * jv-valprint.c (java_value_print): Use
9310 value_available_contents_eq.
9311
e6e4e701
PA
93122011-02-14 Pedro Alves <[email protected]>
9313
9314 * target.c (target_read_live_memory): New function.
9315 (memory_xfer_live_readonly_partial): New.
9316 (memory_xfer_partial): If reading from a traceframe, fallback to
9317 reading unavailable read-only memory from read-only regions of
9318 live target memory.
9319 * tracepoint.c (disconnect_tracing): Adjust.
9320 (set_current_traceframe): New, factored out from
9321 set_traceframe_number.
9322 (set_traceframe_number): Reimplement to only change the traceframe
9323 number on the GDB side.
9324 (do_restore_current_traceframe_cleanup): Adjust.
9325 (make_cleanup_restore_traceframe_number): New.
9326 (cur_traceframe_number): New global.
9327 (tfile_open): Set cur_traceframe_number to no traceframe.
9328 (set_tfile_traceframe): New function.
9329 (tfile_trace_find): If looking up a traceframe using any method
9330 other than by number, make sure the current tfile traceframe
9331 matches gdb's current traceframe. Update the current tfile
9332 traceframe if the lookup succeeded.
9333 (tfile_fetch_registers, tfile_xfer_partial)
9334 (tfile_get_trace_state_variable_value): Make sure the remote
9335 traceframe matches gdb's current traceframe.
9336 * remote.c (remote_traceframe_number): New global.
9337 (remote_open_1): Set it to -1.
9338 (set_remote_traceframe): New function.
9339 (remote_fetch_registers, remote_store_registers)
9340 (remote_xfer_memory, remote_xfer_partial)
9341 (remote_get_trace_state_variable_value): Make sure the remote
9342 traceframe matches gdb's current traceframe.
9343 (remote_trace_find): If looking up a traceframe using any method
9344 other than by number, make sure the current remote traceframe
9345 matches gdb's current traceframe. Update the current remote
9346 traceframe if the lookup succeeded.
9347 * infrun.c (fetch_inferior_event): Adjust.
9348 * tracepoint.h (set_current_traceframe): Declare.
9349 (get_traceframe_number, set_traceframe_number): Add describing
9350 comments.
9351
e6ca34fc
PA
93522011-02-14 Pedro Alves <[email protected]>
9353
9354 Mark pieces of values as unavailable if the corresponding memory
9355 is unavailable.
9356
9357 * valops.c: Include tracepoint.h.
9358 (value_fetch_lazy): Use read_value_memory.
9359 (read_value_memory): New.
9360 * value.h (read_value_memory): Declare.
9361 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9362 * exec.c (section_table_available_memory): New function.
9363 * exec.h (section_table_available_memory): Declare.
9364
2a7498d8
PA
93652011-02-14 Pedro Alves <[email protected]>
9366
9367 * Makefile.in (SFILES): Add memrange.c.
9368 (HFILES_NO_SRCDIR): Add memrange.h.
9369 (COMMON_OBS): Add memrange.o.
9370 * memrange.c: New file.
9371 * memrange.h: New file.
9372 * tracepoint.c: Include memrange.h.
9373 (struct mem_range): Delete.
9374 (mem_range_s): Delete.
9375 (traceframe_available_memory): New function.
9376 * tracepoint.h (traceframe_available_memory): Declare.
9377
b3b9301e
PA
93782011-02-14 Pedro Alves <[email protected]>
9379
9380 * target.h (struct traceframe_info): Forward declare.
9381 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9382 (struct target_ops) <to_traceframe_info>: New field.
9383 (target_traceframe_info): New.
9384 * target.c (update_current_target): Inherit and default
9385 to_traceframe_info.
9386 * remote.c (PACKET_qXfer_traceframe_info): New.
9387 (remote_protocol_features): Register qXfer:traceframe-info:read.
9388 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9389 (remote_traceframe_info): New.
9390 (init_remote_ops): Install it.
9391 (_initialize_remote): Install "set/show remote traceframe-info"
9392 commands.
9393 * tracepoint.h (parse_traceframe_info): Declare.
9394 * tracepoint.c (struct mem_range): New.
9395 (mem_range_s): New typedef.
9396 (struct traceframe_info): New.
9397 (traceframe_info): New global.
9398 (free_traceframe_info): New function.
9399 (clear_traceframe_info): New function.
9400 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9401 info.
9402 (build_traceframe_info): New function.
9403 (tfile_traceframe_info): New function.
9404 (init_tfile_ops): Install tfile_traceframe_info.
9405 (traceframe_info_start_memory, free_result): New functions.
9406 (memory_attributes, traceframe_info_elements): New globals.
9407 (parse_traceframe_info, get_traceframe_info): New functions.
9408 * features/traceframe-info.dtd: New file.
9409 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9410
4e07d55f
PA
94112011-02-14 Pedro Alves <[email protected]>
9412
9413 Base support for <unavailable> value contents.
9414
4e07d55f
PA
9415 * value.h (value_bytes_available): Declare.
9416 (mark_value_bytes_unavailable): Declare.
9417 * value.c (struct range): New struct.
9418 (range_s): New typedef.
9419 (ranges_overlap): New function.
9420 (range_lessthan): New function.
9421 (ranges_contain_p): New function.
9422 (struct value) <unavailable>: New field.
9423 (value_bytes_available): New function.
9424 (mark_value_bytes_unavailable): New function.
9425 (require_not_optimized_out): Constify parameter.
9426 (require_available): New function.
9427 (value_contents_all, value_contents): Require all bytes be
9428 available.
9429 (value_free): Free `unavailable'.
9430 (value_copy): Copy `unavailable'.
9431 * valprint.h (val_print_unavailable): Declare.
9432 * valprint.c (valprint_check_validity): Rename `offset' parameter
9433 to `embedded_offset'. If printing a scalar, check whether the
9434 value chunk is available.
9435 (val_print_unavailable): New.
9436 (val_print_scalar_formatted): Check whether the value is
9437 available.
9438 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9439 pretty-printing unavailable values.
9440
bc9a5551
JK
94412011-02-13 Jan Kratochvil <[email protected]>
9442
9443 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9444 * c-typeprint.c (c_type_print_args): Update the function comment. New
9445 variable param_type, initialize it. Remove const/volatile qualifiers
9446 for language_cplus and !show_artificial. Use param_type.
9447
93b55aa1
JK
94482011-02-13 Jan Kratochvil <[email protected]>
9449
9450 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9451 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9452 * symtab.h (struct symtab) <next>: Comment extension.
9453
181d9476
YQ
94542011-02-12 Yao Qi <[email protected]>
9455
9456 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9457
b708a5c7
JK
94582011-02-11 Yao Qi <[email protected]>
9459
9460 * common/Makefile.in: Add copyright header.
9461
c5187ac6
PA
94622011-02-11 Pedro Alves <[email protected]>
9463
9464 * infrun.c (proceed): Move switching out and in of tfind mode from
9465 here ...
9466 (fetch_inferior_event): ... to here.
9467
4f3e6fb7
YQ
94682011-02-11 Yao Qi <[email protected]>
9469
9470 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9471 libcommon.a.
9472 * configure.ac: Add common to sub dir.
9473 * configure: Regenerate.
9474
b708a5c7
JK
94752011-02-11 Yao Qi <[email protected]>
9476
9477 Build libcommon.a.
9478
9479 * common/Makefile.in: New.
9480 * common/configure.ac: New.
9481 * common/aclocal.m4: New.
9482 * common/configure: Generate.
9483
2287cc7e
PA
94842011-02-10 Pedro Alves <[email protected]>
9485
9486 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9487 side of the parenthesis.
9488
9489 Merge from GCC:
9490 2010-07-13 Jakub Jelinek <[email protected]>
fc013618 9491 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9492
fd62cb89
MS
94932011-02-08 Michael Snyder <[email protected]>
9494
9495 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9496
56d2815c
JK
94972011-02-08 Jan Kratochvil <[email protected]>
9498
9499 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9500 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9501 psubd and paddd.
9502
4f7d61a8
JK
95032011-02-08 Jan Kratochvil <[email protected]>
9504
9505 PR 12361.
9506 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9507 phsubsw.
9508 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9509 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9510
54fcddd0
UW
95112011-02-08 Ulrich Weigand <[email protected]>
9512
9513 * dwarf2read.c (read_subroutine_type): Set special calling
9514 convention flag for functions compiled by IBM XL C for OpenCL.
9515 * ppc-sysv-tdep.c: Include "dwarf2.h"
9516 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9517 calling convention.
9518 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9519 IBM OpenCL vector types calling convention.
9520 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9521 (ppc_sysv_abi_broken_return_value): Likewise.
9522 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9523 types calling convention.
9524 (ppc64_sysv_abi_return_value): Likewise.
9525 * spu-tdep.c: Include "dwarf2.h"
9526 (spu_return_value): Implement IBM OpenCL vector types calling
9527 convention.
9528
d6dafb7c
UW
95292011-02-08 Ulrich Weigand <[email protected]>
9530
9531 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9532 correct ABI for AltiVec vector arguments.
9533
32b72a42
PA
95342011-02-07 Pedro Alves <[email protected]>
9535
9536 * valprint.c (val_print): Extend comment.
9537 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9538 interface explanation to val_print.
9539 (ada_val_print_array): Adjust comment to current interface.
9540 (print_field_values): Adjust comment to current interface.
9541 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9542 explanation to val_print.
9543 * f-valprint.c (f_val_print): Ditto.
9544 * jv-valprint.c (java_val_print): Ditto.
9545 * m2-valprint.c (m2_val_print): Ditto.
9546 * p-valprint.c (pascal_val_print): Ditto.
9547
9998af43
TJB
95482011-02-07 Thiago Jung Bauermann <[email protected]>
9549
9550 * breakpoint.c (parse_breakpoint_sals): Fix description.
9551
505500db 95522011-02-04 Sami Wagiaalla <[email protected]>
9998af43 9553 Oguz Kayral <[email protected]>
505500db
SW
9554
9555 * python/py-inferior.c (python_on_normal_stop): New function.
9556 (python_on_resume): New function.
9557 (python_inferior_exit): New function.
9558 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9559 inferior_exit observers.
9560 * python/py-evtregistry.c: New file.
9561 * python/py-threadevent.c : New file.
9562 * python/py-event.c: New file.
9563 * python/py-evts.c: New file.
9564 * python/py-continueevent.c: New file.
9565 * python/py-bpevent.c: New file.
9566 * python/py-signalevent.c: New file.
9567 * python/py-exetiedevent.c: New file.
9568 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9569 Move struct breakpoint_object from here...
9570 * python/python-internal.h: ... to here.
9571 * python/py-event.h: New file.
9572 * python/py-events.h: New file.
9573 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9574 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9575 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9576 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9577 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9578 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9579 Add build rules for all the above.
9580
9e0ac564
TT
95812011-02-04 Tom Tromey <[email protected]>
9582
9583 * dwarf2read.c (dwarf2_section_empty_p): New function.
9584 (dwarf2_read_section): Use dwarf2_section_empty_p.
9585 (dwarf2_section_size): New function.
9586 (dwarf2_get_section_info): Unconditionally read section.
9587 (dwarf2_read_index): Use dwarf2_section_empty_p.
9588 (partial_read_comp_unit_head): Use dwarf2_section_size.
9589 (dwarf2_symbol_mark_computed): Likewise.
9590
eee5b35e
DD
95912011-02-04 David Daney <[email protected]>
9592
9593 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9594
385203ed
DD
95952011-02-04 David Daney <[email protected]>
9596
9597 * mips-linux-tdep.c: Include xml-syscall.h.
9598 (mips_linux_get_syscall_number): New function.
9599 (mips_linux_init_abi): Add calls to
9600 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9601 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9602 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9603 * syscalls/mips-n32-linux.xml: New file.
9604 * syscalls/mips-n64-linux.xml: New file.
9605 * syscalls/mips-o32-linux.xml: New file.
9606
9277c30c
UW
96072011-02-04 Ulrich Weigand <[email protected]>
9608
9609 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9610 Complain about inverted range entries.
9611 (dwarf2_record_block_ranges): Likewise.
9612
a3be7890
TJB
96132011-02-04 Thiago Jung Bauermann <[email protected]>
9614
9615 Fix some typos.
9616 * breakpoint.c (update_watchpoint): Fix name of the
9617 update_global_location_list function.
9618 (print_one_breakpoint): Fix typo.
9619 (_initialize_breakpoint): Remove extra space in hbreak help
9620 string.
9621 * breakpoint.h (struct bp_location) <length>: Fix field
9622 description.
9623
041274d8
PA
96242011-02-04 Pedro Alves <[email protected]>
9625
9626 * regcache.c (registers_changed_ptid): Don't explictly always
9627 clear `current_regcache'. Only clear current_thread_ptid and
9628 current_thread_arch when PTID matches. Only reinit the frame
9629 cache if PTID matches the current inferior_ptid. Move alloca(0)
9630 call to ...
9631 (registers_changed): ... here.
9632
c1c2ab58
UW
96332011-02-03 Ulrich Weigand <[email protected]>
9634
9635 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9636 starts with __stack_chk_guard as stack guard symbol.
9637
9011945e
AB
96382011-02-03 Andrew Burgess <[email protected]>
9639
9640 * disasm.c (compare_lines): Handle the end of sequence markers
9641 within the line table to better support disassembling over
9642 compilation unit boundaries.
9643
e0634ccf
UW
96442011-02-02 Ulrich Weigand <[email protected]>
9645
9646 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9647 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9648 implementation even if no symbols are available.
9649 (thumb_analyze_prologue): Update call to skip_prologue_function.
9650 (arm_analyze_prologue): Likewise.
9651
0e9e9abd
UW
96522011-02-02 Ulrich Weigand <[email protected]>
9653
9654 * arm-tdep.c: Include "observer.h".
9655 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9656 (arm_exidx_data_key): New static variable.
9657 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9658 (struct arm_exidx_data): Likewise.
9659 (arm_exidx_data_free): New function.
9660 (arm_compare_exidx_entries): Likewise.
9661 (arm_obj_section_from_vma): Likewise.
9662 (arm_exidx_new_objfile): Likewise.
9663 (arm_find_exidx_entry): Likewise.
9664 (arm_exidx_fill_cache): Likewise.
9665 (arm_exidx_unwind_sniffer): Likewise.
9666 (arm_exidx_unwind): New global variable.
9667 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9668 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9669 observer. Register arm_exidx_data_key as objfile data.
9670
2e9e421f
UW
96712011-02-02 Ulrich Weigand <[email protected]>
9672
9673 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9674 due to accessing uninitialized variable. Fix indentation.
9675
580688f3
PA
96762011-02-02 Pedro Alves <[email protected]>
9677
9678 * c-valprint.c (c_value_print): When doing virtual base pointer
9679 adjustment, create a new value with adjusted contents rather than
9680 changing the contents of the value being printed (and getting it
9681 wrong).
9682
3d2c1d41
PA
96832011-02-02 Pedro Alves <[email protected]>
9684
9685 * xml-support.c (xml_find_attribute): New.
9686 (xinclude_start_include): Use it.
9687 * xml-support.h (xml_find_attribute): Declare.
9688 * memory-map.c (memory_map_start_memory)
9689 (memory_map_start_property): Use xml_find_attribute.
9690 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9691 xml_find_attribute.
9692 * remote.c (start_thread): Use xml_find_attribute.
9693 * solib-target.c (library_list_start_segment)
9694 (library_list_start_section, library_list_start_library)
9695 (library_list_start_list): Use xml_find_attribute.
9696 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9697 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9698 (tdesc_start_field): Use xml_find_attribute.
9699
0af3e2db
UW
97002011-02-02 Ulrich Weigand <[email protected]>
9701
9702 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9703 (BUILD_OCL_VTYPES): Update.
9704
c1039e3c
JB
97052011-02-02 Joel Brobecker <[email protected]>
9706
9707 * configure.ac: Work around non-GNU sed limitation when computing
9708 python version number.
9709 * configure: Regenerate.
9710
600ea1be
JK
97112011-02-01 Jan Kratochvil <[email protected]>
9712
9713 Fix debug printing of TYPE_INSTANCE.
9714 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9715 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9716
56c12414
JK
97172011-02-01 Jan Kratochvil <[email protected]>
9718
9719 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9720 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9721 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9722 * ada-operator.inc: Rename the file to ...
9723 * ada-operator.def: ... here, wrap all the entries by macro OP.
9724 * expprint.c (op_name_standard): Remove all the entries. Include
9725 "std-operator.def" instead.
9726 * expression.h (enum exp_opcode): Include "std-operator.def" and
9727 "ada-operator.def". Move all the entries ...
9728 * std-operator.def: ... here, wrap all the entries by macro OP.
9729
c52b559d
PP
97302011-01-31 Paul Pluzhnikov <[email protected]>
9731
9732 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9733 * breakpoint.c (remove_jit_event_breakpoints): New function.
9734 * jit.c (jit_descriptor_addr): Delete.
9735 (registering_code): Delete.
9736 (clear_int): Delete.
9737 (jit_inferior_data): New variable.
9738 (struct jit_inferior_data): New type.
9739 (get_jit_inferior_data): New function.
9740 (jit_inferior_data_cleanup): New function.
9741 (jit_read_descriptor): Adjust.
9742 (jit_register_code): Adjust.
9743 (jit_breakpoint_re_set_internal): New function; move code here ...
9744 (jit_inferior_init): ... from here.
9745 (jit_breakpoint_re_set): Adjust.
9746 (jit_reset_inferior_data_and_breakpoints): New function.
9747 (jit_inferior_created_observer): Adjust.
9748 (jit_inferior_exit_hook): Adjust.
9749 (jit_executable_changed_observer): New function.
9750 (jit_event_handler): Adjust.
9751 (_initialize_jit): Adjust.
9752
e839132d
MS
97532011-01-31 Michael Snyder <[email protected]>
9754
9755 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9756 line.
9757
47a80e90
TT
97582011-01-31 Tom Tromey <[email protected]>
9759
9760 PR python/12216:
9761 * python/python.c (execute_gdb_command): Call
9762 prevent_dont_repeat.
9763 * top.c (suppress_dont_repeat): New global.
9764 (dont_repeat): Use it.
9765 (prevent_dont_repeat): New function.
9766 * command.h (prevent_dont_repeat): Declare.
9767
45a43567
TT
97682011-01-31 Tom Tromey <[email protected]>
9769
9770 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9771 * python/py-breakpoint.c (bppy_set_silent): Use
9772 breakpoint_set_silent.
9773 (bppy_set_thread): Use breakpoint_set_thread.
9774 (bppy_set_task): Use breakpoint_set_task.
9775 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9776 (breakpoint_set_task): Declare.
9777 (make_breakpoint_silent): Remove.
9778 * breakpoint.c (breakpoint_set_silent): New function.
9779 (breakpoint_set_thread): Likewise.
9780 (breakpoint_set_task): Likewise.
9781 (make_breakpoint_silent): Remove.
9782
09d682a4
TT
97832011-01-31 Tom Tromey <[email protected]>
9784
9785 * breakpoint.h (user_breakpoint_p): Declare.
9786 * breakpoint.c (user_breakpoint_p): New function.
9787 (breakpoint_1): Use it.
9788 (save_breakpoints): Likewise.
9789
9c4ea6c5
JB
97902011-01-31 Joel Brobecker <[email protected]>
9791
9792 * configure.ac: Add handling of Python distribution on Windows.
9793 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9794 sysconfig variables are not defined, then do not use them.
9795 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9796 instead. On Windows, return all paths using forward-slashes
9797 rather than backslashes.
9798
ac534cba
JB
97992011-01-31 Joel Brobecker <[email protected]>
9800
9801 * configure.ac: Remove fallback behavior for building
9802 against Python. Remove tweaking of Python include path.
9803 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9804 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9805 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9806 Always restore CPPFLAGS and LIBS after linking test.
9807 * configure: Regenerated.
9808 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9809 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9810 * python/python-internal.h: Adjust includes of Python .h files.
9811
c2f0d045
JB
98122011-01-31 Joel Brobecker <[email protected]>
9813
9814 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9815 in error message.
9816
6b0c4c1f
JB
98172011-01-31 Joel Brobecker <[email protected]>
9818
9819 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9820 value test.
9821
672c9795
YQ
98222011-01-31 Yao Qi <[email protected]>
9823
9824 * arm-linux-nat.c: Update calls to regcache_register_status
9825 instead of regcache_valid_p.
9826 * aix-thread.c: Likewise.
9827 * i386gnu-nat.c: Likewise.
9828
80b23b6a
JK
98292011-01-29 Jan Kratochvil <[email protected]>
9830
9831 Fix crash.
9832 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9833 touching TYPE_FIELD_ARTIFICIAL.
9834
4cd712bd
RE
98352011-01-28 Richard Earnshaw <[email protected]>
9836
9837 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9838 Committers.
9839
ffd5ec24
PA
98402011-01-28 Pedro Alves <[email protected]>
9841
9842 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9843 selected, don't try iterating over the traceframe's blocks.
9844 (tfile_has_stack): If there's no traceframe selected, then there's
9845 no stack.
9846 (tfile_has_registers): If there's no traceframe selected, then
9847 there's no registers.
9848
e8c9e0a1
PA
98492011-01-28 Pedro Alves <[email protected]>
9850
9851 * target.c (memory_xfer_partial): No need to restore shadows if we
9852 haven't read anything.
9853
de15c4ab
PA
98542011-01-28 Pedro Alves <[email protected]>
9855
9856 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9857 and val_print_scalar_formatted.
9858
9f41c731
PA
98592011-01-27 Pedro Alves <[email protected]>
9860
9861 * tracepoint.c (tfile_read): New.
9862 (tfile_open): Use it.
9863 (tfile_get_traceframe_address): Use it.
9864 (tfile_trace_find): Use it.
9865 (walk_blocks_callback_func): New typedef.
9866 (match_blocktype): New function.
9867 (traceframe_walk_blocks): New function.
9868 (traceframe_find_block_type): New function.
9869 (tfile_fetch_registers, tfile_xfer_partial)
9870 (tfile_get_trace_state_variable_value): Use
9871 traceframe_find_block_type and tfile_read.
9872
cdefc55d
KB
98732011-01-26 Kevin Buettner <[email protected]>
9874
9875 * remote-mips.c: Add internationalization mark ups. Remove
9876 trailing \n from already marked up strings.
9877
a81766d8
TT
98782011-01-26 Tom Tromey <[email protected]>
9879
9880 * python/py-prettyprint.c (print_string_repr): Clear
9881 'addressprint' option when calling val_print_string.
9882 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9883 option when calling val_print_string.
9884
74aedc46
TT
98852011-01-26 Tom Tromey <[email protected]>
9886
9887 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9888 GDB_PY_LL_ARG.
9889 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9890 macros.
9891 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9892 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9893 (gdb_py_long_as_ulongest): New defines.
9894 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9895 (gdb_py_int_as_long): Declare.
9896 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9897 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9898 (valpy_long): Add comment.
9899 * python/py-utils.c (get_addr_from_python): Use
9900 gdb_py_long_as_ulongest. Handle overflow properly.
9901 (gdb_py_object_from_longest): New function.
9902 (gdb_py_object_from_ulongest): Likewise.
9903 (gdb_py_int_as_long): Likewise.
9904 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9905 * python/py-symtab.c (salpy_get_pc): Use
9906 gdb_py_long_from_ulongest.
9907 (salpy_get_line): Use PyInt_FromLong.
9908 * python/py-param.c (set_parameter_value): Use
9909 gdb_py_int_as_long.
9910 * python/py-lazy-string.c (stpy_get_address): Use
9911 gdb_py_long_from_ulongest.
9912 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9913 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9914 * python/py-breakpoint.c (bppy_set_thread): Use
9915 gdb_py_int_as_long.
9916 (bppy_set_task): Likewise.
9917 (bppy_set_ignore_count): Likewise.
9918 (bppy_set_hit_count): Likewise.
9919 * python/py-block.c (blpy_get_start): Use
9920 gdb_py_object_from_ulongest.
9921 (blpy_get_end): Likewise.
9922 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9923
e4f6d2ec
TJB
99242011-01-25 Mathieu Lacage <[email protected]>
9925
9926 PR/symtab 11766:
9927 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9928 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9929 equality test for objfile, initialize addr_low if needed.
9930
b30aa278
PA
99312011-01-25 Pedro Alves <[email protected]>
9932
9933 * tui/tui-regs.c (tui_register_format): Remove dead code.
9934
ab2188aa
PA
99352011-01-25 Pedro Alves <[email protected]>
9936
9937 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9938 instead of print_scalar_formatted.
9939 (print_scalar_formatted): Don't handle 's' format strings here,
9940 and add an assertion that we never see such format here.
9941 * valprint.h (val_print_scalar_formatted): Declare.
9942 * valprint.c (val_print_scalar_formatted): New.
9943 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9944 instead of print_scalar_formatted.
9945 * jv-valprint.c (java_val_print): Ditto.
9946 * p-valprint.c (pascal_val_print): Ditto.
9947 * ada-valprint.c (ada_val_print_1): Ditto.
9948 * f-valprint.c (f_val_print): Ditto.
9949 * infcmd.c (registers_info): Ditto.
9950 * m2-valprint.c (m2_val_print): Ditto.
9951
66d61a4c
PA
99522011-01-25 Pedro Alves <[email protected]>
9953
9954 * m2-valprint.c (print_unbounded_array): Pass
9955 value_contents_for_printing rather than value_contents, to
9956 m2_print_array_contents. Also pass in the value.
9957
831adc1f
JK
99582011-01-25 Jan Kratochvil <[email protected]>
9959
9960 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9961 (save_gdb_index_command): Switch to .gdb_index version 4.
9962
20622269
PA
99632011-01-25 Pedro Alves <[email protected]>
9964
9965 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9966 than frame_register, and always pass a valid value to val_print.
9967
585fdaa1
PA
99682011-01-25 Pedro Alves <[email protected]>
9969
9970 Centralize printing "<optimized out>".
9971
9972 * valprint.h (val_print_optimized_out): Declare.
9973 * cp-valprint.c (cp_print_value_fields): Use
9974 val_print_optimized_out.
9975 * jv-valprint.c (java_print_value_fields): Ditto.
9976 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9977 * printcmd.c (print_formatted): Ditto.
9978 * valprint.c (valprint_check_validity): Ditto.
9979 (value_check_printable): Ditto.
9980 (val_print_optimized_out): New.
9981
29ec5263
PA
99822011-01-25 Pedro Alves <[email protected]>
9983
9984 * infcmd.c (default_print_registers_info): Allocate values so to
9985 never pass a NULL value to val_print.
9986
de4127a3
PA
99872011-01-25 Pedro Alves <[email protected]>
9988
9989 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9990 boolean. Make sure to always pass a value that matches the
9991 contents buffer to callees. Preserve `address' for following
9992 iterations.
9993 * value.c (value_contents_for_printing_const): New.
9994 (value_address): Constify value argument.
9995 * value.h (value_contents_for_printing_const): Declare.
9996 (value_address): Constify value argument.
9997
ee99023e
PA
99982011-01-25 Pedro Alves <[email protected]>
9999
10000 * regcache.c (struct regcache_descr): Rename
10001 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10002 and sizeof_cooked_register_valid_p to
10003 sizeof_cooked_register_status.
10004 (init_regcache_descr): Adjust.
10005 (struct regcache): Rename register_valid_p field to
10006 register_status.
10007 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10008 (do_cooked_read): Adjust.
10009 (regcache_valid_p): Rename to ...
10010 (regcache_register_status): ... this. Adjust.
10011 (regcache_invalidate): Adjust.
10012 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10013 Adjust.
10014 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10015 as unavailable, not valid.
10016 (regcache_dump): Adjust.
10017 * regcache.h (enum register_status): New.
10018 (regcache_register_status): Declare.
10019 (regcache_invalidate): Delete declaration.
10020 * corelow.c (get_core_registers): Adjust.
10021 * tracepoint.c (tfile_fetch_registers): Adjust.
10022 * trad-frame.c (REG_VALUE): Rename to ...
10023 (TF_REG_VALUE): ... this.
10024 (REG_UNKNOWN): Rename to ...
10025 (TF_REG_UNKNOWN): ... this.
10026 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10027 * mi/mi-main.c (register_changed_p): Adjust.
10028
99e42fd8
PA
100292011-01-25 Pedro Alves <[email protected]>
10030
10031 * regcache.c (struct regcache_descr): Remove outdated comment.
10032 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10033 overallocate hack.
10034 (regcache_xmalloc): Rename to ...
10035 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10036 Allocate the regcache type accordingly.
10037 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10038 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10039 cooked registers, not raw.
10040 (regcache_dup_no_passthrough): Delete.
10041 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10042 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10043 mention obsolete write_register_bytes.
10044 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10045
f7605bc2
PA
100462011-01-25 Pedro Alves <[email protected]>
10047
10048 Stop remote_read_bytes from handling partial reads itself.
10049
10050 * remote-fileio.c: Include target.h.
10051 (remote_fileio_write_bytes): Delete.
10052 (remote_fileio_func_open, remote_fileio_func_write)
10053 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10054 target_read_memory.
10055 (remote_fileio_func_stat): Use target_read_memory and
10056 target_write_memory.
10057 (remote_fileio_func_gettimeofday): Use target_write_memory.
10058 (remote_fileio_func_system): Use target_read_memory.
10059 * remote.c (remote_write_bytes): Make it static.
10060 (remote_read_bytes): Don't handle partial reads here.
10061 * remote.h (remote_read_bytes): Delete declaration.
10062
efc0eabd
PA
100632011-01-25 Pedro Alves <[email protected]>
10064
10065 Simplify XML parsing a bit.
10066
10067 * xml-support.h (gdb_xml_parse_quick): Declare.
10068 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10069 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10070 parameter.
10071 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10072 gdb_xml_create_parser_and_cleanup_1.
10073 (gdb_xml_parse_quick): New.
10074 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10075 * osdata.c (osdata_parse): Ditto.
10076 * remote.c (remote_threads_info): Ditto.
10077 * solib-target.c (solib_target_parse_libraries): Ditto.
10078 * xml-syscall.c (syscall_parse_xml): Ditto.
10079 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10080
314d366a
KB
100812011-01-24 Kevin Buettner <[email protected]>
10082
10083 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10084 with remote-mips.o added to gdb_target_obs.
10085 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10086
a491d753
PA
100872011-01-24 Pedro Alves <[email protected]>
10088
10089 * ada-valprint.c (val_print_packed_array_elements): Pass the
10090 correct struct value to val_print.
10091 (ada_val_print_1): Ditto.
10092
490f124f
PA
100932011-01-24 Pedro Alves <[email protected]>
10094
10095 Don't lose embedded_offset in printing routines throughout.
10096
10097 * valprint.h (val_print_array_elements): Change prototype.
10098 * valprint.c (val_print_array_elements): Add `embedded_offset'
10099 parameter, and adjust to pass it down to val_print, while passing
10100 `valaddr' or `address' unmodified. Take embedded_offset into
10101 account when checking repetitions.
10102 * c-valprint.c (c_val_print): Pass embedded_offset to
10103 val_print_array_elements instead of adjusting `valaddr' and
10104 `address'.
10105 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10106 embedded_offset to val_print_array_elements instead of adjusting
10107 `valaddr'.
10108 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10109 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10110 val_print_array_elements and pascal_object_print_value_fields
10111 instead of adjusting `valaddr'.
10112 (pascal_object_print_value_fields): Add `offset' parameter, and
10113 adjust to use it.
10114 (pascal_object_print_value): Add `offset' parameter, and adjust to
10115 use it.
10116 (pascal_object_print_static_field): Use
10117 value_contents_for_printing/value_embedded_offset, rather than
10118 value_contents.
10119 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10120 parameter, and adjust to use it. Use
10121 value_contents_for_printing/value_embedded_offset, rather than
10122 value_contents.
10123 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10124 (ada_val_print_array): Add `offset' parameter, and adjust to use
10125 it.
10126 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10127 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10128 Instead work with offsets. Use
10129 value_contents_for_printing/value_embedded_offset, rather than
10130 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10131 and use value_from_pointer to extract a target pointer, rather
10132 than value_from_longest.
10133 (print_variant_part): Add `offset' parameter. Replace
10134 `outer_valaddr' parameter by a new `outer_offset' parameter.
10135 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10136 (ada_value_print): Use
10137 value_contents_for_printing/value_embedded_offset, rather than
10138 value_contents.
10139 (print_record): Add `offset' parameter, and adjust to pass it
10140 down.
10141 (print_field_values): Add `offset' parameter. Replace
10142 `outer_valaddr' parameter by a new `outer_offset' parameter.
10143 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10144 Use value_contents_for_printing/value_embedded_offset, rather than
10145 value_contents.
10146 * d-valprint.c (dynamic_array_type): Use
10147 value_contents_for_printing/value_embedded_offset, rather than
10148 value_contents.
10149 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10150 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10151 (java_print_value_fields): Take `offset' into account. Don't
10152 re-adjust `valaddr'. Instead pass down adjusted offsets.
10153 (java_val_print): Take `embedded_offset' into account. Pass it to
10154 java_print_value_fields.
10155 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10156 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10157 down adjusted offsets.
10158 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10159 (f_val_print): Take `embedded_offset' into account.
10160
7bfc9434
JB
101612011-01-21 Joel Brobecker <[email protected]>
10162
10163 * inflow.c: Include "gdbcmd.h".
10164 (interactive_mode): New static global, moved here from top.c.
10165 (show_interactive_mode): New function, moved here from top.c.
10166 use gdb_has_a_terminal instead of input_from_terminal_p to
10167 determine the current mode.
10168 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10169 setting.
10170 (_initialize_inflow): Add the "set/show interactive-mode"
10171 commands. Moved here from top.c, after having adjusted slightly
10172 the help text.
10173 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10174 to inflow.c.
10175 (input_from_terminal_p): Remove handling of "interactive-mode"
10176 setting, moved to infow.c.
10177 (init_main): Remove creation of the "set/show interactive-mode"
10178 commands, moved to inflow.c.
10179
44603653
JB
101802011-01-19 Joel Brobecker <[email protected]>
10181
10182 * NEWS: Add entry for native ia64-hpux support.
10183
4694da01
TT
101842011-01-19 Tom Tromey <[email protected]>
10185
10186 PR mi/8618:
10187 * thread.c (free_thread): Free 'name'.
10188 (print_thread_info): Emit thread name. Change CLI output.
10189 (thread_name_command): New function.
10190 (do_captured_thread_select): Emit newline.
10191 (_initialize_thread): Register 'thread name' command.
10192 * target.h (struct target_ops) <to_thread_name>: New field.
10193 (target_thread_name): New macro.
10194 * target.c (update_current_target): Handle to_thread_name.
10195 * python/py-infthread.c (thpy_get_name): New function.
10196 (thpy_set_name): Likewise.
10197 (thread_object_getset): Add "name".
10198 * linux-nat.c (linux_nat_thread_name): New function.
10199 (linux_nat_add_target): Set to_thread_name.
10200 * gdbthread.h (struct thread_info) <name>: New field.
10201
10d44370
JB
102022011-01-18 Joel Brobecker <[email protected]>
10203
10204 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10205 (ada_val_print_1): Likewise.
10206
e3acb115
JB
102072011-01-18 Joel Brobecker <[email protected]>
10208
10209 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10210 upper limit address is not greater than the function end address
10211 when the upper limit could not be computed using the debugging
10212 info.
10213
dc92e161
TT
102142011-01-17 Tom Tromey <[email protected]>
10215
10216 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10217 get_regcomp_error.
10218 * utils.c: Include gdb_regex.h.
10219 (do_regfree_cleanup): New function.
10220 (make_regfree_cleanup): Likewise.
10221 (get_regcomp_error): Likewise.
10222 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10223
f55af66d
TT
102242011-01-17 Tom Tromey <[email protected]>
10225
10226 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10227 re_compile_fastmap.
10228
a5a44b53
PM
102292011-01-17 Pierre Muller <[email protected]>
10230
10231 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10232 for internal variables.
10233 (last_was_structop): New static variable.
10234 (COMPLETE): New token.
10235 (field_exp): New rule to group all '.' suffix handling.
10236 Add mark_struct_expression calls when approriate to be able
10237 to correctly find fields for completion.
10238 (yylex): Adapt to handle field completion and set INTVAR when
10239 required.
10240
2c291032
YQ
102412011-01-14 Yao Qi <[email protected]>
10242
10243 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10244 save_reggroup, restore_reggroup and all_reggroup.
10245
447b483c
JB
102462011-01-14 Joel Brobecker <[email protected]>
10247
10248 * ada-valprint. (ada_printchar): Use the correct type length
10249 in call to ada_emit_char.
10250 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10251
7b64a93b
PM
102522011-01-14 Pierre Muller <[email protected]>
10253
10254 * solib-som.h (hpux_major_release): Declare variable here.
10255 * solib-som.c: Remove <sys/utsname.h> header.
10256 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10257 (hpux_major_release): Make global, change default value to
10258 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10259 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10260 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10261 Add "solib-som.h" header.
10262 (set_hpux_major_release): New function.
10263 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10264
4e18c053
MF
102652011-01-14 Mike Frysinger <[email protected]>
10266
10267 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10268
a9df6b22
JB
102692011-01-14 Joel Brobecker <[email protected]>
10270
10271 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10272 new-line at end of warning message.
10273 (ia64_hpux_store_register): Remove trailing new-line at end of
10274 error message.
10275 * ia64-hpux-tdep.c: Rephrase comment.
10276 * solib-ia64-hpux.c (struct dld_info): Change type of field
10277 dld_flags from "long long" to ULONGEST.
10278
ecb956dd
PA
102792011-01-14 Pedro Alves <[email protected]>
10280
10281 * target.h (deprecated_child_ops): Delete declaration.
10282 * target.c (deprecated_child_ops): Delete definition.
10283
76adfcae
PA
102842011-01-14 Pedro Alves <[email protected]>
10285
10286 * Makefile.in (hpux-thread.o): Delete rule.
10287 * configure.ac: Don't check for HPUX DCE threads support.
10288 * configure, config.in: Regenerate.
10289 * hppa-hpux-nat.c (child_suppress_run): Delete.
10290 (hppa_hpux_child_can_run): Delete.
10291 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10292 * hpux-thread.c: Delete.
10293
042e866e
JB
102942011-01-13 Joel Brobecker <[email protected]>
10295
10296 * hpux-thread.c (hpux_pid_to_str): Delete.
10297
4ffa5a33
JB
102982011-01-13 Joel Brobecker <[email protected]>
10299
10300 * ada-valprint.c (ada_emit_char): Remove strange code.
10301 Check that c is <= UCHAR_MAX before passing it to isascii.
10302 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10303
de8fa76c
JB
103042011-01-13 Joel Brobecker <[email protected]>
10305
10306 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10307 to the case where instream is stdin.
10308
c4de7027
JB
103092011-01-13 Joel Brobecker <[email protected]>
10310
10311 * ia64-tdep.h (struct regcache): Forward declare.
10312 (struct ia64_infcall_ops): New struct type.
10313 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10314 and "infcall_ops".
10315 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10316 Renames ia64_find_global_pointer.
10317 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10318 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10319 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10320 methods.
10321 (ia64_infcall_ops): New static global constant.
10322 (ia64_gdbarch_init): Set tdep->infcall_ops.
10323 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10324 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10325 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10326 (ia64_hpux_dummy_code): New static global constant.
10327 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10328 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10329 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10330 New function.
10331 (ia64_hpux_infcall_ops): New static global constant.
10332 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10333 for inferior function calls to work properly on ia64-hpux.
10334
77ca787b
JB
103352011-01-13 Joel Brobecker <[email protected]>
10336
10337 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10338 * ia64-tdep.h (struct frame_info): forward declaration.
10339 (struct gdbarch_tdep): Add field size_of_register_frame.
10340 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10341 to determine the size of the register frame.
10342 (ia64_size_of_register_frame): New function.
10343 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10344 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10345 (IA64_HPUX_UREG_REASON): New macro.
10346 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10347 New functions.
10348 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10349 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10350 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10351 objects.
10352
92c9a463
JB
103532011-01-13 Joel Brobecker <[email protected]>
10354
10355 Add support for ia64-hpux.
10356 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10357 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10358
10359 * configure.host: Add handling for ia64-hpux hosts. Add associated
10360 floatformats.
10361 * configure.tgt: Add handling for ia64-hpux targets.
10362 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10363 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10364 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10365
f688d93f
JB
103662011-01-13 Joel Brobecker <[email protected]>
10367
10368 [ttrace] Compute thread list immediately after attach.
10369 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10370 New subprogram.
10371 (inf_ttrace_attach): Use it.
10372
1b89e62f
JB
103732011-01-13 Joel Brobecker <[email protected]>
10374
10375 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10376 if we could not determine the frame's function address. Instead,
10377 use the frame's PC, and then continue.
10378
3e5e6e2a
JB
103792011-01-13 Joel Brobecker <[email protected]>
10380
10381 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10382 not already defined.
10383
825d6d8a
JB
103842011-01-13 Joel Brobecker <[email protected]>
10385
10386 * ia64-tdep.c (ia64_struct_type_p): New function.
10387 (ia64_extract_return_value): Handle integral values that are
10388 less than 8 bytes long.
10389 (ia64_push_dummy_call): Likewise.
10390
7458e667
JB
103912011-01-13 Joel Brobecker <[email protected]>
10392
10393 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10394 floatformat_ia64_ext.
10395 (floatformat_ia64_ext_big): New static const.
10396 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10397
1b05df00
TT
103982011-01-12 Tom Tromey <[email protected]>
10399
10400 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10401 messages.
10402 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10403 (mi_cmd_thread_list_ids): Likewise.
10404 (mi_cmd_data_list_changed_registers): Likewise.
10405 (mi_cmd_data_list_register_values): Likewise.
10406 (mi_cmd_data_write_register_values): Likewise.
10407 (mi_cmd_data_evaluate_expression): Likewise.
10408 (mi_cmd_data_read_memory): Likewise.
10409 (mi_cmd_data_read_memory_bytes): Likewise.
10410 (mi_cmd_data_write_memory): Likewise.
10411 (mi_cmd_enable_timings): Likewise.
10412 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10413 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10414 (mi_cmd_var_delete): Likewise.
10415 (mi_cmd_var_set_format): Likewise.
10416 (mi_cmd_var_show_format): Likewise.
10417 (mi_cmd_var_info_num_children): Likewise.
10418 (mi_cmd_var_list_children): Likewise.
10419 (mi_cmd_var_info_type): Likewise.
10420 (mi_cmd_var_info_expression): Likewise.
10421 (mi_cmd_var_show_attributes): Likewise.
10422 (mi_cmd_var_assign): Likewise.
10423 (mi_cmd_var_update): Likewise.
10424 (mi_cmd_enable_pretty_printing): Likewise.
10425 (mi_cmd_var_set_update_range): Likewise.
10426 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10427 messages.
10428 (mi_cmd_target_file_put): Likewise.
10429 (mi_cmd_target_file_delete): Likewise.
10430 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10431 messages.
10432 (mi_cmd_stack_info_depth): Likewise.
10433 (mi_cmd_stack_list_locals): Likewise.
10434 (mi_cmd_stack_list_args): Likewise.
10435 (mi_cmd_stack_select_frame): Likewise.
10436 (mi_cmd_stack_select_frame): Likewise.
10437 (mi_cmd_stack_info_frame): Likewise.
10438 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10439 messages.
10440 (mi_cmd_file_list_exec_source_files): Likewise.
10441 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10442 (mi_cmd_env_cd): Likewise.
10443 (mi_cmd_env_path): Likewise.
10444 (mi_cmd_env_dir): Likewise.
10445 (mi_cmd_inferior_tty_show): Likewise.
10446 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10447 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10448 (mi_cmd_break_watch): Likewise.
10449
ad422571
TJB
104502011-01-12 Thiago Jung Bauermann <[email protected]>
10451
10452 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10453 (ppc_linux_insert_hw_breakpoint): Likewise.
10454 (ppc_linux_remove_hw_breakpoint): Likewise.
10455 (ppc_linux_insert_watchpoint): Likewise.
10456
c2ff108b
JK
104572011-01-12 Andrew Burgess <[email protected]>
10458 Jan Kratochvil <[email protected]>
10459
10460 PR fortran/11104 and DWARF unbound arrays detection.
10461 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10462 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10463 unspecified upper bound.
10464 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10465 variables array_size_array, tmp_type and offset_item. New variable
10466 array. Remove call to f77_get_upperbound. New variables array_type
10467 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10468 the final call to deprecated_set_value_type.
10469
41e8491f
JK
104702011-01-12 Jan Kratochvil <[email protected]>
10471
10472 Make value allocations more lazy.
10473 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10474 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10475 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10476 instead of allocate_value and set_value_lazy.
10477 * findvar.c (value_of_register_lazy): Likewise.
10478 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10479 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10480 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10481 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10482 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10483 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10484 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10485 the end, remove set_value_lazy there.
10486 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10487 instead of allocate_value and set_value_lazy when possible.
10488 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10489 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10490 of allocate_value and set_value_lazy.
10491 (value_from_contents_and_address): Use allocate_value_lazy instead of
10492 allocate_value and set_value_lazy when possible.
10493
b716877b
AB
104942011-01-12 Andrew Burgess <[email protected]>
10495
10496 * disasm.c (dump_insns): Support dumping opcodes for MI.
10497 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10498 dumping of instruction opcodes.
10499
d5ae309f
JB
105002011-01-09 Robert Millan <[email protected]> (tiny patch)
10501
10502 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10503 appropiately.
10504
98871305
TT
105052011-01-11 Tom Tromey <[email protected]>
10506
10507 * thread.c (do_captured_thread_select): Emit newline before
10508 printing frame.
10509
c378eb4e
MS
105102011-01-11 Michael Snyder <[email protected]>
10511
10512 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10513 * score-tdep.c: Ditto.
10514 * score-tdep.h: Ditto.
10515 * ser-base.c: Ditto.
10516 * ser-go32.c: Ditto.
10517 * serial.c: Ditto.
10518 * serial.h: Ditto.
10519 * ser-mingw.c: Ditto.
10520 * ser-pipe.c: Ditto.
10521 * ser-tcp.c: Ditto.
10522 * ser-unix.c: Ditto.
10523 * sh64-tdep.c: Ditto.
10524 * shnbsd-nat.c: Ditto.
10525 * sh-tdep.c: Ditto.
10526 * sh-tdep.h: Ditto.
10527 * solib.c: Ditto.
10528 * solib-darwin.c: Ditto.
10529 * solib-frv.c: Ditto.
10530 * solib.h: Ditto.
10531 * solib-irix.c: Ditto.
10532 * solib-osf.c: Ditto.
10533 * solib-pa64.c: Ditto.
10534 * solib-som.c: Ditto.
10535 * solib-spu.c: Ditto.
10536 * solib-sunos.c: Ditto.
10537 * solib-svr4.c: Ditto.
10538 * solist.h: Ditto.
10539 * sol-thread.c: Ditto.
10540 * somread.c: Ditto.
10541 * source.c: Ditto.
10542 * source.h: Ditto.
10543 * sparc64-linux-tdep.c: Ditto.
10544 * sparc64-tdep.c: Ditto.
10545 * sparc-linux-nat.c: Ditto.
10546 * sparc-linux-tdep.c: Ditto.
10547 * sparc-sol2-nat.c: Ditto.
10548 * sparc-sol2-tdep.c: Ditto.
10549 * sparc-tdep.c: Ditto.
10550 * sparc-tdep.h: Ditto.
10551 * spu-tdep.c: Ditto.
10552 * stabsread.c: Ditto.
10553 * stabsread.h: Ditto.
10554 * stack.c: Ditto.
10555 * symfile.c: Ditto.
10556 * symfile.h: Ditto.
10557 * symmisc.c: Ditto.
10558 * symtab.c: Ditto.
10559 * symtab.h: Ditto.
10560 * target.c: Ditto.
10561 * target-descriptions.c: Ditto.
10562 * target-descriptions.h: Ditto.
10563 * target.h: Ditto.
10564 * target-memory.c: Ditto.
10565 * terminal.h: Ditto.
10566 * thread.c: Ditto.
10567 * top.c: Ditto.
10568 * tracepoint.c: Ditto.
10569 * tracepoint.h: Ditto.
10570 * trad-frame.h: Ditto.
10571 * typeprint.c: Ditto.
10572
581e13c1
MS
105732011-01-11 Michael Snyder <[email protected]>
10574
10575 * ui-file.c: Comment cleanup, mostly periods and spaces.
10576 * ui-file.h: Ditto.
10577 * ui-out.c: Ditto.
10578 * ui-out.h: Ditto.
10579 * utils.c: Ditto.
10580 * v850-tdep.c: Ditto.
10581 * valarith.c: Ditto.
10582 * valops.c: Ditto.
10583 * valprint.c: Ditto.
10584 * valprint.h: Ditto.
10585 * value.c: Ditto.
10586 * value.h: Ditto.
10587 * varobj.c: Ditto.
10588 * varobj.h: Ditto.
10589 * vax-tdep.c: Ditto.
10590 * vec.c: Ditto.
10591 * vec.h: Ditto.
10592 * version.h: Ditto.
10593 * windows-nat.c: Ditto.
10594 * windows-tdep.c: Ditto.
10595 * xcoffread.c: Ditto.
10596 * xcoffsolib.c: Ditto.
10597 * xml-support.c: Ditto.
10598 * xstormy16-tdep.c: Ditto.
10599 * xtensa-tdep.c: Ditto.
10600 * xtensa-tdep.h: Ditto.
10601
90e4670f
TJB
106022011-01-11 Thiago Jung Bauermann <[email protected]>
10603
10604 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10605 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10606
e09342b5
TJB
106072011-01-11 Sergio Durigan Junior <[email protected]>
10608 Thiago Jung Bauermann <[email protected]>
10609
10610 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10611 * breakpoint.h
e09342b5
TJB
10612 (struct breakpoint_ops) <resources_needed>: New method.
10613 Initialize to NULL in all existing breakpoint_ops instances.
10614 (struct breakpoint) <exact>: New field.
10615 (target_exact_watchpoints): Declare external global.
10616 * breakpoint.c (target_exact_watchpoints): New global flag.
10617 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10618 b->enable_state to bp_enabled before calling
10619 hw_watchpoint_used_count.
10620 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10621 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10622 if available.
10623 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10624 if the watchpoint is exact.
10625 (resources_needed_watchpoint): New function.
10626 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10627 (watch_command_1): Set b->exact if the user asked for an exact
10628 watchpoint and one can be set.
10629 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10630 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10631 the user asks for an exact watchpoint and one can be set. Return
10632 number of needed debug registers to watch the expression.
10633 * gdbtypes.c (is_scalar_type): New function, based on
10634 valprint.c:scalar_type_p.
10635 (is_scalar_type_recursive): New function.
10636 * gdbtypes.h (is_scalar_type_recursive): Declare.
10637 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10638 handle regions when ranged watchpoints are available.
10639 (create_watchpoint_request): New function.
10640 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10641 create_watchpoint_request.
10642 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10643 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10644 `set powerpc' and `show powerpc' commands.
10645 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10646 Mention documentation comment in the target macro.
10647 (target_region_ok_for_hw_watchpoint): Document return value.
10648
9fa40276
TJB
106492011-01-11 Thiago Jung Bauermann <[email protected]>
10650
10651 * breakpoint.c (update_watchpoint): Decide on using a software or
10652 hardware watchpoint after the bp_locations are created.
10653
77b06cd7
TJB
106542010-01-11 Thiago Jung Bauermann <[email protected]>
10655
10656 Convert hardware watchpoints to use breakpoint_ops.
10657 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10658 <insert_location>: ... this. Return int instead of void.
10659 Accept pointer to struct bp_location instead of pointer to
10660 struct breakpoint. Adapt all implementations.
f2eb0bc8 10661 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10662 <remove_location>: ... this. Accept pointer to struct bp_location
10663 instead of pointer to struct breakpoint. Adapt all implementations.
10664 * breakpoint.c (insert_catchpoint): Delete function.
10665 (insert_bp_location): Call the watchpoint or catchpoint's
10666 breakpoint_ops.insert method.
10667 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10668 breakpoint_ops.remove method.
10669 (insert_watchpoint, remove_watchpoint): New functions.
10670 (watchpoint_breakpoint_ops): New structure.
10671 (watch_command_1): Initialize the OPS field.
10672 * inf-child.c (inf_child_insert_fork_catchpoint)
10673 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10674 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10675 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10676 Delete functions.
10677 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10678 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10679 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10680 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10681 * target.c (update_current_target): Change default implementation of
10682 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10683 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10684 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10685 to_set_syscall_catchpoint to return_one.
10686 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10687 (debug_to_insert_exec_catchpoint): Report return value.
10688 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10689 (to_insert_exec_catchpoint): Change declaration to return int instead
10690 of void.
10691
9b20d036
MS
106922011-01-11 Michael Snyder <[email protected]>
10693
10694 * arm-tdep.c: Internationalization.
10695 * c-lang.c: Ditto.
10696 * charset.c: Ditto.
10697 * fork-child.c: Ditto.
10698 * nto-procfs.c: Ditto.
10699 * ppc-sysv-tdep.c: Ditto.
10700 * procfs.c: Ditto.
10701 * remote-mips.c: Ditto.
10702 * remote.c: Ditto.
10703 * rs6000-nat.c: Ditto.
10704 * rs6000-tdep.c: Ditto.
10705 * target.c: Ditto.
10706 * valops.c: Ditto.
10707 * value.c: Ditto.
10708 * xml-support.c: Ditto.
10709 * mi/mi-cmd-break.c: Ditto.
10710 * mi/mi-cmd-var.c: Ditto.
10711 * mi/mi-interp.c: Ditto.
10712 * mi/mi-main.c: Ditto.
10713
dae477fe
AB
107142011-01-11 Andrew Burgess <[email protected]>
10715
10716 * remote-sim.c (gdbsim_store_register): Update API to
10717 sim_store_register to check more error conditions.
10718
0df8b418
MS
107192011-01-10 Michael Snyder <[email protected]>
10720
10721 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10722 * nto-tdep.c: Ditto.
10723 * nto-tdep.h: Ditto.
10724 * objc-exp.y: Ditto.
10725 * objc-lang.c: Ditto.
10726 * objfiles.c: Ditto.
10727 * objfiles.h: Ditto.
10728 * observer.c: Ditto.
10729 * opencl-lang.c: Ditto.
10730 * osabi.c: Ditto.
10731 * parse.c: Ditto.
10732 * parser-defs.h: Ditto.
10733 * p-exp.y: Ditto.
10734 * p-lang.c: Ditto.
10735 * posix-hdep.c: Ditto.
10736 * ppcbug-rom.c: Ditto.
10737 * ppc-linux-nat.c: Ditto.
10738 * ppc-linux-tdep.c: Ditto.
10739 * ppc-linux-tdep.h: Ditto.
10740 * ppcnbsd-tdep.c: Ditto.
10741 * ppcobsd-tdep.c: Ditto.
10742 * ppcobsd-tdep.h: Ditto.
10743 * ppc-sysv-tdep.c: Ditto.
10744 * ppc-tdep.h: Ditto.
10745 * printcmd.c: Ditto.
10746 * proc-abi.c: Ditto.
10747 * proc-flags.c: Ditto.
10748 * procfs.c: Ditto.
10749 * proc-utils.h: Ditto.
10750 * progspace.h: Ditto.
10751 * prologue-value.c: Ditto.
10752 * prologue-value.h: Ditto.
10753 * psympriv.h: Ditto.
10754 * psymtab.c: Ditto.
10755 * p-typeprint.c: Ditto.
10756 * p-valprint.c: Ditto.
10757 * ravenscar-sparc-thread.c: Ditto.
10758 * ravenscar-thread.c: Ditto.
10759 * ravenscar-thread.h: Ditto.
10760 * record.c: Ditto.
10761 * regcache.c: Ditto.
10762 * regcache.h: Ditto.
10763 * remote.c: Ditto.
10764 * remote-fileio.c: Ditto.
10765 * remote-fileio.h: Ditto.
10766 * remote.h: Ditto.
10767 * remote-m32r-sdi.c: Ditto.
10768 * remote-mips.c: Ditto.
10769 * remote-sim.c: Ditto.
10770 * rs6000-aix-tdep.c: Ditto.
10771 * rs6000-nat.c: Ditto.
10772 * rs6000-tdep.c: Ditto.
10773
0d7a18f7
MS
107742011-01-10 Michael Snyder <[email protected]>
10775
10776 * charset.c (validate): Internationalization.
10777 * coffread.c (read_one_sym): Ditto.
10778 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10779 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10780 * inflow.c (new_tty): Ditto.
10781 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10782 * m32c-tdep.c (m32c_return_value): Ditto.
10783 * mep-tdep.c (mep_store_return_value): Ditto.
10784 * score-tdep.c (score7_fetch_insn): Ditto.
10785 * ser-mingw.c (pipe_windows_open): Ditto.
10786 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10787 * spu-tdep.c (spu_register_type): Ditto.
10788 * tracepoint.c (trace_find_command): Ditto.
10789 * valarith.c (value_pos): Ditto.
10790
9a153e0b
JB
107912011-01-10 Joel Brobecker <[email protected]>
10792
10793 * ada-valprint.c (printstr): Minor comment reformatting.
10794
35ecd2d6
MS
107952011-01-08 Michael Snyder <[email protected]>
10796
10797 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10798 markup.
10799
1777feb0
MS
108002011-01-08 Michael Snyder <[email protected]>
10801
10802 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10803 * hppa-hpux-tdep.c: Ditto.
10804 * hppa-linux-nat.c: Ditto.
10805 * hppa-linux-tdep.c: Ditto.
10806 * hppanbsd-tdep.c: Ditto.
10807 * hppa-tdep.c: Ditto.
10808 * hppa-tdep.h: Ditto.
10809 * hpux-thread.c: Ditto.
10810 * i386-cygwin-tdep.c: Ditto.
10811 * i386-darwin-nat.c: Ditto.
10812 * i386gnu-nat.c: Ditto.
10813 * i386-linux-nat.c: Ditto.
10814 * i386-linux-tdep.c: Ditto.
10815 * i386-nat.c: Ditto.
10816 * i386-nat.h: Ditto.
10817 * i386nbsd-tdep.c: Ditto.
10818 * i386-sol2-nat.c: Ditto.
10819 * i386-stub.c: Ditto.
10820 * i386-tdep.c: Ditto.
10821 * i386-tdep.h: Ditto.
10822 * i387-tdep.c: Ditto.
10823 * ia64-linux-nat.c: Ditto.
10824 * ia64-linux-tdep.c: Ditto.
10825 * ia64-tdep.c: Ditto.
10826 * infcall.c: Ditto.
10827 * infcall.h: Ditto.
10828 * infcmd.c: Ditto.
10829 * inferior.c: Ditto.
10830 * inferior.h: Ditto.
10831 * infloop.c: Ditto.
10832 * inflow.c: Ditto.
10833 * infrun.c: Ditto.
10834 * interps.c: Ditto.
10835 * interps.h: Ditto.
10836 * iq2000-tdep.c: Ditto.
10837 * irix5-nat.c: Ditto.
10838 * jit.c: Ditto.
10839 * jit.h: Ditto.
10840 * jv-exp.y: Ditto.
10841 * jv-lang.c: Ditto.
10842 * jv-lang.h: Ditto.
10843 * jv-typeprint.c: Ditto.
10844 * jv-valprint.c: Ditto.
10845 * language.c: Ditto.
10846 * language.h: Ditto.
10847 * linespec.c: Ditto.
10848 * linux-fork.c: Ditto.
10849 * linux-nat.c: Ditto.
10850 * linux-thread-db.c: Ditto.
10851 * lm32-tdep.c: Ditto.
10852
025bb325
MS
108532011-01-08 Michael Snyder <[email protected]>
10854
10855 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10856 * m2-lang.c: Ditto.
10857 * m2-typeprint.c: Ditto.
10858 * m2-valprint.c: Ditto.
10859 * m32c-tdep.c: Ditto.
10860 * m32r-linux-nat.c: Ditto.
10861 * m32r-rom.c: Ditto.
10862 * m32r-tdep.c: Ditto.
10863 * m32r-tdep.h: Ditto.
10864 * m68hc11-tdep.c: Ditto.
10865 * m58klinux-nat.c: Ditto.
10866 * m68k-tdep.c: Ditto.
10867 * m88k-tdep.c: Ditto.
10868 * m88k-tdep.h: Ditto.
10869 * machoread.c: Ditto.
10870 * macrocmd.c: Ditto.
10871 * macroexp.c: Ditto.
10872 * macrotab.c: Ditto.
10873 * main.c: Ditto.
10874 * maint.c: Ditto.
10875 * mdebugread.c: Ditto.
10876 * mdebugread.h: Ditto.
10877 * memattr.c: Ditto.
10878 * memattr.h: Ditto.
10879 * memory-map.h: Ditto.
10880 * mep-tdep.c: Ditto.
10881 * microblaze-rom.c: Ditto.
10882 * microblaze-tdep.c: Ditto.
10883 * minsyms.c: Ditto.
10884 * mips-irix-tdep.c: Ditto.
10885 * mips-linux-nat.c: Ditto.
10886 * mips-linux-tdep.c: Ditto.
10887 * mips-linux-tdep.h: Ditto.
10888 * mipsnbsd-nat.c: Ditto.
10889 * mipsnbsd-tdep.c: Ditto.
10890 * mipsread.c: Ditto.
10891 * mips-tdep.c: Ditto.
10892 * mips-tdep.h: Ditto.
10893 * mn10300-linux-tdep.c: Ditto.
10894 * mn10300-tdep.c: Ditto.
10895 * mn10300-tdep.h: Ditto.
10896 * monitor.c: Ditto.
10897 * monitor.h: Ditto.
10898 * moxie-tdep.c: Ditto.
10899 * moxie-tdep.h: Ditto.
10900 * mt-tdep.c: Ditto.
10901
1642781b
MF
109022011-01-08 Mike Frysinger <[email protected]>
10903
10904 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10905
394b0adb
JB
109062011-01-08 Robert Millan <[email protected]>
10907
10908 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10909
b670013c
MS
109102011-01-07 Michael Snyder <[email protected]>
10911
10912 * charset.c (_initialize_charset): Fix typo in string.
10913
a743e542
MS
109142011-01-07 Michael Snyder <[email protected]>
10915
10916 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10917 for i18n.
f2eb0bc8 10918 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10919 Split line so that operator goes to beginning of line.
10920 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10921 assignment out of if statement.
10922
0963b4bd
MS
109232011-01-07 Michael Snyder <[email protected]>
10924
10925 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10926 * ada-lang.h: Ditto.
10927 * ada-tasks.c: Ditto.
10928 * ada-valprint.c: Ditto.
10929 * aix-threads.c: Ditto.
10930 * alpha-linux-nat.c: Ditto.
10931 * alpha-linux-tdep.c: Ditto.
10932 * alpha-mdebug-tdep.c: Ditto.
10933 * alpha-nat.c: Ditto.
10934 * alpha-osf1-tdep.c: Ditto.
10935 * alpha-tdep.c: Ditto.
10936 * alphabsd-nat.c: Ditto.
10937 * alphabsd-tdep.c: Ditto.
10938 * amd64-darwin-tdep.c: Ditto.
10939 * amd64-linux-nat.c: Ditto.
10940 * amd64-linux-tdep.c: Ditto.
10941 * amd64-sol2-tdep.c: Ditto.
10942 * amd64-tdep.c: Ditto.
10943 * amd64-fbsd-tdep.c: Ditto.
10944 * amd64-nbsd-tdep.c: Ditto.
10945 * amd64-obsd-tdep.c: Ditto.
10946 * amd64-linux-nat.c: Ditto.
10947 * amd64-linux-tdep.c: Ditto.
10948 * arm-tdep.c: Ditto.
10949 * arm-tdep.h: Ditto.
10950 * armnbsd-nat.c: Ditto.
10951 * avr-tdep.c: Ditto.
10952 * bfin-tdep.c: Ditto.
10953 * bsd-kvm.c: Ditto.
10954 * c-typeprintc: Ditto.
10955 * c-valprint.c: Ditto.
10956 * coff-pe-read.h: Ditto.
10957 * coffreead.c: Ditto.
10958 * cris-tdep.c: Ditto.
10959 * d-lang.c: Ditto.
10960 * darwin-nat-info.c: Ditto.
10961 * darwin-nat.c: Ditto.
10962 * dbug-rom.c: Ditto.
10963 * dbxread.c: Ditto.
10964 * dcache.c: Ditto.
10965 * dcache.h: Ditto.
10966 * dec-thread.c: Ditto.
10967 * defs.h: Ditto.
10968 * demangle.c: Ditto.
10969 * dicos-tdep.c: Ditto.
10970 * dictionary.c: Ditto.
10971 * dictionary.h: Ditto.
10972 * dink32-rom.c: Ditto.
10973 * disasm.c: Ditto.
10974 * doublest.c: Ditto.
10975 * dsrec.c: Ditto.
10976 * dummy-frame.c: Ditto.
10977 * dwarf2-frame.c: Ditto.
10978 * dwarf2expr.c: Ditto.
10979 * dwarf2loc.c: Ditto.
10980 * dwarf2read.c: Ditto.
10981 * elfread.c: Ditto.
10982 * environ.c: Ditto.
10983 * eval.c: Ditto.
10984 * event-top.h: Ditto.
10985 * exceptions.c: Ditto.
10986 * exceptions.h: Ditto.
10987 * exec.c: Ditto.
10988 * expprint.c: Ditto.
10989 * expression.h: Ditto.
10990 * f-exp.y: Ditto.
10991 * f-lang.c: Ditto.
10992 * f-lang.h: Ditto.
10993 * f-typeprint.c: Ditto.
10994 * f-valprint.c: Ditto.
10995 * fbsd-nat.c: Ditto.
10996 * findvar.c: Ditto.
10997 * fork-child.c: Ditto.
10998 * frame.c: Ditto.
10999 * frame.h: Ditto.
11000 * frv-linux-tdep.c: Ditto.
11001 * frv-tdep.c: Ditto.
11002 * gcore.c: Ditto.
11003 * gdb-stabs.h: Ditto.
11004 * gdb_assert.h: Ditto.
11005 * gdb_string.h: Ditto.
11006 * gdb_thread_db.h: Ditto.
11007 * gdb_wait.h: Ditto.
11008 * gdbarch.sh: Ditto.
11009 * gdbcore.h: Ditto.
11010 * gdbthread.h: Ditto.
11011 * gdbtypes.c: Ditto.
11012 * gdbtypes.h: Ditto.
11013 * gnu-nat.c: Ditto.
11014 * gnu-nat.h: Ditto.
11015 * gnu-v2-abi.c: Ditto.
11016 * gnu-v3-abi.c: Ditto.
11017 * go32-nat.c: Ditto.
11018 * gdbarch.c: Regenerate.
11019 * gdbarch.h: Regenerate.
11020
ac74f770
MS
110212011-01-07 Michael Snyder <[email protected]>
11022
11023 * ax-gdb.c: Adjust some long output strings.
11024 * breakpoint.c: Ditto.
11025 * charset.c: Ditto.
11026 * cp-abi.c: Ditto.
11027 * infcall.c: Ditto.
11028 * infrun.c: Ditto.
11029 * linux-nat.c: Ditto.
11030 * solib-pa64.c: Ditto.
11031 * solib-som.c: Ditto.
11032
d8e22779
TT
110332011-01-06 Tom Tromey <[email protected]>
11034
11035 PR python/12367:
11036 * NEWS: Add item.
11037 * python/python.c (GdbMethods): Add "newest_frame" method.
11038 * python/python-internal.h (gdbpy_newest_frame): Declare.
11039 * python/py-frame.c (gdbpy_newest_frame): New function.
11040
a255712f
PP
110412010-01-06 Paul Pluzhnikov <[email protected]>
11042
11043 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11044 * jit.c (jit_debug): New variable.
11045 (show_jit_debug): New function.
11046 (struct target_buffer): Use ULONGEST.
11047 (bfd_open_from_target_memory): Likewise.
11048 (jit_register_code, jit_inferior_init): Add debug output.
11049 (_initialize_jit): Register "debug jit" command.
11050
ccfc3d6e
TT
110512011-01-06 Tom Tromey <[email protected]>
11052
11053 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11054 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11055 and ARCH_FRAME.
11056
57126e4a
TT
110572011-01-06 Tom Tromey <[email protected]>
11058
11059 * python/py-frame.c (frapy_block): Use get_frame_block.
11060
16dfc9ce
JB
110612011-01-06 Joel Brobecker <[email protected]>
11062
11063 Do not stop on SIGPRIO signals by default
11064 * infrun.c (_initialize_infrun): Unset signal_stop and
11065 signal_print for TARGET_SIGNAL_PRIO.
11066
b1ce2347
JB
110672011-01-06 Joel Brobecker <[email protected]>
11068
11069 * ada-tasks.c: Fix style violation in comment.
11070
8f7e195f
JB
110712011-01-06 Joel Brobecker <[email protected]>
11072
11073 * linespec.c (decode_compound, find_method): Remove trailing \n
11074 at end of error string.
11075 * solib-irix.c (irix_current_sos): Likewise.
11076 * varobj.c (uninstall_variable): Likewise.
11077
e9bdf92c
JB
110782011-01-06 Joel Brobecker <[email protected]>
11079
11080 * copyright.py: New script.
11081 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11082 Launch emacs without exec'ing. Call copyright.py afterwards.
11083
3e43a32a
MS
110842011-01-05 Michael Snyder <[email protected]>
11085
11086 * addrmap.c: Shorten lines of >= 80 columns.
11087 * arch-utils.c: Ditto.
11088 * arch-utils.h: Ditto.
11089 * ax-gdb.c: Ditto.
11090 * ax-general.c: Ditto.
11091 * bcache.c: Ditto.
11092 * blockframe.c: Ditto.
11093 * breakpoint.c: Ditto.
11094 * buildsym.c: Ditto.
11095 * c-lang.c: Ditto.
11096 * c-typeprint.c: Ditto.
11097 * charset.c: Ditto.
11098 * coffread.c: Ditto.
11099 * command.h: Ditto.
11100 * corelow.c: Ditto.
11101 * cp-abi.c: Ditto.
11102 * cp-namespace.c: Ditto.
11103 * cp-support.c: Ditto.
11104 * dbug-rom.c: Ditto.
11105 * dbxread.c: Ditto.
11106 * defs.h: Ditto.
11107 * dfp.c: Ditto.
11108 * dfp.h: Ditto.
11109 * dictionary.c: Ditto.
11110 * disasm.c: Ditto.
11111 * doublest.c: Ditto.
11112 * dwarf2-frame.c: Ditto.
11113 * dwarf2expr.c: Ditto.
11114 * dwarf2loc.c: Ditto.
11115 * dwarf2read.c: Ditto.
11116 * elfread.c: Ditto.
11117 * eval.c: Ditto.
11118 * event-loop.c: Ditto.
11119 * event-loop.h: Ditto.
11120 * exceptions.h: Ditto.
11121 * exec.c: Ditto.
11122 * expprint.c: Ditto.
11123 * expression.h: Ditto.
11124 * f-lang.c: Ditto.
11125 * f-valprint.c: Ditto.
11126 * findcmd.c: Ditto.
11127 * frame-base.c: Ditto.
11128 * frame-unwind.c: Ditto.
11129 * frame-unwind.h: Ditto.
11130 * frame.c: Ditto.
11131 * frame.h: Ditto.
11132 * gcore.c: Ditto.
11133 * gdb-stabs.h: Ditto.
11134 * gdb_assert.h: Ditto.
11135 * gdb_dirent.h: Ditto.
11136 * gdb_obstack.h: Ditto.
11137 * gdbcore.h: Ditto.
11138 * gdbtypes.c: Ditto.
11139 * gdbtypes.h: Ditto.
11140 * inf-ttrace.c: Ditto.
11141 * infcall.c: Ditto.
11142 * infcmd.c: Ditto.
11143 * inflow.c: Ditto.
11144 * infrun.c: Ditto.
11145 * inline-frame.h: Ditto.
11146 * language.c: Ditto.
11147 * language.h: Ditto.
11148 * libunwind-frame.c: Ditto.
11149 * libunwind-frame.h: Ditto.
11150 * linespec.c: Ditto.
11151 * linux-nat.c: Ditto.
11152 * linux-nat.h: Ditto.
11153 * linux-thread-db.c: Ditto.
11154 * machoread.c: Ditto.
11155 * macroexp.c: Ditto.
11156 * macrotab.c: Ditto.
11157 * main.c: Ditto.
11158 * maint.c: Ditto.
11159 * mdebugread.c: Ditto.
11160 * memattr.c: Ditto.
11161 * minsyms.c: Ditto.
11162 * monitor.c: Ditto.
11163 * monitor.h: Ditto.
11164 * objfiles.c: Ditto.
11165 * objfiles.h: Ditto.
11166 * osabi.c: Ditto.
11167 * p-typeprint.c: Ditto.
11168 * p-valprint.c: Ditto.
11169 * parse.c: Ditto.
11170 * printcmd.c: Ditto.
11171 * proc-events.c: Ditto.
11172 * procfs.c: Ditto.
11173 * progspace.c: Ditto.
11174 * progspace.h: Ditto.
11175 * psympriv.h: Ditto.
11176 * psymtab.c: Ditto.
11177 * record.c: Ditto.
11178 * regcache.c: Ditto.
11179 * regcache.h: Ditto.
11180 * remote-fileio.c: Ditto.
11181 * remote.c: Ditto.
11182 * ser-mingw.c: Ditto.
11183 * ser-tcp.c: Ditto.
11184 * ser-unix.c: Ditto.
11185 * serial.c: Ditto.
11186 * serial.h: Ditto.
11187 * solib-frv.c: Ditto.
11188 * solib-irix.c: Ditto.
11189 * solib-osf.c: Ditto.
11190 * solib-pa64.c: Ditto.
11191 * solib-som.c: Ditto.
11192 * solib-sunos.c: Ditto.
11193 * solib-svr4.c: Ditto.
11194 * solib-target.c: Ditto.
11195 * solib.c: Ditto.
11196 * somread.c: Ditto.
11197 * source.c: Ditto.
11198 * stabsread.c: Ditto.
11199 * stabsread.c: Ditto.
11200 * stack.c: Ditto.
11201 * stack.h: Ditto.
11202 * symfile-mem.c: Ditto.
11203 * symfile.c: Ditto.
11204 * symfile.h: Ditto.
11205 * symmisc.c: Ditto.
11206 * symtab.c: Ditto.
11207 * symtab.h: Ditto.
11208 * target-descriptions.c: Ditto.
11209 * target-memory.c: Ditto.
11210 * target.c: Ditto.
11211 * target.h: Ditto.
11212 * terminal.h: Ditto.
11213 * thread.c: Ditto.
11214 * top.c: Ditto.
11215 * tracepoint.c: Ditto.
11216 * tracepoint.h: Ditto.
11217 * ui-file.c: Ditto.
11218 * ui-file.h: Ditto.
11219 * ui-out.h: Ditto.
11220 * user-regs.c: Ditto.
11221 * user-regs.h: Ditto.
11222 * utils.c: Ditto.
11223 * valarith.c: Ditto.
11224 * valops.c: Ditto.
11225 * valprint.c: Ditto.
11226 * valprint.h: Ditto.
11227 * value.c: Ditto.
11228 * varobj.c: Ditto.
11229 * varobj.h: Ditto.
11230 * vec.h: Ditto.
11231 * xcoffread.c: Ditto.
11232 * xcoffsolib.c: Ditto.
11233 * xcoffsolib.h: Ditto.
11234 * xml-syscall.c: Ditto.
11235 * xml-tdesc.c: Ditto.
11236
9a2b4c1b
MS
112372011-01-05 Michael Snyder <[email protected]>
11238
11239 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11240 * cli/cli-decode.c: Ditto.
11241 * cli/cli-dump.c: Ditto.
11242 * cli/cli-logging.c: Ditto.
11243 * cli/cli-script.c: Ditto.
11244 * cli/cli-setshow.c: Ditto.
11245 * common/signals.c: Ditto.
11246 * mi/mi-cmd-break.c: Ditto.
11247 * mi/mi-cmd-disas.c: Ditto.
11248 * mi/mi-cmd-stack.c: Ditto.
11249 * mi/mi-cmd-var.c: Ditto.
11250 * mi/mi-cmds.c: Ditto.
11251 * mi/mi-common.h: Ditto.
11252 * mi/mi-console.c: Ditto.
11253 * mi/mi-interp.c: Ditto.
11254 * mi/mi-main.c: Ditto.
11255 * osf-share/cma_attr.c: Ditto.
11256 * osf-share/cma_deb_core.h: Ditto.
11257 * osf-share/cma_debug_client.h: Ditto.
11258 * osf-share/cma_handle.h: Ditto.
11259 * osf-share/cma_mutex.h: Ditto.
11260 * osf-share/cma_stack_int.h: Ditto.
11261 * osf-share/cma_tcb_defs.h: Ditto.
11262 * python/py-auto-load.c: Ditto.
11263 * python/py-breakpoint.c: Ditto.
11264 * python/py-cmd.c: Ditto.
11265 * python/py-frame.c: Ditto.
11266 * python/py-objfile.c: Ditto.
11267 * python/py-param.c: Ditto.
11268 * python/py-progspace.c: Ditto.
11269 * python/py-symbol.c: Ditto.
11270 * python/py-value.c: Ditto.
11271 * python/python-internal.h: Ditto.
11272 * python/python.c: Ditto.
11273 * tui/tui-data.c: Ditto.
11274 * tui/tui-disasm.c: Ditto.
11275 * tui/tui-hooks.c: Ditto.
11276 * tui/tui-io.c: Ditto.
11277 * tui/tui-layout.c: Ditto.
11278 * tui/tui-regs.c: Ditto.
11279 * tui/tui-source.c: Ditto.
11280 * tui/tui-stack.c: Ditto.
11281 * tui/tui-win.c: Ditto.
11282 * tui/tui-windata.c: Ditto.
11283 * tui/tui-winsource.c: Ditto.
11284
44944448
JB
112852011-01-05 Joel Brobecker <[email protected]>
11286
11287 * configure.ac, gdb.1: Copyright year update.
11288
ebedcab5
JK
112892011-01-03 Jan Kratochvil <[email protected]>
11290
11291 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11292 this_pc_in_block, morestack_msym and morestack_name. Check for
11293 "__morestack" minimal symbol there.
11294
e5cc9f32
JB
112952011-01-03 Joel Brobecker <[email protected]>
11296
11297 * symfile.c (find_sym_fns): Add call to dont_repeat.
11298
7b6bb8da
JB
112992011-01-01 Joel Brobecker <[email protected]>
11300
11301 Copyright year update in most files (performed by copyright.sh).
11302
71ce852c
JB
113032011-01-01 Joel Brobecker <[email protected]>
11304
11305 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11306
c3c1ebe8 11307For older changes see ChangeLog-2010.
c906108c
SS
11308\f
11309Local Variables:
11310mode: change-log
11311left-margin: 8
11312fill-column: 74
11313version-control: never
57da7796 11314coding: utf-8
c906108c 11315End:
This page took 4.236836 seconds and 4 git commands to generate.