daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3623dc3a
SD
12011-11-20 Sanjoy Das <sdas@igalia.com>
2
3 * jit.c: Include regcache.h.
4 (jit_gdbarch_data, jit_frame_unwind): New static variables.
5 (jit_unwind_reg_set_impl, free_reg_value_impl)
6 (jit_unwind_reg_get_impl, jit_frame_sniffer)
7 (jit_frame_unwind_stop_reason, jit_frame_this_id)
8 (jit_frame_prev_register, jit_dealloc_cache)
9 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
10 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
11 jit_prepend_unwinder.
12 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
13
1825a88d
SD
142011-11-20 Sanjoy Das <sdas@igalia.com>
15
16 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
17 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
18 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
19 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
20 (finalize_symtab, jit_object_close_impl)
21 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
22 (free_objfile_data): New functions.
23 (_initialize_jit): Register jit_objfile_data with a proper cleanup
24 function.
25
784c47ee
SD
262011-11-20 Sanjoy Das <sdas@igalia.com>
27
28 * jit.c: Include gdb-dlfcn.h.
29 (loaded_jit_reader, reader_init_fn_sym): New static variables.
30 (jit_reader_load, jit_reader_load_command)
31 (jit_reader_unload_command): New functions.
32 (_initialize_jit): Add commands "jit-reader-load" and
33 "jit-reader-unload".
34
a2d08b9e
SD
352011-11-20 Sanjoy Das <sdas@igalia.com>
36
37 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
38 * config.in: Add new #define HAVE_LIBDL.
39 * configure.ac: Add check for -ldl.
40 * configure: Re-generated by autoconf.
41 * gdb-dlfcn.c: New file.
42 * gdb-dlfcn.h: New file.
43
b8e0a31c
SD
442011-11-20 Sanjoy Das <sdas@igalia.com>
45
46 * config.in: Add new #defines: JIT_READER_DIR and
47 JIT_READER_DIR_RELOCATABLE.
48 * configure.ac: New GDB directory entry for jit-reader-dir.
49 * configure: Re-generated by autoconf.
50 * jit.c: New static variable: const char *jit_reader_dir.
51 (_initialize_jit): Relocate jit_reader_dir.
52
f997c383
SD
532011-11-20 Sanjoy Das <sdas@igalia.com>
54
55 * Makefile.in: Add jit-reader.h as a header. Have it installed in
56 $(includedir)/gdb.
57 * configure.ac: Generate a correct value for TARGET_PTR for
58 jit-reader.h. Tell configure to generate jit-reader.h from
59 jit-reader.in.
60 * configure: Re-generated by autoconf.
61 * jit-reader.in: New file.
62 * jit.c: Include jit-reader.h.
63
dc8c0494
SD
642011-11-20 Sanjoy Das <sdas@igalia.com>
65
66 * MAINTAINERS (Write After Approval): Add myself to the list.
67
01efb936
UW
682011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
69
70 * findvar.c (read_frame_register_value): Respect value_offset
71 of the register value. Remove big-endian special case.
72
732f3f12
TT
732011-11-18 Tom Tromey <tromey@redhat.com>
74
75 PR build/7196:
76 * remote.c (putpkt_for_catch_errors): New function.
77 (remote_kill): Use it.
78
bfccc43c
YQ
792011-11-18 Yao Qi <yao@codesourcery.com>
80
81 * breakpoint.c (create_breakpoint): Produce query message according to
82 breakpoint's type.
83 Allocate tracepoint per correct type.
84 Don't check SALs for pending fast tracepoints.
85 * tracepoint.c (process_tracepoint_on_disconnect): New.
86 (disconnect_tracing): Call process_tracepoint_on_disconnect.
87
3ea46bff
YQ
882011-11-18 Yao Qi <yao@codesourcery.com>
89
90 * breakpoint.c (install_breakpoint): Add one more parameter so that
91 update_global_location_list is called conditionally.
92 (create_fork_vfork_event_catchpoint): Update.
93 (create_syscall_event_catchpoint): Update.
94 (create_breakpoint_sal): Update.
95 (create_breakpoint_sal): Update. Call do_cleanups before
96 install_breakpoint.
97 * ada-lang.c (create_ada_exception_catchpoint): Update.
98 * breakpoint.h (install_breakpoint): Update declaration.
99
598cfb71
UW
1002011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
101
102 * spu-tdep.c (spu_return_value): Fix handling of
103 TYPE_CALLING_CONVENTION annotation.
104
caf4328c
UW
1052011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
106
107 * skip.c (skip_function_command): Work around uninitialized
108 variable warning.
109
2b54dda2
DM
1102011-11-16 David S. Miller <davem@davemloft.net>
111
112 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
113 'tv_usec' to long for printf since these fields have a type which
114 varies.
115
93bf33fd
DE
1162011-11-15 Doug Evans <dje@google.com>
117
118 * buildsym.c (add_symbol_to_list): Delete outdated comment.
119
9cc10fd1
PK
1202011-11-15 Paul Koning <paul_koning@dell.com>
121
122 * python/py-type.c (typy_get_composite): New function.
123 (typy_nonzero): New function.
124 (typy_values): Rename from typy_fields.
125 (typy_fields): New function.
126 (typy_length): Raise exception if not struct, union, or enum type.
127 (typy_getitem): Ditto.
128 (typy_has_key): Ditto.
129 (typy_make_iter): Ditto.
130
c011a4f4
DE
1312011-11-15 Doug Evans <dje@google.com>
132
133 * NEWS: Mention new parameter basenames-may-differ.
134 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
135 ! basenames_may_differ.
136 * psymtab.c (lookup_partial_symtab): Ditto.
137 * symtab.c (lookup_symtab): Ditto.
138 (basenames_may_differ): New global.
139 (_initialize_symtab): New parameter basenames-may-differ.
140 * symtab.h (basenames_may_differ): Declare.
141
865ecab4
LM
1422011-11-15 Pedro Alves <pedro@codesourcery.com>
143 Luis Machado <lgustavo@codesourcery.com>
144
145 * auxv.c: Include observer.h.
146 (auxv_inferior_data_cleanup): New.
147 (invalidate_auxv_cache_inf): New.
148 (invalidate_auxv_cache): New.
149 (get_auxv_inferior_data): New.
150 (auxv_inferior_data): New static global.
151 (auxv_info): New structure.
152 (target_auxv_search): Use get_auxv_inferior_data instead of
153 target_read_alloc and don't free cached buffers.
154 (fprint_target_auxv): Likewise
155 (_initialize_auxv): Register per-inferior auxv cache and register
156 observers to invalidate auxv cache when needed.
157
ed59ded5
DE
1582011-11-14 Doug Evans <dje@google.com>
159
160 Make "!" an alias for "shell".
161 * NEWS: Add mention.
162 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
163 adding "!" command, always add it.
164 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
165 command of length one.
166
405f8e94
SS
1672011-11-14 Stan Shebs <stan@codesourcery.com>
168 Kwok Cheung Yeung <kcy@codesourcery.com>
169
170 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
171 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
172 the minimum instruction size for fast tracepoints.
173 * target.h (struct target_ops): Add new method
174 to_get_min_fast_tracepoint_insn_len.
175 (target_get_min_fast_tracepoint_insn_len): New.
176 * target.c (update_current_target): Set up new target operation.
177 * remote.c (remote_write_bytes_aux): Fix typo.
178 (remote_get_min_fast_tracepoint_insn_len): New.
179 (init_remote_ops): Initialize new field.
180
3e05895e
TT
1812011-11-14 Tom Tromey <tromey@redhat.com>
182
183 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
184 (encode_actions): Likewise.
185
1e4d1764
YQ
1862011-11-14 Yao Qi <yao@codesourcery.com>
187
188 * remote.c (struct remote_state): <install_in_trace> new field.
189 (PACKET_InstallInTrace): New enum value.
190 (remote_install_in_trace_feature): Support InstallInTrace.
191 (remote_supports_install_in_trace): Likewise.
192 (remote_protocol_features): Likewise.
193 (_initialize_remote): Likewise.
194 (remote_can_download_tracepoint): New.
195 * target.h (struct target): New field
196 `to_can_download_tracepoint'.
197 (target_can_download_tracepoint): New macro.
198 * target.c (update_current_target): Update.
199 * breakpoint.h (struct bp_location): Add comment on field
200 `duplicate'.
3ccd4ac6
YQ
201 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
202 and tracepoint.
1e4d1764
YQ
203 (remove_breakpoints): Don't remove tracepoints.
204 (tracepoint_locations_match ): New.
205 (breakpoint_locations_match): Call it.
206 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
207 (download_tracepoint_locations): New.
208 (update_global_location_list): Call it.
209 * tracepoint.c (find_matching_tracepoint): Delete.
210 (find_matching_tracepoint_location): Renamed from
211 find_matching_tracepoint. Return bp_location rather than
212 tracepoint.
213 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
214 tracepoint is found.
215
e8ba3115
YQ
2162011-11-14 Yao Qi <yao@codesourcery.com>
217
218 * target.h (struct target): <to_download_tracepoint> Change type
219 of parameter from tracepoint to bp_location.
220 * target.c (update_current_target): Update.
221 * tracepoint.c (start_tracing): Update.
222 * remote.c (remote_download_tracepoint): Remove loop for each location
223 of a tracepoint.
224
edcc485a
MR
2252011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
226
227 * i386-nat.c (i386_insert_hw_breakpoint): Call
228 i386_update_inferior_debug_regs.
229 (i386_remove_hw_breakpoint): Likewise.
230
3742cc8b
YQ
2312011-11-14 Yao Qi <yao@codesourcery.com>
232
233 * breakpoint.c (init_raw_breakpoint): Call
234 add_location_to_breakpoint to replace duplicated code.
235 (add_location_to_breakpoint): Adjust the breakpoint's
236 address prior to allocating a location.
237
71eba9c2 2382011-11-12 Matt Rice <ratmice@gmail.com>
239
240 * macrocmd.c (macro_no_macro_info): New function.
241 (macro_expand_command): Use macro_no_macro_info.
242 (macro_expand_once_command): Ditto.
243 (info_macro_command): Add argument processing,
244 move info_definitions_command here.
245 (_initialize_macrocmd): Remove info definitions command.
246 Add arguments to info macro help text.
247 * NEWS: Replace info definitions command with new info macro options.
248
731971ed
KS
2492011-11-11 Keith Seitz <keiths@redhat.com>
250
251 PR gdb/12843
252 * linespec.c (locate_first_half): Keep ':' if it looks
253 like it could be part of a Windows path starting with
254 a drive letter.
255
6953d224
PA
2562011-11-10 Pedro Alves <pedro@codesourcery.com>
257
258 * linux-nat.c (linux_nat_wait): Don't force waking up the event
259 loop when returning a TARGET_WAITKIND_NO_RESUMED.
260
0c94aa73
PA
2612011-11-10 Pedro Alves <pedro@codesourcery.com>
262
263 * target.c (target_waitstatus_to_string): Handle
264 TARGET_WAITKIND_NO_RESUMED.
265
f6b47be4
DE
2662011-11-10 Doug Evans <dje@google.com>
267
74e2f255
DE
268 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
269 `need_fullname'.
270 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
271 (map_partial_symbol_filenames): Ditto. All callers updated.
272 * psymtab.h (map_partial_symbol_filenames): Update prototype.
273 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
274 parameter need_fullname.
275
256f06f3
DE
276 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
277 * source.c (symtab_to_fullname): Ditto.
278
50f182aa
DE
279 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
280 * gdb-demangle.h: ... here. New file.
281 * demangle.c: #include "gdb-demangle.h".
282 (_initialize_demangler): Use initialize_file_ftype for prototype.
283 Move "set demangle" and "set asm-demangle" parameters here from utils.c
284 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
285 from utils.c
286 * utils.c: Update. #include "gdb-demangle.h".
287 * symtab.h (asm_demangle): Delete.
288 (demangle): Move declaration next to use.
289 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
290 * dwarf2read.c: #include "gdb-demangle.h".
291 * gnu-v2-abi.c: Ditto.
292 * jv-typeprint.c: Ditto.
293 * mdebugread.c: Ditto.
294 * p-typeprint.c: Ditto.
295 * stabsread.c: Ditto.
296 * printcmd.c: Ditto.
297 (asm_demangle): Delete declaration.
298 * tui/tui-stack.c: #include "gdb-demangle.h".
299
f6b47be4
DE
300 * python/py-type.c (typy_fields_items): Call check_typedef.
301
22355c90
JB
3022011-11-10 Joel Brobecker <brobecker@adacore.com>
303
304 * findvar.c (read_frame_register_value): Read the correct bytes
305 from registers on big-endian architectures.
306
bd119cf1 3072011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
308
309 * procfs.c (load_syscalls): Make a cleanup.
310 (open_procinfo_files): fd==0 is ok.
311
0a86f364
JB
3122011-11-10 Joel Brobecker <brobecker@adacore.com>
313
314 * procfs.c (iterate_over_mappings): Call do_cleanups before
315 returning.
316
9bc118a5
DE
3172011-11-09 Doug Evans <dje@google.com>
318
319 * gdbtypes.c (check_typedef): Document that this function can
320 throw an exception.
321
a7860e76
TT
3222011-11-09 Tom Tromey <tromey@redhat.com>
323
324 PR c++/13342:
325 * valops.c (value_full_object): Return early if real type is
326 smaller than the enclosing type.
327
60965737
YQ
3282011-11-08 Yao Qi <yao@codesourcery.com>
329
330 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
331
72a2e3dc
MI
3322011-11-08 Meador Inge <meadori@codesourcery.com>
333
334 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
335 register when the frame can't be determined.
336 * arm-tdep.c (arm_analyze_prologue): Ditto.
337
ce3b0ff7
SS
3382011-11-07 Stan Shebs <stan@codesourcery.com>
339
340 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
341
2b914b52
JB
3422011-11-07 Joel Brobecker <brobecker@adacore.com>
343
344 * infrun.c (handle_inferior_event): Minor reformatting.
345
6f809020
DE
3462011-11-05 Doug Evans <dje@google.com>
347
348 * source.c (forget_cached_source_info_for_objfile): Move call to
349 objfile->sf->qf->forget_cached_source_info outside of
350 ALL_OBJFILE_SYMTABS loop.
351 (forget_cached_source_info): Delete unused variable `s'.
352
75d12218
JK
3532011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 * i386-nat.c (dr_ref_count): Remove unused variable.
356
e565b837
DE
3572011-11-05 Doug Evans <dje@google.com>
358
359 * main.c (captured_main): Set lim_at_start before calling
360 make_command_stats_cleanup.
361
0a1c4d10
DE
3622011-11-04 Doug Evans <dje@google.com>
363
364 * utils.c: #include "timeval-utils.h".
365 (cmd_stats): Rename start_time to start_cpu_time.
366 New member start_wall_time.
367 (report_command_stats): Report wall time.
368 (make_command_stats_cleanup): Record start wall time.
369
a1d705ee
TT
3702011-11-04 Tom Tromey <tromey@redhat.com>
371
372 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
373
81de56be
RO
3742011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
375
376 * coff-pe-read.c: Include defs.h before bfd.h.
377
3ab1ec27
PM
3782011-11-04 Phil Muldoon <pmuldoon@redhat.com>
379
380 PR Python/13345
381
382 * python/python.c (python_run_simple_file): Expand tilde in path.
383
cd829959
PM
3842011-11-04 Phil Muldoon <pmuldoon@redhat.com>
385
386 PR Python/13363
387
388 * python/py-type.c (typy_lookup_type): Do not return a type in
389 an exception handler.
390
080ad648
JK
3912011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
392 Eli Zaretskii <eliz@gnu.org>
393
394 * linux-nat.c (_initialize_linux_nat): Improve help
395 for `info proc stat', `info proc status', `info proc cwd',
396 `info proc cmdline' and `info proc exe'.
397
3065dfb6
SS
3982011-11-02 Stan Shebs <stan@codesourcery.com>
399
400 String collection for tracepoints.
401 * NEWS: Mention string collection.
402 * common/ax.def (tracenz): New bytecode.
403 * ax-gdb.h (trace_string_kludge): Declare.
404 * ax-gdb.c: Include valprint.h and c-lang.h.
405 (trace_string_kludge): New global.
406 (gen_traced_pop): Add string case.
407 (agent_command): Add string case.
408 * tracepoint.h (decode_agent_options): Declare.
409 * tracepoint.c: Include cli-utils.h.
410 (decode_agent_options): New function.
411 (validate_actionline): Call it.
412 (encode_actions_1): Ditto.
413 * target.h (struct target_ops): New method to_supports_string_tracing.
414 (target_supports_string_tracing): New macro.
415 * target.c (update_current_target): Add to_supports_string_tracing.
416 * remote.c (struct remote_state): New field string_tracing.
417 (remote_string_tracing_feature): New function.
418 (remote_protocol_features): New feature tracenz.
419 (remote_supports_string_tracing): New function.
420 (init_remote_ops): Set to_supports_string_tracing.
421
f179e162
JK
4222011-11-02 Pedro Alves <pedro@codesourcery.com>
423 Jan Kratochvil <jan.kratochvil@redhat.com>
424
425 * linux-nat.c: Include cli/cli-utils.h.
426 (enum info_proc_what): New.
427 (linux_nat_info_proc_cmd): Rename to ...
428 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
429 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
430 status_f and stat_f from WHAT. Throw error on extra parameters.
431 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
432 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
433 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
434 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
435 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
436 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
437 `info proc cmdline', `info proc exe' and `info proc all' as real
438 subcommands of `info proc'.
439
7b35ec7f 4402011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
441
442 * Makefile.in: (SFILES): Add skip.c.
443 (HFILES_NO_SRCDIR): Add skip.h.
444 (COMMON_OBS): Add skip.o.
445 * skip.h, skip.c: New.
446 * breakpoint.h (set_default_breakpoint): Remove.
447 (get_sal_arch): Declare.
448 * breakpoint.c: Remove default_breakpoint_valid,
449 default_breakpoint_address, default_breakpoint_symtab,
450 default_breakpoint_line, default_breakpoint_pspace variables.
451 (get_sal_arch): Make public.
452 (set_default_breakpoint): Remove.
453 (parse_breakpoint_sals, create_breakpoint, clear_command,
454 decode_line_spec_1): Remove uses of default_breakpoint variables;
455 replaced with function calls into stack.c.
456 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
457 * cli/cli-cmds.c: Add skiplist.
458 (init_cmd_lists): Initialize skiplist.
459 (init_cli_cmds): Fix comment (classes of commands appear in
460 alphabetical order).
461 * infrun.c (handle_inferior_event): Add check that we don't step into
462 a function whose pc is marked for skip.
463 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
464 last_displayed_addr, last_displayed_symtab, last_displayed_line
465 variables.
466 (set_last_displayed_sal): New static function.
467 (print_frame_info): Switch call to set_default_breakpoint to call to
468 set_last_displayed_sal.
469 (clear_last_displayed_sal, last_displayed_sal_is_valid,
470 get_last_displayed_pspace, get_last_displayed_addr,
471 get_last_displayed_symtab, get_last_displayed_line,
472 get_last_displayed_sal): New public functions.
473 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
474 get_last_displayed_pspace, get_last_displayed_addr,
475 get_last_displayed_symtab, get_last_displayed_line,
476 get_last_displayed_sal): Declare.
477
b60e1588
JL
4782011-11-01 Justin Lebar <justin.lebar@gmail.com>
479
480 * MAINTAINERS (Write After Approval): Add myself to the list.
481
d31647d2
YQ
4822011-10-29 Yao Qi <yao@codesourcery.com>
483
484 * infcmd.c (disconnect_command): Call disconnect_tracing.
485
b1d96efd
JK
4862011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
487
488 Code cleanup.
489 * symtab.c (skip_prologue_sal): Code reformatting.
490
4dfb2365
JK
4912011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
492
493 PR symtab/13208
494 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
495 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
496 SAI.
497
0e5bf2a8
PA
4982011-10-28 Pedro Alves <pedro@codesourcery.com>
499
500 * linux-nat.c (linux_nat_filter_event): Remove `options'
501 parameter, and dead code that used it. If we're handling a
502 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
503 in our lwp list, re-add it.
504 (check_zombie_leaders): New.
505 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
506 wait for children with WNOHANG, and always wait for all children.
507 Don't check for no resumed children upfront. Simplify wait loop.
508 Check for zombie thread group leaders after handling all wait
509 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
510 unwaited-for children left.
511 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
512 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
513 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
514 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
515
821296b7
SA
5162011-10-28 Sterling Augustine <saugustine@google.com>
517
518 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
519 * symtab.c (free_completion_list): New function.
520 (do_free_completion_list): Likewise.
521 (default_make_symbol_completion_list_break_on): New variable
522 back_to. Call make_cleanup and discard_cleanups.
523 (make_source_files_completion_list): Likewise.
524
03c3051a
PK
5252011-10-28 Paul Koning <paul_koning@dell.com>
526
527 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
528 * NEWS: Mention deep_items.
529
8e7ebaf5
PA
5302011-10-28 Alen Skondro <askondro@gmail.com>
531
8de33dc2 532 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
533 defined.
534
e0c6ef61
MI
5352011-10-27 Meador Inge <meadori@codesourcery.com>
536
537 * MAINTAINERS (Write After Approval): Add myself to the list.
538
b56d6f31
JB
5392011-10-27 Joel Brobecker <brobecker@adacore.com>
540
541 * value.h (read_frame_register_value): Add declaration.
542 * findvar.c (read_frame_register_value): New function.
543 (value_from_register): Use read_frame_register_value
544 instead of get_frame_register_value + value_contents_copy
545 to get value contents.
546
d234ef5c
DE
5472011-10-27 Doug Evans <dje@google.com>
548
549 * cli/cli-cmds.c (source_script_with_search): Pass full path to
550 source_script_from_stream if it may have been found on the search path.
551 * python/py-auto-load.c (source_section_scripts): Pass full path to
552 source_python_script_for_objfile.
553 * python/python.c (source_python_script): Delete stream parameter.
554 All callers updated.
555 (source_python_script_for_objfile): Ditto.
556 * python/python-internal.h (source_python_script_for_objfile): Update.
557 * python/python.h (source_python_script): Update.
558
d849d44f
TT
5592011-10-27 Tom Tromey <tromey@redhat.com>
560
561 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
562 (ada_sals_for_line): Remove declarations.
563
2231f1fb
KP
5642011-10-27 Kevin Pouget <kevin.pouget@st.com>
565
566 Move unwind reasons to an external .def file
567 * frame.c (frame_stop_reason_string): Rewrite using
568 unwind_stop_reasons.def.
569 * frame.h (enum unwind_stop_reason): Likewise.
570 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
571 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
572 constants for bound-checking.
573 * unwind_stop_reasons.def: New file.
574 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
575 instead of a distinct value.
576
f77b9a5d
PM
5772011-10-27 Phil Muldoon <pmuldoon@redhat.com>
578
579 PR python/13331
580
581 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
582 (convert_values_to_python): Return on Python tuple allocation
583 failure. Return NULL on value conversion error.
584
76dce0be
PM
5852011-10-27 Phil Muldoon <pmuldoon@redhat.com>
586
587 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
588 (bppy_set_task): Ditto.
589 (bppy_delete_breakpoint): Ditto.
590 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
591 (gdbpy_lookup_global_symbol): Ditto.
592 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
593 * python/py-frame.c (frapy_is_valid): Ditto.
594 (frame_info_to_frame_object): Ditto.
595 * python/py-type.c (typy_lookup_type): Ditto.
596 (typy_getitem): Ditto.
597 (typy_has_key): Ditto.
598 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
599
f17b6955
JB
6002011-10-26 Joel Brobecker <brobecker@adacore.com>
601
602 * gdbarch.h: Regenerate.
603
86ba1042
JB
6042011-10-26 Meador Inge <meadori@codesourcery.com>
605
606 * gdbarch.sh (function_list): Use 'pstring' when printing
607 'gcore_bfd_target'.
608 * gdbarch.c: Regenerate.
609
c34fd852
UW
6102011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
611
612 * regcache.c (registers_changed_ptid): Invalidate thread architecture
613 and frame caches if PTID refers to all threads of a process.
614
931bb47f
UW
6152011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
616
617 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
618 to create_breakpoint.
619
88aed45e
UW
6202011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
621
622 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
623 (ppc_sysv_abi_push_dummy_call): Use it.
624 (do_ppc_sysv_return_value): Likewise.
625 (ppc64_sysv_abi_push_dummy_call): Likewise.
626 (ppc64_sysv_abi_return_value): Likewise.
627
3eaf3fa2
PK
6282011-10-26 Paul Koning <paul_koning@dell.com>
629
630 * python/lib/gdb/types.py (deepitems): New function.
631
913460fc
PK
6322011-10-25 Paul Koning <paul_koning@dell.com>
633
634 PR python/13327
635
636 * python/py-value.c (value_to_value_object): Remove fetching of
637 the value if it was lazy.
638 (valpy_get_is_lazy): New function.
639 (valpy_fetch_lazy): New function.
640
2b5b9d09
JB
6412011-10-24 Joel Brobecker <brobecker@adacore.com>
642
643 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
644 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
645
e21ffe51
PA
6462011-10-24 Pedro Alves <pedro@codesourcery.com>
647
648 * linux-nat.c (linux_handle_extended_wait): When handling a clone
649 event, in non-stop, if not stopping, make sure the new lwp has
650 last_resume_kind set to resume_continue. Assert that when we're
651 resuming the new lwp, its last_resume_kind is resume_continue.
652
7aee8dc2
PA
6532011-10-24 Pedro Alves <pedro@codesourcery.com>
654
655 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
656 already set when marking the event thread as not executing in
657 non-stop mode.
658
4b4e080e
PA
6592011-10-24 Pedro Alves <pedro@codesourcery.com>
660
661 * infrun.c (handle_inferior_event): Add debug output for
662 TARGET_WAITKIND_NO_HISTORY.
663
baacfb07
PM
6642011-10-24 Phil Muldoon <pmuldoon@redhat.com>
665
666 * NEWS: Move set/show extended-prompt to "New Options". Expand
667 description. Fix typos.
668
8432bc41
PM
6692011-10-24 Phil Muldoon <pmuldoon@redhat.com>
670
671 PR python/13310
672
673 * python/py-param.c (call_doc_function): Correctly deference on
674 function exit.
675
6cda5a20
JB
6762011-10-21 Joel Brobecker <brobecker@adacore.com>
677
678 * ada-tasks.c (print_ada_task_info): Fix computation of
679 number of tasks displayed in command output.
680
13294f7d
JK
6812011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
682 Ulrich Weigand <uweigand@de.ibm.com>
683
684 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
685 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
686 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
687 gdbarch_pc_regnum and frame_unwind_register_unsigned by
688 gdbarch_unwind_pc.
689
460c1c54
CC
6902011-10-20 Cary Coutant <ccoutant@google.com>
691
692 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
693 section to...
694 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
695 flag. Adjust all callers.
696 (process_psymtab_comp_unit): Remove adjustment for type section.
697
a10964d1
AR
6982011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
699
700 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
701 arguments by adding OBJFILE. Instead of getting objfile from
702 symbol's symtab, use new argument OBJFILE.
703 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
704 arguments by adding OBJFILE.
705 * gdb/dwarf2read.c (new_symbol_full): Change call to
706 cp_scan_for_anonymous_namespaces to match new signature.
707 * gdb/stabsread.c (define_symbol): Change call to
708 cp_scan_for_anonymous_namespaces to match new signature.
709
27ca1a5b
PM
7102011-10-20 Phil Muldoon <pmuldoon@redhat.com>
711
712 PR python/13308
713 PR python/13309
714
715 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
716 leak.
717 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
718 leak. Delete unused variables.
719
9df2fbc4
PM
7202011-10-20 Phil Muldoon <pmuldoon@redhat.com>
721
722 PR python/12656
723
724 * python/py-frame.c (frapy_read_var): Use const struct *block.
725 * python/py-type.c (typy_lookup_typename): Likewise.
726 (typy_lookup_type): Likewise.
727 (typy_legacy_template_argument): Likewise.
728 (typy_template_argument): Likewise.
729 (gdbpy_lookup_type): Likewise.
730 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
731 * python/py-block.c (blpy_block_object): Likewise.
732 (blpy_iter): Likewise.
733 (blpy_get_start): Likewise.
734 (blpy_get_end): Likewise.
735 (blpy_get_function): Likewise.
736 (blpy_get_superblock): Likewise.
737 (set_block): Likewise.
738 (block_to_block_object): Likewise.
739 (block_object_to_block): Likewise.
740 (blpy_is_valid): Likewise.
741 (blpy_get_global_block): New function.
742 (blpy_get_static_block): New function.
743 (blpy_is_global): New function.
744 (blpy_is_static): New function.
745 * blockframe.c (block_innermost_frame): Likewise.
746 * valops.c (value_of_variable): Likewise.
747 * frame.h: Update prototypes.
748 * python/python-internal.h: Likewise.
749 * value.h: Likewise.
750
4743b735
CC
7512011-10-19 Cary Coutant <ccoutant@google.com>
752
753 * dwarf2read.c (create_debug_types_hash_table): Fix size of
754 type_offset field.
755
6caca83c
CC
7562011-10-19 Cary Coutant <ccoutant@google.com>
757
758 * dwarf2read.c (peek_abbrev_code): New function.
759 (dw2_get_file_names): Check for dummy compilation units.
760 (create_debug_types_hash_table): Likewise.
761 (process_psymtab_comp_unit): Likewise.
762 (load_partial_comp_unit): Likewise.
763 (load_full_comp_unit): Likewise.
764
43136979
AR
7652011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
766
767 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
768 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
769 pt_phdr if PT_PHDR was found.
770
0a07729b
TT
7712011-10-17 Joost van der Sluis <joost@cnoc.nl>
772
773 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
774 type or "<unnamed type"> when there is no name assigned.
775 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
776 avoid a sigint when no name is assigned.
777
21ae7a4d
JK
7782011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
779
780 Revert:
781 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
782 * dwarf2expr.c (ctx_no_read_reg): New function.
783 * dwarf2expr.h (ctx_no_read_reg): New declaration.
784 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
785 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
786 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
787
32d1c362
DE
7882011-10-16 Doug Evans <dje@google.com>
789
790 * NEWS: Document python gdb.printing.register_pretty_printer's new
791 `replace' parameter.
792
da096638
KS
7932011-10-14 Keith Seitz <keiths@redhat.com>
794
795 PR c++/13225
796 * eval.c (evaluate_subexp_standard): Do not construct
797 an array of types; pass the value array directly to
798 find_overload_match.
799 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
800 (rank_function): Take an array of values instead of types.
801 (rank_one_type): Add struct value * parameter.
802 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
803 (rank_function): For each argument, pass the argument's
804 value to rank_one_type.
805 (rank_one_type): Add VALUE parameter.
806 If the parameter type is a pointer and the argument type
807 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
808 VALUE is zero.
809 Update all calls to rank_one_type, passing NULL for new
810 VALUE parameter.
811 * valarith.c (value_user_defined_cpp_op): Do not construct
812 an array of types; pass the value array directly to
813 find_overload_match.
814 * valops.c (find_overload_method_list): Take an array of
815 values instead of types.
816 Save the type of OBJP for later use.
817 Update calls to find_oload_champ, and find_oload_champ_namespace.
818 (find_oload_champ_namespace): Take an array of values instead
819 of types.
820 (find_oload_champ_namespace_loop): Likewise.
821 (find_oload_champ): Likewise.
822 (classify_oload_match): Inspect all arguments
823 until INCOMPATIBLE is found. Return the worst badness found
824 otherwise.
825 (compare_parameters): Update call to rank_one_type.
826 * value.h (find_overload_match): Take an array of values instead
827 of types.
828
3957565a
JK
8292011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
830
831 Drop lazy lm_info reading.
832 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
833 l_addr_inferior, l_ld, l_next, l_prev and l_name.
834 (lm_info_read): New function.
835 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
836 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
837 lm_dynamic_from_link_map.
838 (lm_next, lm_prev, lm_name): Remove.
839 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
840 initialization incl. read_memory. No longer use lm_name.
841 (svr4_free_so): Drop lm_info->lm freeing.
842 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
843 explicit lm_addr and lm initialization.
844 (svr4_read_so_list): Use lm_info_read, drop the initailization of
845 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
846 lm_name.
847
cb08cc53
JK
8482011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
849 Paul Pluzhnikov <ppluzhnikov@google.com>
850
851 * defs.h (struct so_list): New forward declaration.
852 (make_cleanup_free_so): New declaration.
853 * solib-svr4.c (ignore_first_link_map_entry): Remove.
854 (svr4_free_so): Move the function here from downwards. Handle NULL
855 so->lm_info.
856 (svr4_free_library_list): New.
857 (svr4_read_so_list): New, moved here code from svr4_current_sos.
858 Use more cleanups. Use new parameter ignore_first instead of
859 ignore_first_link_map_entry.
860 (svr4_current_sos): New variable ignore_first, initialize it. New
861 variable back_to, use it for svr4_free_library_list protection.
862 (svr4_free_so): Remove - move upwards.
863 * utils.c: Include solist.h.
864 (do_free_so, make_cleanup_free_so): New functions.
865
22c05d8a
JK
8662011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
867
868 Fix internal error regression.
869 * value.c (value_primitive_field): Handle value_optimized_out. Move
870 packed bitfields comment.
871
d930d06e
TT
8722011-10-13 Tom Tromey <tromey@redhat.com>
873
874 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
875 always released.
876
2ff6b080
TT
8772011-10-13 Tom Tromey <tromey@redhat.com>
878
879 * python/py-type.c (typy_has_key): Make 'field' const.
880
d6c5869f
LM
8812011-10-13 Luis Machado <lgustavo@codesourcery.com>
882
883 * remote.c (remote_save_trace_data): Invert comparison.
884
a70633a2
LM
8852011-10-13 Luis Machado <lgustavo@codesourcery.com>
886
887 * tracepoint.c (trace_save_command): Use filename instead of
888 args when printing.
889
e103e986
JK
8902011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
891
892 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
893 if .size is 0.
894
db24da6d
YQ
8952011-10-13 Yao Qi <yao@codesourcery.com>
896
897 PR gdb/12703
898 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
899 whether insn is a 32-bit Thumb-2 instruction.
900 (thumb_in_function_epilogue_p): Likewise.
901 (thumb_get_next_pc_raw): Likewise.
902 (arm_breakpoint_from_pc): Likewise.
903
1d6edc3c
JK
9042011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
905
906 Fix empty DWARF expressions DATA vs. SIZE conditionals.
907 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
908 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
909 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
910 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
911 zero DATA.
912 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
913 validity.
914 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
915 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
916 clear DATA on zero SIZE.
917
adabb602
DE
9182011-10-12 Doug Evans <dje@google.com>
919
920 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
921 header->first_die_offset here. All callers updated.
922
5048e516
JK
9232011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
924
925 Fix compatibility with texinfo versions older than 4.12.
926 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
927 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
928 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
929 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
930 * configure: Regenerate.
931 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
932 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
933 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
934
0574c78f
GB
9352011-10-12 Gary Benson <gbenson@redhat.com>
936
937 * breakpoint.h (pc_at_non_inline_function): Declare.
938 * breakpoint.c (is_non_inline_function,
939 pc_at_non_inline_function): New functions.
940 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
941 if the stop is at a location where functions cannot be inlined.
942
12d9289a
PA
9432011-10-12 Pedro Alves <pedro@codesourcery.com>
944
945 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
946 the core wanted them stopped, or if they now have a pending event
947 to report.
ecf8e7f5
PA
948 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
949 down to stop_and_resume_callback.
950 (linux_nat_wait_1): Always clear `options' when retrying. Handle
951 having new pending events after calling linux_nat_filter_event.
12d9289a 952
96408a79
SA
9532011-10-11 Sterling Augustine <saugustine@google.com>
954
955 * dwarf2read.c: Undo inadvertent changes in previous commit.
956
9c6c53f7
SA
9572011-10-11 Sterling Augustine <saugustine@google.com>
958
959 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
960 logic.
961
0e8aefe7
UW
9622011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
963
964 * symfile.c (separate_debug_file_exists): Fix condition.
965
349d1385
DM
9662011-10-11 David S. Miller <davem@davemloft.net>
967
968 * regcache.c (regcache_restore): Do not write unavailable regs, mark
969 static.
970 * regcache.h (regcache_restore): Remove declaration.
971
205c306f
DM
972 * gdbarch.sh: New field 'long_long_align_bit'.
973 * gdbarch.c, gdbarch.h: Regenerate.
974 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
975 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
976
941b2081
JK
9772011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
978
979 Revert this part of:
980 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
981 Support @entry in input expressions.
982 * c-exp.y (ENTRY, unknown_cpp_name): New.
983 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
984 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
985 (variable: name_not_typename '@' ENTRY, name: ENTRY)
986 (name_not_typename: ENTRY): New.
987 (yylex): Recognize ENTRY.
988
989 Reimplement @entry in input expressions.
990 * c-exp.y (ENTRY): New.
991 (variable: name_not_typename ENTRY): New.
992 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
993
3c4d7e12
PA
9942011-10-11 Pedro Alves <pedro@codesourcery.com>
995
996 * linux-nat.c (linux_handle_extended_wait): Always dump both the
997 parent and child's pids as soon as we detect a clone event.
998 Adjust another debug message.
999
ea23808b
PA
10002011-10-11 Pedro Alves <pedro@codesourcery.com>
1001
1002 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1003 not zombie instead of reading the whole file.
1004
904578ed
JK
10052011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1006
1007 Fix separate debuginfo warning with "remote:" access.
1008 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1009 * symfile.c (get_file_crc): New function with the code moved from ...
1010 (separate_debug_file_exists): ... this function, specifically variables
1011 buffer and count. New variable verified_as_different, set it. Remove
1012 file_crc initialization. Verify also if both files are not the same
1013 manually, if needed.
1014
51370a33
YQ
10152011-10-11 Yao Qi <yao@codesourcery.com>
1016
1017 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1018 to get address.
1019
0838fb57
DE
10202011-10-10 Doug Evans <dje@google.com>
1021
1022 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1023 libthread_db when we load libpthread or the main symbol file.
1024 (thread_db_inferior_created): New function.
1025 (_initialize_thread_db): Attach inferior_created observer.
1026 * linux-nat.c (linux_child_post_attach): Remove call to
1027 check_for_thread_db.
1028 (linux_child_post_startup_inferior): Ditto.
1029 * objfiles.h (OBJF_MAINLINE): Define.
1030 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1031 allocate_objfile when appropriate.
1032
623bd5b7
UW
10332011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1034
1035 PR gdb/13218
1036 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1037 Remove unused variables.
1038 (get_linux_version): Remove function.
1039 (_initialize_arm_linux_nat): Do not call it.
1040
79395f92
PA
10412011-10-10 Pedro Alves <pedro@codesourcery.com>
1042
1043 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1044 new clone lwp if the core asked it to stop. Don't pass on
1045 unexpected signals to the new clone; leave them pending instead.
1046
eff3df78
PA
10472011-10-10 Pedro Alves <pedro@codesourcery.com>
1048
1049 * linux-nat.c (resume_lwp): Remove redundant debug output.
1050
4b60df3d
PA
10512011-10-10 Pedro Alves <pedro@codesourcery.com>
1052
1053 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1054 last_resume_kind before clearing it, and use the copy instead to
1055 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1056 resume_clear_callback in the non-stop path too.
1057
6501578c
YQ
10582011-10-09 Yao Qi <yao@codesourcery.com>
1059
1060 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1061 Honor OPTIONS and VAL's type.
1062 (common_val_print, value_print): Update to pass one more parameter.
1063
5a56e9c5
DE
10642011-10-09 Doug Evans <dje@google.com>
1065
1066 Add new "alias" command.
1067 * NEWS: Mention new command.
1068 * command.h (valid_user_defined_cmd_name_p): Declare.
1069 * defs.h (make_cleanup_dyn_string_delete): Declare.
1070 * utils.c: #include "dyn-string.h".
1071 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1072 * cli/cli-cmds.c: #include "dyn-string.h".
1073 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1074 (init_cli_cmds): Add new command.
1075 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1076
509f0fd9
JK
10772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1078
1079 Fix compatibility with older GCCs.
1080 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1081 * stack.c (read_frame_arg): Initialize val_deref.
1082
2bda9cc5
JK
10832011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1084
1085 Entry values NEWS entries, DWARF disassembly support.
1086 * NEWS: New entry values entry.
1087 (set print entry-values, show print entry-values)
1088 (set debug entry-values, show debug entry-values): New entries.
1089 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1090 indent. Remove variable start. Move header printing out. Respect
1091 INDENT. Support DW_OP_GNU_entry_value.
1092 (locexpr_describe_location_1): Move the header printing here, extend
1093 the disassemble_dwarf_expression passed parameters.
1094
a471c594
JK
10952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1096
1097 Display @entry parameter values even for references.
1098 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1099 coerce_ref_if_computed.
1100 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1101 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1102 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1103 existing push_dwarf_reg_entry_value call. Add new detection calling
1104 dwarf_block_to_dwarf_reg_deref. Update the error message.
1105 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1106 * dwarf2expr.h
1107 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1108 parameter deref_size, describe it in the comment.
1109 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1110 (dwarf_block_to_dwarf_reg_deref): New declaration.
1111 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1112 deref_size, describe it in the function comment. New variables
1113 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1114 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1115 describe it in the function comment. Fetch the alternative block
1116 accoring to DEREF_SIZE.
1117 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1118 (entry_data_value_free_closure, entry_data_value_funcs): New.
1119 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1120 outer_val, target_val, val and addr. Try to fetch and create also
1121 referenced value content.
1122 (pieced_value_funcs): NULL value for coerce_ref.
1123 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1124 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1125 coerce_ref_if_computed.
1126 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1127 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1128 * stack.c (read_frame_arg): Compare also dereferenced values.
1129 * value.c (value_computed_funcs): Make the parameter v const, use
1130 value_lval_const for it.
1131 (value_lval_const, coerce_ref_if_computed): New function.
1132 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1133 * value.h (struct lval_funcs): New field coerce_ref.
1134 (value_computed_funcs): Make the parameter v const.
1135 (value_lval_const, coerce_ref_if_computed): New declarations.
1136
36b11add
JK
11372011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1138
1139 Support @entry in input expressions.
1140 * c-exp.y (ENTRY, unknown_cpp_name): New.
1141 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1142 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1143 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1144 (name_not_typename: ENTRY): New.
1145 (yylex): Recognize ENTRY.
1146 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1147 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1148 Likewise.
1149 * parse.c (operator_length_standard): Likewise.
1150 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1151
3343315b
JK
11522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1153
1154 Display referenced values in backtraces.
1155 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1156 * stack.c (print_frame_arg): Likewise.
1157
ac71a68c
JK
11582011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1159
1160 Make some lval_funcs methods to default on NULL.
1161 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1162 NULL.
1163 (value_assign): Check if lval_computed write method is NULL.
1164 * value.h (struct lval_funcs): Comment NULL values for read and write
1165 methods.
1166
e18b2753
JK
11672011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1168
1169 Display @entry parameter values (without references).
1170 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1171 New functions.
1172 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1173 New declarations.
1174 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1175 entry record.
1176 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1177 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1178 functions.
1179 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1180 (loclist_read_variable_at_entry): New function.
1181 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1182 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1183 DW_AT_location, call dwarf_block_to_sp_offset for it.
1184 * frame.h (print_entry_values_no, print_entry_values_only)
1185 (print_entry_values_preferred, print_entry_values_if_needed)
1186 (print_entry_values_both, print_entry_values_compact)
1187 (print_entry_values_default, print_entry_values): New declarations.
1188 (struct frame_arg): New field entry_kind.
1189 (read_frame_arg): New parameter entryargp.
1190 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1191 arg->entry_kind. Optionally print the `@entry' suffix.
1192 (list_args_or_locals): New variable entryarg, initialize it.
1193 Initialize also entry_kind of arg and entryarg. Conditionalize
1194 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1195 xfree for entryarg.error.
1196 * stack.c (print_entry_values_no, print_entry_values_only)
1197 (print_entry_values_preferred, print_entry_values_if_needed)
1198 (print_entry_values_both, print_entry_values_compact)
1199 (print_entry_values_default, print_entry_values_choices)
1200 (print_entry_values): New variables.
1201 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1202 print the `@entry' suffix, possibly in combination for
1203 print_entry_values_compact.
1204 (read_frame_arg): New parameter entryargp, new variables entryval,
1205 entryval_error and val_equal. Read in also entryargp, respect
1206 print_entry_values, compare the values using val_equal, fill in also
1207 argp->entry_kind (together with entryargp->entry_kind).
1208 (print_frame_args): New variable entryarg, initialize it.
1209 Conditionalize print_frame_arg for arg, add print_frame_arg for
1210 entryarg. Call xfree for entryarg.error.
1211 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1212 * symtab.h (struct symbol_computed_ops): New field
1213 read_variable_at_entry.
1214
93d86cef
JK
12152011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1216
1217 Code reshuffle.
1218 * frame.h (struct frame_arg): New definition.
1219 (read_frame_arg): New declaration.
1220 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1221 (list_args_or_locals): ... the code here. New variable arg, call
1222 read_frame_arg and list_arg_or_local with it. Unify the
1223 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1224 arg.error.
1225 * stack.c (print_frame_arg): New functiom from the code of
1226 print_frame_args.
1227 (read_frame_arg): New function.
1228 (print_frame_args): Remove variable val. New variable arg, call
1229 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1230
2d6c5dc2
JK
12312011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1232
1233 Protect entry values against self tail calls.
1234 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1235 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1236
111c6489
JK
12372011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1238
1239 Recognize virtual tail call frames.
1240 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1241 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1242 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1243 * dwarf2-frame-tailcall.c: New file.
1244 * dwarf2-frame-tailcall.h: New file.
1245 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1246 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1247 REGS.PREV only after CIE execution.
1248 (struct dwarf2_frame_cache): New field tailcall_cache.
1249 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1250 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1251 parts, try to find entry_cfa_sp_offset. Call
1252 dwarf2_tailcall_sniffer_first.
1253 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1254 when appropriate.
1255 (dwarf2_frame_dealloc_cache): New function.
1256 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1257 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1258 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1259 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1260 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1261 * dwarf2loc.c (func_addr_to_tail_call_list)
1262 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1263 (call_site_find_chain_1, call_site_find_chain): New.
1264 * dwarf2loc.h (struct call_site_chain): New.
1265 (call_site_find_chain): New declaration.
1266 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1267 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1268 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1269 * stack.c (frame_info): Support also TAILCALL_FRAME.
1270
bb984ff1
JK
12712011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1272
1273 Tail call sites reader implementation.
1274 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1275 fill in TYPE_TAIL_CALL_LIST.
1276 * gdbtypes.h (struct func_type): New field tail_call_list.
1277 (struct call_site): New field tail_call_next.
1278 (TYPE_TAIL_CALL_LIST): New definition.
1279
8e3b41a9
JK
12802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 Implement basic support for DW_TAG_GNU_call_site.
1283 * block.c: Include gdbtypes.h and exceptions.h.
1284 (call_site_for_pc): New function.
1285 * block.h (call_site_for_pc): New declaration.
1286 * defs.h: Include hashtab.h.
1287 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1288 declarations.
1289 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1290 ctx_no_push_dwarf_reg_entry_value.
1291 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1292 (dwarf_block_to_dwarf_reg): New function.
1293 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1294 (ctx_no_push_dwarf_reg_entry_value): New function.
1295 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1296 push_dwarf_reg_entry_value.
1297 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1298 declarations.
1299 * dwarf2loc.c: Include gdbcmd.h.
1300 (dwarf_expr_ctx_funcs): New forward declaration.
1301 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1302 (dwarf_expr_reg_to_entry_parameter)
1303 (dwarf_expr_push_dwarf_reg_entry_value): New.
1304 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1305 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1306 (needs_dwarf_reg_entry_value): New function.
1307 (needs_frame_ctx_funcs): Install it.
1308 (_initialize_dwarf2loc): New function.
1309 * dwarf2loc.h (entry_values_debug): New declaration.
1310 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1311 (read_call_site_scope): New forward declaration.
1312 (process_full_comp_unit): Copy call_site_htab.
1313 (process_die): Support DW_TAG_GNU_call_site.
1314 (read_call_site_scope): New function.
1315 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1316 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1317 (cleanup_htab): Delete.
1318 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1319 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1320 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1321 FIELD_LOC_KIND_DWARF_BLOCK.
1322 * gdbtypes.h (enum field_loc_kind): New entry
1323 FIELD_LOC_KIND_DWARF_BLOCK.
1324 (struct main_type): New loc entry dwarf_block.
1325 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1326 (TYPE_FIELD_DWARF_BLOCK): New.
1327 * python/py-type.c: Include dwarf2loc.h.
1328 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1329 internal_error call on unknown FIELD_LOC_KIND.
1330 * symtab.h (struct symtab): New field call_site_htab.
1331 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1332 (core_addr_hash, core_addr_eq): New functions.
1333
b6cdc2c1
JK
13342011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1335
1336 Code reshuffle.
1337 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1338 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1339 calling_convention under func_stuff there.
1340 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1341 (init_type) <TYPE_CODE_FUNC>: Likewise.
1342 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1343 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1344 * gdbtypes.h (enum type_specific_kind): Change
1345 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1346 (struct main_type) <type_specific>: Change calling_convention to
1347 func_stuff. Move calling_convention to ...
1348 (struct func_type): ... this new struct.
1349 (INIT_FUNC_SPECIFIC): New #define.
1350 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1351
181cebd4
JK
13522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1353
1354 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1355 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1356 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1357 ctx->ref_addr_size. Handle its invalid value.
1358 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1359 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1360 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1361 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1362 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1363 (dwarf2_per_cu_ref_addr_size): New function.
1364
c471e790
JK
13652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1366
1367 Code cleanup.
1368 * dwarf2read.c (per_cu_header_read_in): New function.
1369 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1370 variables cu_header_local and cu_headerp.
1371
741f5e3c
JK
13722011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1373
1374 Fix initial language detection with -readnow.
1375 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1376 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1377 searches only for global symbols.
1378
a73d2258
JK
13792011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1380
1381 Fix printed anonymous struct name.
1382 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1383 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1384 (anonymous_struct_prefix): New function.
1385 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1386 (dwarf2_name): Strip for anonymous structs any prefixes.
1387
749fd4ea
DE
13882011-10-07 Doug Evans <dje@google.com>
1389
1fa57852
DE
1390 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1391 `replace'.
1392
690a4937
DE
1393 * python/lib/gdb/printing.py: Whitespace cleanup.
1394
749fd4ea
DE
1395 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1396 warning.
1397
4c38200f
PA
13982011-10-07 Pedro Alves <pedro@codesourcery.com>
1399
1400 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1401 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1402 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1403 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1404 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1405 (arm_linux_remove_watchpoint): Adjust.
1406 * i386-linux-nat.c (i386_linux_dr_set_control)
1407 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1408 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1409 (ia64_linux_remove_watchpoint): Adjust.
1410 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1411 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1412 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1413 (ppc_linux_insert_mask_watchpoint)
1414 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1415 (ppc_linux_remove_watchpoint): Adjust.
1416 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1417 Adjust.
1418
b7ff339d
CV
14192011-10-07 Corinna Vinschen <vinschen@redhat.com>
1420
1421 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1422 (clear_win32_environment): New function for Cygwin to clear out
1423 Win32 environment.
1424 (windows_create_inferior): Prepare new environment from in_env
1425 for Cygwin, too.
1426
f287c1f3
PM
14272011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1428
5631e596 1429 PR python/13264
f287c1f3
PM
1430 * python/py-value.c (valpy_call): Check that arguments are
1431 a tuple.
1432 (is_intlike): Remove call to CHECK_TYPEDEF.
1433 (valpy_nonzero): Catch GDB exceptions.
1434 (valpy_absolute): Ditto.
1435 (valpy_lazy_string): Ditto.
1436 (valpy_call): Ditto.
1437 (valpy_get_is_optimized_out): Ditto.
1438 (valpy_long): Ditto.
1439 (valpy_float): Ditto.
1440 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1441 (valpy_richcompare): Ditto.
1442
03583c20
UW
14432011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1444
1445 * inferior.h (disable_randomization): Declare.
1446 * infrun.c (disable_randomization): New global variable.
1447 (show_disable_randomization): New function.
1448 (set_disable_randomization): Likewise.
1449 (_initialize_infrun): Install set/show disable-randomization
1450 commands.
1451 * linux-nat.c (disable_randomization): Remove.
1452 (show_disable_randomization): Likewise.
1453 (set_disable_randomization): Likewise.
1454 (_initialize_linux_nat): No longer install set/show
1455 disable-randomization commands here.
1456 (linux_nat_supports_disable_randomization): New function.
1457 (linux_nat_add_target): Install it.
1458 * remote.c (PACKET_QDisableRandomization): New enum value.
1459 (remote_protocol_packets): Support QDisableRandomization.
1460 (_initialize_remote): Likewise.
1461 (remote_supports_disable_randomization): New function.
1462 (init_remote_ops): Install it.
1463 (extended_remote_supports_disable_randomization): New function.
1464 (init_extended_remote_ops): Install it.
1465 (extended_remote_disable_randomization): New function.
1466 (extended_remote_create_inferior_1): Call it.
1467 * target.h (struct target_ops): Add to_supports_disable_randomization.
1468 (target_supports_disable_randomization): Add prototype.
1469 * target.c (target_supports_disable_randomization): New function.
1470 (find_default_supports_disable_randomization): Likewise.
1471 (init_dummy_target): Install it.
1472
20c168b5
KP
14732011-10-07 Kevin Pouget <kevin.pouget@st.com>
1474
1475 Allow Python notification of new object-file loadings.
1476 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1477 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1478 Add build rule for this file.
1479 * python/py-event.h (emit_new_objfile_event): New prototype.
1480 (newobjfile): New Python event emitter.
1481 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1482 Python event registry.
1483 * python/py-inferior.c: Include objfiles.h
1484 (python_new_objfile): New function.
1485 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1486 observers.
1487 * python/py-newobjfileevent.c: New file.
1488 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1489 prototype.
1490 * python/python.c (_initialize_python): Add
1491 gdbpy_initialize_new_objfile_event call.
1492 * NEWS: Add item for new Python event "gdb.newobjfile"
1493
b1c8db38
TG
14942011-10-05 Tristan Gingold <gingold@adacore.com>
1495
1496 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1497 Extract the ravenscar task name from the symbol for the atcb.
1498
0dab82e9
PK
14992011-10-04 Paul Koning <paul_koning@dell.com>
1500
1501 * python/py-type.c (typy_make_iter): Add forward declaration.
1502 (typy_fields_items): Use the gdb.Type iterator.
1503
84ad80e6
PK
15042011-10-04 Paul Koning <paul_koning@dell.com>
1505
1506 * NEWS: Add entry for Python gdb.Type mapping methods.
1507
cb6be26b
KP
15082011-10-04 Kevin Pouget <kevin.pouget@st.com>
1509
1510 PR python/12691: Add the inferior to Python exited event
1511 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1512 to exited_event.
1513 * python/py-event.h (emit_exited_event): Likewise
1514 * python/-inferior.c (python_inferior_exit): Likewise
1515
6005b210
JB
15162011-10-03 Joel Brobecker <brobecker@adacore.com>
1517
1518 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1519 in output of -ada-task-info GDB/MI command.
1520
75082e8c
JB
15212011-10-03 Joel Brobecker <brobecker@adacore.com>
1522
1523 * ada-lang.h (struct inferior): Declare.
1524 (print_ada_task_info): Add declaration.
1525 * ada-tasks.c (print_ada_task_info): Make non-static.
1526 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1527 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1528 * mi/mi-main.c: #include "ada-lang.h".
1529 (mi_cmd_list_features): Add "ada-task-info" to the list
1530 of supported features.
1531 (mi_cmd_ada_task_info): New function.
1532
7ed7d719
JB
15332011-10-03 Joel Brobecker <brobecker@adacore.com>
1534
1535 * python/python.c (python_run_simple_file): New function.
1536 (source_python_script, source_python_script_for_objfile):
1537 Replace call to PyRun_SimpleFile by call to
1538 python_run_simple_file.
1539
3fcaed38
PK
15402011-10-03 Paul Koning <paul_koning@dell.com>
1541
1542 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1543 (value_to_value_object): Fetch value if it was lazy.
1544
8e5c319d
JK
15452011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
1547 Code cleanup.
1548 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1549 Rearrange the code for it.
1550
dd11a36c
JB
15512011-10-02 Joel Brobecker <brobecker@adacore.com>
1552
1553 * breakpoint.c (bkpt_print_recreate): Add call to
1554 print_recreate_thread.
1555
723b724b
MF
15562011-09-29 Mike Frysinger <vapier@gentoo.org>
1557
1558 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1559 PTRACE_GETFDPIC_INTERP): Define.
1560
412946b6
YQ
15612011-09-28 Yao Qi <yao@codesourcery.com>
1562
1563 * symfile.c (add_symbol_file_command): Update message on usage.
1564
a73bb892
PK
15652011-09-28 Paul Koning <paul_koning@dell.com>
1566
1567 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1568 (typy_length, typy_get, typy_has_key, typy_make_iter)
1569 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1570 (typy_iterator_iter, typy_iterator_iternext)
1571 (typy_iterator_dealloc): New functions to implement standard
1572 Python mapping methods on gdb.Type object.
1573 (gdb.TypeIterator): New Python type.
1574 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1575
fe10a582
DM
15762011-09-28 David S. Miller <davem@davemloft.net>
1577
1578 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1579 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1580 * sparc-tdep.c (sparc_complex_floating_p): New function.
1581 (sparc32_store_arguments): Handle complex floats.
1582 (sparc32_extract_return_value): Likewise.
1583 (sparc32_store_return_value): Likewise.
1584 (sparc32_stabs_argument_has_addr): Likewise.
1585 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1586 (sparc64_store_floating_fields): Handle complex floats.
1587 (sparc64_store_arguments): Likewise.
1588 (sparc64_store_return_value): Likewise.
1589
c93dbcba
EZ
15902011-09-28 Eli Zaretskii <eliz@gnu.org>
1591
1592 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1593 before the change on 2006-12-09.
1594 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1595 generates the environment block for CreateProcessA, modulo the
1596 Cygwin-specific parts that are not needed here.
1597
f00c55f8
TG
15982011-09-27 Tristan Gingold <gingold@adacore.com>
1599
1600 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1601 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1602 (darwin_solib_get_all_image_info_addr_at_init): New function.
1603 (darwin_solib_read_all_image_info_addr): Likewise.
1604 (darwin_solib_create_inferior_hook): Use the above two functions.
1605 * darwin-nat.c (darwin_execvp): Renames retval to res.
1606 (darwin_read_write_inferior): Update comment.
1607 (darwin_read_dyld_info): New function.
1608 (darwin_xfer_partial): Handle DYLD_INFO.
1609
6710bf39
SS
16102011-09-27 Stan Shebs <stan@codesourcery.com>
1611
1612 Add return address collection for tracepoints.
1613 * tracepoint.c (encode_actions_1): Add case for $_ret.
1614 (validate_actionline): Check for $_ret.
1615 (trace_dump_actions): Ditto.
1616 * ax-gdb.h (gen_trace_for_return_address): Declare.
1617 * ax-gdb.c: Include arch-utils.h.
1618 (gen_trace_for_return_address): New function.
1619 (agent_command): Add return address special case.
1620 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1621 (amd64_gen_return_address): New function.
1622 (amd64_init_abi): Call it.
1623 * i386-tdep.c: Include ax.h and ax-gdb.h.
1624 (i386_gen_return_address): New function.
1625 (i386_init_abi): Call it.
1626 * arch-utils.h (default_gen_return_address): Declare.
1627 * arch-utils.c (default_gen_return_address): New function.
1628 * gdbarch.sh (gen_return_address): New method.
1629 * gdbarch.h, gdbarch.c: Regenerate.
1630
e04e5beb
JM
16312011-09-23 Joseph Myers <joseph@codesourcery.com>
1632
1633 PR gdb/13079
1634 * i386-tdep.c (i386_frame_align): New.
1635 (i386_gdbarch_init): Use i386_frame_align.
1636
f3d6df6d
YQ
16372011-09-23 Yao Qi <yao@codesourcery.com>
1638
1639 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1640 to get address.
1641
e69860f1
TG
16422011-09-22 Tristan Gingold <gingold@adacore.com>
1643
1644 * fork-child.c (fork_inferior): Add exec_fun parameter.
1645 Call exec_fun or execvp.
1646 * inferior.h: Adjust prototype.
1647 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1648 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1649 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1650 * procfs.c (procfs_create_inferior): Ditto.
1651 * darwin-nat.c (darwin_execvp): New function.
1652 (darwin_create_inferior): Use it.
1653
4b51d87b
YQ
16542011-09-22 Yao Qi <yao@codesourcery.com>
1655
1656 * infrun.c (context_switch): Print debug message when switching to
1657 a different thread.
1658
56b9d9ac
UW
16592011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1660
1661 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1662 complex and vector types.
1663 (s390_return_value_convention): Likewise.
1664
1665 (s390_value_from_register): Call check_typedef.
1666 (extend_simple_arg): Likewise.
1667 (alignment_of): Likewise.
1668 (s390_push_dummy_call): Likewise.
1669 (s390_return_value): Likewise.
1670
b2cd6b29
JM
16712011-09-21 Joseph Myers <joseph@codesourcery.com>
1672
1673 * event-top.c (async_disconnect): If an exception is thrown from
1674 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1675 catch_errors.
1676 * top.c (quit_cover): Return void and take no arguments.
1677 * top.h (quit_cover): Update prototype.
1678
67ba4e42
JM
16792011-09-20 Joseph Myers <joseph@codesourcery.com>
1680
1681 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1682 current_uiout, not uiout.
1683
562f943b
DE
16842011-09-19 Doug Evans <dje@google.com>
1685
1686 * python/py-auto-load.c (source_section_scripts): Fix file
1687 descriptor leak.
1688 * python/python.c (source_python_script_for_objfile): Tweak comments.
1689
34518530
YQ
16902011-09-18 Yao Qi <yao@codesourcery.com>
1691 Ulrich Weigand <ulrich.weigand@linaro.org>
1692
1693 Support displaced stepping for Thumb 16-bit insns.
1694 * arm-tdep.c (THUMB_NOP) Define.
1695 (thumb_copy_unmodified_16bit): New.
1696 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1697 (thumb_copy_alu_reg): New.
1698 (arm_copy_svc): Move some common code to ...
1699 (install_svc): ... here. New.
1700 (thumb_copy_svc): New.
1701 (install_pc_relative): New.
1702 (thumb_copy_pc_relative_16bit): New.
1703 (thumb_decode_pc_relative_16bit): New.
1704 (thumb_copy_16bit_ldr_literal): New.
1705 (thumb_copy_cbnz_cbz): New.
1706 (cleanup_pop_pc_16bit_all): New.
1707 (thumb_copy_pop_pc_16bit): New.
1708 (thumb_process_displaced_16bit_insn): New.
1709 (thumb_process_displaced_32bit_insn): New.
1710 (thumb_process_displaced_insn): process thumb instruction.
1711
1712 Support displaced stepping for Thumb 32-bit insns.
1713 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1714 (thumb2_copy_preload): New.
1715 (thumb2_copy_copro_load_store): New.
1716 (thumb2_copy_b_bl_blx): New.
1717 (thumb2_copy_alu_imm): New.
1718 (thumb2_copy_load_reg_imm): New.
1719 (thumb2_copy_load_literal): New
1720 (thumb2_copy_block_xfer): New.
1721 (thumb_32bit_copy_undef): New.
1722 (thumb_32bit_copy_unpred): New.
1723 (thumb2_decode_ext_reg_ld_st): New.
1724 (thumb2_decode_svc_copro): New.
1725 (decode_thumb_32bit_store_single_data_item): New.
1726 (thumb_copy_pc_relative_32bit): New.
1727 (thumb_decode_pc_relative_32bit): New.
1728 (decode_thumb_32bit_ld_mem_hints): New.
1729 (thumb2_copy_table_branch): New
1730 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1731 instructions.
1732
2b16b2e3
YQ
17332011-09-18 Yao Qi <yao@codesourcery.com>
1734
1735 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1736 (install_b_bl_blx): Likewise.
1737
0f6f04ba
YQ
17382011-09-17 Yao Qi <yao@codesourcery.com>
1739
1740 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1741 (install_load_store): ... this. New.
1742 Change parameter BYTE to SIZE.
1743 (arm_copy_ldr_str_ldrb_strb): Update caller.
1744 (arm_decode_ld_st_word_ubyte): Update caller.
1745
e2d96639
YQ
17462011-09-17 Yao Qi <yao@codesourcery.com>
1747
1748 * infrun.c (displaced_step_fixup): Move some code ...
1749 (displaced_step_restore): ... here. New function.
1750 (handle_inferior_event): Cleanup displaced stepping state for both
1751 child and parent when get forked or vforked event.
1752 * regcache.c (get_thread_arch_aspace_regcache): New function.
1753 get_thread_arch_regcache (): Call it.
1754
a8123151
JB
17552011-09-16 Joel Brobecker <brobecker@adacore.com>
1756
1757 * ada-tasks.c (print_ada_task_info): New function, merging
1758 short_task_info and info_tasks together. Reimplement using
1759 ui-out instead of printing to stdout directly. Move the code
1760 building and checking the task list here, instead of leaving it
1761 in info_tasks_command.
1762 (info_task): Move the code building and checking the task
1763 list here, instead of leaving it in info_tasks_command.
1764 (info_tasks_command): Delete code building and checking
1765 the task list - moved elsewhere. Update calls to info_tasks
1766 and info_task.
1767
fbf06824
JB
17682011-09-16 Joel Brobecker <brobecker@adacore.com>
1769
1770 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1771
34a0bc90
JB
17722011-09-16 Joel Brobecker <brobecker@adacore.com>
1773
1774 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1775
79779fa9
JB
17762011-09-16 Joel Brobecker <brobecker@adacore.com>
1777
1778 * ada-lang.h (ada_build_task_list): Remove parameter
1779 `warn_if_null'.
1780 * ada-tasks.c (ada_build_task_list): Remove parameter
1781 `warn_if_null'. Adjust implementation and documentation.
1782 (valid_task_id, ada_get_environment_task)
1783 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1784 (info_tasks_command): Adjust implementation.
1785 (task_command): Likewise.
1786 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1787 to ada_build_task_list.
1788
e225eb91
JB
17892011-09-16 Joel Brobecker <brobecker@adacore.com>
1790
1791 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1792 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1793 (ada_tasks_inferior_data_handle): New static global.
1794 (get_ada_tasks_inferior_data): New function.
1795 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1796 (ada_get_environment_task, iterate_over_live_ada_tasks)
1797 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1798 Adjust.
1799 (ada_set_current_inferior_known_tasks_addr): New function.
1800 (read_known_tasks, ada_build_task_list, short_task_info)
1801 (info_tasks, info_task, info_tasks_command, task_command_1)
1802 (task_command, ada_task_list_changed): Adjust.
1803 (ada_tasks_invalidate_inferior_data): New function.
1804 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1805 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1806 * ada-lang.h (struct inferior): Add declaration.
1807 (ada_task_list_changed): Update profile.
1808 * remote-wtx-pd.c: #include "inferior.h".
1809 (switch_to_pd_internal): Update call to ada_task_list_changed.
1810
6da9ca05
JB
18112011-09-16 Joel Brobecker <brobecker@adacore.com>
1812
1813 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1814 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1815 (atcb_fieldno): Delete these static globals.
1816 (struct ada_tasks_pspace_data): New struct.
1817 (ada_tasks_pspace_data_handle): New static global.
1818 (get_ada_tasks_pspace_data): New function.
1819 (ada_tasks_invalidate_pspace_data): New function.
1820 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1821 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1822 (_initialize_tasks): Create this module's per-progspace
1823 data handle.
1824
dccd3cbd
JB
18252011-09-16 Joel Brobecker <brobecker@adacore.com>
1826
1827 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1828
f877b031
TG
18292011-09-16 Tristan Gingold <gingold@adacore.com>
1830
1831 * fork-child.c (fork_inferior): Update comment. Use alloca
1832 instead of xmalloc for argv. Move len and shell_command
1833 declarations in the block where they are used.
1834 Only call execvp. Factorize failure code.
1835
ae0c443d
JK
18362011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1837
1838 Code cleanup.
1839 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1840 `exp_element' instead of an element of the same and make the function
1841 static.
1842 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1843 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1844 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1845 Change argument of `write_exp_elt' function call.
1846 Remove extra spaces from comments.
1847 * parser-defs.h (write_exp_elt): Remove prototype.
1848
5af65ec0
PK
18492011-09-15 Paul Koning <paul_koning@dell.com>
1850
1851 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1852 count of item appended to list.
1853 * python/py-type.c (typy_fields): Likewise.
1854
72be8ccc
PK
18552011-09-15 Paul Koning <paul_koning@dell.com>
1856
883640a8 1857 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1858
92f6badc
KP
18592011-09-15 Kevin Pouget <kevin.pouget@st.com>
1860
1861 PR threads/12628
1862 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1863 processes with multiple threads.
1864 (inf_has_multiple_thread_cb): New function.
1865 (inf_has_multiple_threads): New function.
1866
0672bf41 18672011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
1868
1869 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1870 * python/py-inferior.c (GdbMethods): New Python method definition.
1871
6839b47f
KP
18722011-09-15 Kevin Pouget <kevin.pouget@st.com>
1873
1874 Handle multiple breakpoint hits in Python interface:
1875 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1876 variable to breakpoints.
1877 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1878 bps instead of single breakpoint. Fix some space typos.
1879 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1880 variable to breakpoints.
1881
672f9b60
KP
18822011-09-15 Kevin Pouget <kevin.pouget@st.com>
1883
1884 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1885 note if the breakpoint is internal.
1886
43675ae4
KP
18872011-09-15 Kevin Pouget <kevin.pouget@st.com>
1888
0672bf41 1889 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 1890
15148d6a
PA
18912011-09-14 Pedro Alves <pedro@codesourcery.com>
1892
1893 * infrun.c (prepare_for_detach, wait_for_inferior)
1894 (fetch_inferior_event): Don't flush the register cache.
1895 * remote.c (struct stop_reply) <regcache>: Add comment.
1896
d83e736b
JK
18972011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1898
1899 Remove excessive DWARF expressions memory duplication.
1900 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1901 for block.data.
1902 (indirect_pieced_value): Remove variable result. Remove variable
1903 back_to and its use for baton.data.
1904 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1905 block.data.
1906 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1907 Update the function comment.
1908
c65b3e0d
PA
19092011-09-13 Pedro Alves <pedro@codesourcery.com>
1910
1911 * inferior.h (ALL_INFERIORS): New.
1912 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1913 for a stopped thread.
1914 (thread_db_find_new_threads): Look for threads in all inferiors.
1915
a1398e0c
PA
19162011-09-13 Pedro Alves <pedro@codesourcery.com>
1917
1918 * breakpoint.c (update_watchpoint): Handle the case of the
1919 watchpoint to update not being in the breakpoint list yet.
1920 (hw_watchpoint_use_count): New, factored out from
1921 hw_watchpoint_used_count.
1922 (hw_watchpoint_used_count): Rename to ...
1923 (hw_watchpoint_used_count_others): ... this. Add `except'
1924 parameter. Don't count resources of `except'. Use
1925 hw_watchpoint_use_count.
1926
30596231
PA
19272011-09-13 Pedro Alves <pedro@codesourcery.com>
1928
1929 * gdbthread.h (enum thread_state): Moved here.
1930 (struct thread_info): Rename `executing_' field to `executing' and
1931 `state_' to `state'.
1932 * thread.c (enum thread_state): Moved to gdbthread.h.
1933 (new_thread, add_thread_silent, delete_thread_1)
1934 (any_live_thread_of_process, thread_alive, set_running)
1935 (set_running, is_thread_state, any_running, is_executing)
1936 (set_executing, finish_thread_state, print_thread_info)
1937 (do_captured_thread_select): Adjust.
1938
bede5f5f
JK
19392011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1940
1941 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1942 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1943
4801a9a3
PA
19442011-09-12 Pedro Alves <pedro@codesourcery.com>
1945 Matt Rice <ratmice@gmail.com>
1946
1947 PR gdb/13175
1948
1949 * interps.c (struct interp) <interpreter_out>: Delete field.
1950 (interp_new): Remove the data and uiout parameters and adjust.
1951 (interp_set): Only set the current_uiout from the interpreter's
1952 uiout after initializing the interpreter. Adjust call to
1953 init_proc.
1954 (interp_ui_out): Adjust to call procs->ui_out_proc.
1955 (interp_data, interp_name): New.
1956 * interps.h (interp_init_ftype): Add `self' parameter.
1957 (interp_ui_out_ftype): New typedef.
1958 (struct interp_procs) <ui_out_proc>: New method pointer.
1959 (interp_new): Remove the data and uiout parameters.
1960 (interp_data, interp_name): Declare.
1961 * tui/tui-interp.c (tui_init): Adjust prototype.
1962 (tui_ui_out): New.
1963 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1964 tui_out here. Adjust call to interp_new.
1965 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1966 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1967 (cli_ui_out): New.
1968 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1969 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1970 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1971 Initialize mi->uiout depending on the mi_version as extracted from
1972 the interpreter's name.
1973 (mi_ui_out): New.
1974 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1975 interp_new. Don't allocate the ui_out's of the interpreters here.
1976
d0afda03 19772011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 1978
d0afda03 1979 * solib.c (solib_used): New function.
59145f8c
AR
1980 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1981 by another so_list object before freeing it.
1982
bdaf8d4a
JK
19832011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1984
1985 Code cleanup.
1986 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1987 values.
1988
df15bd07
JK
19892011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1990
1991 Code cleanup.
1992 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1993 (amd64_skip_xmm_prologue): ... this new function. Describe its
1994 parameters. No longer use amd64_prologue_line_bug.
1995 * defs.h (producer_is_gcc_ge_4): New declaration.
1996 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1997 (process_full_comp_unit): Update its caller. Remove
1998 amd64_prologue_line_bug initialization.
1999 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2000 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2001
25289eb2
PA
20022011-09-09 Pedro Alves <pedro@codesourcery.com>
2003
2004 * linux-nat.h (enum resume_kind): New.
2005 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2006 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2007 resume_stop on the new lwp.
25289eb2
PA
2008 (add_lwp): Set last_resume_kind as resume_continue by default.
2009 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2010 (resume_lwp): New, factored out from resume_callback. Also check
2011 for pending status in lp->waitstatus.
2012 (resume_callback): Reimplement.
2013 (resume_clear_callback): Set last_resume_kind as resume_stop.
2014 (resume_set_callback): Set last_resume_kind as resume_continue.
2015 (linux_nat_resume, linux_handle_extended_wait): Set
2016 last_resume_kind.
2017 (running_callback): Also check lp->waitstatus for pending events.
2018 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2019 is resume_step.
2020 (stop_and_resume_callback): Don't re-resume if the core wanted the
2021 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2022 using an invalidated pointer.
2023 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2024 SIGSTOPs if the core wanted the LWP to stop.
2025 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2026 wanted the lwp to stop. If the core wanted the lwp to stop, and
2027 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2028 of TARGET_SIGNAL_STOP.
2029 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2030 here. Instead, signal the lwp, and set the last_resume_kind to
2031 resume_stop.
2032
f687d035
PA
20332011-09-09 Pedro Alves <pedro@codesourcery.com>
2034
2035 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2036 -1 (error), if the lwp exits right after attaching.
2037
bc587a6b
DE
20382011-09-08 Doug Evans <dje@google.com>
2039
63d97a20
DE
2040 * py-cmd.c: Some minor formatting fixes.
2041 (gdbpy_parse_command_name): Rename text arg to name, make const.
2042 All callers updated.
2043 * python-internal.h (gdbpy_parse_command_name): Update.
2044
bc587a6b
DE
2045 * cli/cli-decode.c (add_cmd): Add comment.
2046
08711b9a
JK
20472011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2048
2049 PR breakpoints/12435
2050 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2051 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2052 * dwarf2read.c (process_full_comp_unit): Initialize
2053 amd64_prologue_line_bug.
2054 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2055
b2e7f004
JK
20562011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2057
2058 Fix TUI screen corruption.
2059 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2060 batch_flag.
2061
8afd712c
JK
20622011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2063
2064 * findvar.c (read_var_value): Never return NULL, throw an error
2065 instead. Update the function comment. State symbol name in the error
2066 messages.
2067 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2068 read_var_value.
2069 * stack.c (print_frame_args): Likewise.
2070 * valops.c (value_of_variable): Likewise.
2071
b99b5f66
JK
20722011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2073
2074 * stack.c (print_frame_args): New variable except. Wrap
2075 read_var_value and common_val_print into TRY_CATCH.
2076
85bc8cb7
JK
20772011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2078
2079 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2080 caller to value_of_this.
2081 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2082 Twice.
2083 * valops.c (value_of_this): Remove parameter complain and variable ret.
2084 Update function comment. Never return NULL by this code.
2085 (value_of_this_silent): New function.
2086 * value.h (value_of_this): Remove parameter complain.
2087 (value_of_this_silent): New declaration.
2088
ede1849f
YQ
20892011-09-07 Yao Qi <yao@codesourcery.com>
2090
2091 * gdbthread.h (struct thread_info): Remove fields
2092 `stepping_through_solib_after_catch' and
2093 `stepping_through_solib_catchpoints'.
2094 * infrun.c (init_thread_stepping_state): Update.
2095 (process_event_stop_test, currently_stepping): Update.
2096 (currently_stepping_or_nexting_callback): Update.
2097
6aa27652
YQ
20982011-09-07 Yao Qi <yao@codesourcery.com>
2099
2100 * gdbthread.h (struct thread_info): Comment on field
2101 `step_after_step_resume_breakpoint'.
2102
00db5b94
PA
21032011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2104
2105 * remote.c (remote_console_output): Reindent.
2106
861152be
LM
21072011-09-06 Luis Machado <lgustavo@codesourcery.com>
2108
2109 * frame.c (has_stack_frames): Check for currently selected
2110 traceframe.
2111
ab821bc6
PA
21122011-09-06 Pedro Alves <pedro@codesourcery.com>
2113
2114 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2115 (set_async_annotation_level, set_async_prompt, pop_prompt)
2116 (push_prompt, new_async_prompt): Delete declarations.
2117 * top.h (get_prompt, set_prompt): Change prototype.
2118 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2119 declarations.
2120 * top.c (command_loop):
2121 (top_prompt): New global.
2122 (get_prefix, set_prefix, get_suffix, ): Delete.
2123 (get_prompt, set_prompt): Rewrite.
2124 (show_new_async_prompt): Rename to ...
2125 (show_prompt): ... this.
2126 (init_main): Adjust. Don't handle --annotate=2 here.
2127 * event-top.c (new_async_prompt): Delete.
2128 (the_prompts): Delete.
2129 (more_to_come): Make static.
2130 (display_gdb_prompt): Use top_level_prompt() to compute the top
2131 level prompt, and don't notify the before_prompt observers
2132 directly here. Always trick readline into not trying to display
2133 the prompt if sync_execution and displaying the primary prompt.
2134 If displaying a local/secondary prompt, always show it, even if
2135 sync_execution is set.
2136 (change_annotation_level): Delete.
2137 (top_level_prompt): New, based on change_annotation_level.
2138 (push_prompt, pop_prompt): Delete.
2139 (async_disable_stdin): No longer pushes prompt.
2140 (command_line_handler): No longer pushes or pops prompt. If more
2141 input is expected, call display_gdb_prompt with an explicit empty
2142 prompt.
2143 (async_stop_sig): Adjust.
2144 (set_async_annotation_level, set_async_prompt): Delete.
2145 * python/python.c (before_prompt_hook): Adjust.
2146
f1d90504
PA
21472011-09-05 Pedro Alves <pedro@codesourcery.com>
2148
2149 PR cli/13110
2150
2151 * infrun.c (fetch_inferior_event): Check if there's a selected
2152 thread before checking if the selected thread is executing.
2153
0f641c01
PA
21542011-09-05 Pedro Alves <pedro@codesourcery.com>
2155
2156 * inf-loop.c (execute_command): Don't check if the current thread
2157 if running before synchronously waiting for command completion.
2158 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2159 here.
2160 (normal_stop): Call async_enable_stdin here.
2161 * inf-loop.c (inferior_event_handler): Don't call
2162 async_enable_stdin, nor handle "set exec-done-display" here.
2163
30368258 21642011-09-04 Joel Brobecker <brobecker@adacore.com>
2165
2166 GDB 7.3.1 released.
2167
31916278
JB
21682011-09-04 Joel Brobecker <brobecker@adacore.com>
2169
2170 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2171
e8d56f18
JB
21722011-09-04 Joel Brobecker <brobecker@adacore.com>
2173
2174 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2175
5dd05d8c
JK
21762011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2177
2178 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2179
7d8e6458 21802011-09-02 Matt Rice <ratmice@gmail.com>
2181
2182 PR gdb/10720
2183 * event-top.c (cli_command_loop): Replace readline setup with
2184 direct call to display_gdb_prompt.
2185 (display_gdb_prompt): Do not call observer mechanism during
2186 synchronous execution.
2187
84636d28
PA
21882011-09-02 Pedro Alves <pedro@codesourcery.com>
2189
2190 * linux-nat.c (in_pid_list_p): New.
2191 (linux_record_stopped_pid): Delete.
2192 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2193 already attached to the LWP. Return an indication if so.
2194 (linux_nat_filter_event): Adjust.
2195 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2196 returning an indication to ignore this thread.
2197
b4a14fd0
PA
21982011-09-02 Pedro Alves <pedro@codesourcery.com>
2199
2200 * top.c: Include interps.h.
2201 (execute_command): If the target can async, but the interpreter is
2202 in sync mode, synchronously wait for the command to finish before
2203 returning.
2204 (execute_command_to_string): Force the interpreter to sync mode.
2205 * infrun.c: Include interps.h.
2206 (fetch_inferior_event): Don't restore the prompt yet if the
2207 interpreter is in sync mode.
2208 * interps.c (interpreter_async): New global.
2209 * interps.h (interpreter_async): Declare.
2210 * inf-loop.c: Include interps.h.
2211 (inferior_event_handler): Don't print the language change or run
2212 breakpoint commands yet if the interpreter in is sync mode.
2213 * main.c (captured_command_loop): Flip the interpreter to async
2214 mode.
2215 * cli/cli-script.c: Include interps.h.
2216 (execute_user_command, while_command, if_command): Force the
2217 interpreter to sync mode.
2218 * python/python.c: Include interps.h.
2219 (python_command, execute_gdb_command): Force the interpreter to
2220 sync mode.
2221
c709acd1
PA
22222011-09-02 Pedro Alves <pedro@codesourcery.com>
2223
2224 * value.c (show_convenience): Catch errors thrown while printing
2225 each internal variable.
2226 * infrun.c (validate_siginfo_access): New function.
2227 (siginfo_value_read, siginfo_value_write): Call it.
2228
9655e943
JK
22292011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2230
2231 Revert:
2232 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2233 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2234 attribute.
2235
cb457ae2
YQ
22362011-08-29 Yao Qi <yao@codesourcery.com>
2237
2238 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2239 (cmp_name): New.
2240 (enable_break2): Update caller.
2241 * solib-frv.c (bfd_lookup_symbol): Removed.
2242 (cmp_name): New.
2243 (enable_break2): Update caller.
2244 * solib-pa64.c (bfd_lookup_symbol): Removed.
2245 (cmp_name): New.
2246 * solib-svr4.c (bfd_lookup_symbol): Removed.
2247 (cmp_name_and_sec_flags): New.
2248 (enable_break): Update caller.
2249 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2250 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2251 (gdb_bfd_lookup_symbol): New.
2252 * solib.h: Functions declarations.
2253
83d1a36a
YQ
22542011-08-29 Yao Qi <yao@codesourcery.com>
2255
2256 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2257 and solib-dsbt.o.
2258
c04b3e8f
JK
22592011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2260
2261 Fix TUI stepi on code without symbols.
2262 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2263 current PC instead.
2264
cb0fd152
JK
22652011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2266
2267 Code cleanup.
2268 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2269 and the static keyword.
2270 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2271 Make prefix an array.
2272 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2273 * mi/mi-main.c (get_register): Remove stb initialization and the static
2274 keyword.
2275
91174723
JK
22762011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2277
2278 Code cleanup - make mi_opt const.
2279 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2280 opts const.
2281 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2282 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2283 (mi_cmd_env_dir): Likewise.
2284 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2285 (mi_cmd_target_file_put): Likewise.
2286 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2287 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2288 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2289 (mi_valid_noargs): Make opts const.
2290 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2291 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2292 (mi_cmd_data_read_memory): Likewise.
2293 (mi_cmd_data_read_memory_bytes): Likewise.
2294 (mi_cmd_data_write_memory): Likewise.
2295
5068b8e8 22962011-08-26 Matt Rice <ratmice@gmail.com>
2297
2298 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2299 bcache_xmalloc, replace bcache_xmalloc with call to
2300 psymbol_bcache_init for psymbol_cache.
2301 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2302
a4f2ce05
JK
23032011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2304
2305 * inf-loop.c (inferior_event_handler): Add exception_print in
2306 INF_EXEC_COMPLETE.
2307
353d1d73
JK
23082011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2309
2310 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2311 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2312 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2313 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2314 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2315 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2316 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2317 * infrun.c (fetch_inferior_event): Call
2318 make_bpstat_clear_actions_cleanup.
2319 * top.c (execute_command): New variable cleanup_if_error, call
2320 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2321 * utils.c (do_bpstat_clear_actions_cleanup)
2322 (make_bpstat_clear_actions_cleanup): New functions.
2323
3ced3da4
PA
23242011-08-26 Pedro Alves <pedro@codesourcery.com>
2325
2326 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2327 either the parent or the child forks. Rename a couple locals.
2328
a9f4bb21
PA
23292011-08-26 Pedro Alves <pedro@codesourcery.com>
2330
2331 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2332 library call. Avoid reading the `status' local if all waitpid
2333 calls failed.
2334
e5798bef
PA
23352011-08-26 Pedro Alves <pedro@codesourcery.com>
2336
2337 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2338 opening /proc/PID/task always succeeds.
2339
edb2aadf
AR
23402011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2341
2342 * linespec.c (symtab_from_filename): Check for the end of string.
2343
0d932b2f
MK
23442011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2345
2346 PR mi/11912
2347 * varobj.c (cplus_describe_child): Add the keyword
2348 'class' to the output of the method when dealing
2349 with a cast to a base class.
2350
e93ca019
JK
23512011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2352
2353 No functionality change.
2354 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2355 function comment a reference, new variables tp and bs, move here code
2356 from throw_exception.
2357 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2358 describe it in the comment.
2359 * exceptions.c (throw_exception): Remove variable tp, move the code for
2360 bpstat_clear_actions to bpstat_clear_actions.
2361
13da1c97
LM
23622011-08-24 Luis Machado <lgustavo@codesourcery.com>
2363
2364 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2365 * linux-nat.c: Include linux-procfs.h.
2366 (linux_proc_get_tgid): Move to ...
2367 * common/linux-procfs.c: ... here. New file.
2368 * common/linux-procfs.h: New file.
2369 * linux-thread-db.c: Include linux-procfs.h.
2370 * Makefile.in: Update dependencies.
2371 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2372 * config/arm/linux.mh: Likewise.
2373 * config/i386/linux.mh: Likewise.
2374 * config/i386/linux64.mh: Likewise.
2375 * config/ia64/linux.mh: Likewise.
2376 * config/m32r/linux.mh: Likewise.
2377 * config/m68k/linux.mh: Likewise.
2378 * config/mips/linux.mh: Likewise.
2379 * config/pa/linux.mh: Likewise.
2380 * config/pa/linux.mh: Likewise.
2381 * config/powerpc/linux.mh: Likewise.
2382 * config/powerpc/ppc64-linux.mh: Likewise.
2383 * config/powerpc/spu-linux.mh: Likewise.
2384 * config/sparc/linux.mh: Likewise.
2385 * config/sparc/linux64.mh: Likewise.
2386 * config/xtensa/linux.mh: Likewise.
2387
4e5c165d
HZ
23882011-08-24 Hui Zhu <teawater@gmail.com>
2389
2390 * tracepoint.c (cond_string_is_same): New function.
2391 (find_matching_tracepoint): Add condition check
2392 by cond_string_is_same.
2393
6e2f5b22
JK
23942011-08-23 Josh Matthews <josh@joshmatthews.net>
2395
2396 Fix build error in Darwin port.
2397 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2398
abf85f46
JK
23992011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2400
2401 Code cleanup.
2402 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2403 (command_line_is_silent): New function.
2404 (bpstat_do_actions_1): No longer use commands_left, use
2405 command_line_is_silent for commands.
2406 (bpstat_alloc): Remove clearing of commands_left.
2407 (bpstat_stop_status): Remove initialization of commands_left, use
2408 command_line_is_silent.
2409 * breakpoint.h (struct bpstats): Remove commands_left.
2410
3a93a0c2
KS
24112011-08-18 Keith Seitz <keiths@redhat.com>
2412
2413 PR c++/12266
2414 * cp-name-parser.y (struct demangle_info): Remove unused
2415 member PREV.
2416 (d_grab): Likewise.
2417 (allocate_info): Change return type to struct demangle_info *.
2418 Always allocate a new demangle_info.
2419 Remove unused PREV pointer.
2420 (cp_new_demangle_parse_info): New function.
2421 (cp_demangled_name_parse_free): New function.
2422 (do_demangled_name_parse_free_cleanup): New function.
2423 (make_cleanup_cp_demangled_name_parse_free): New function.
2424 (cp_demangled_name_to_comp): Change return type to
2425 struct demangle_parse_info *.
2426 Allocate a new storage for each call.
2427 (main): Update usage for cp_demangled_name_to_comp
2428 API change.
2429 * cp-support.h (struct demangle_parse_info): New structure.
2430 (cp_demangled_name_to_comp): Update API change for
2431 return type.
2432 (cp_new_demangle_parse_info): Declare.
2433 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2434 (cp_demangled_name_parse_free): Declare.
2435 * cp-support.c (cp_canonicalize_string): Update API
2436 change for cp_demangled_name_to_comp.
2437 (mangled_name_to_comp): Likewise.
2438 Return struct demangle_parse_info, too.
2439 (cp_class_name_from_physname): Update mangled_name_to_comp
2440 API change.
2441 (method_name_from_physname): Likewise.
2442 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2443 (cp_remove_params): Likewise.
2444 * python/py-type.c (typy_legacy_template_argument): Likewise.
2445
2446 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2447 (cp_merge_demangle_parse_infos): Declare.
2448 * cp-support.c (ignore_typedefs): New file global.
2449 (copy_string_to_obstack): New function.
2450 (inspect_type): New function.
2451 (replace_typedefs): New function.
2452 (replace_typedefs_qualified_name): New function.
2453 (cp_canonicalize_string_no_typedefs): New function.
2454 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2455 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2456 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2457 instead of cp_canonicalize_string.
2458 (find_method): Likewise.
2459 (decode_compound): Before looking up the name, call
2460 cp_canonicalize_string_no_typedefs.
2461 (decode_variable): Likewise.
2462
fa3a4f15
PM
24632011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2464 Tom Tromey <tromey@redhat.com>
2465 Matt Rice <ratmice@gmail.com>
2466
2467 * python/lib/gdb/prompt.py: New file.
2468 * python/lib/gdb/command/prompt.py: New file.
2469 * NEWS: Document set extended-prompt and gdb.prompt library
2470
85661b1e
YQ
24712011-08-16 Yao Qi <yao@codesourcery.com>
2472
2473 * tic6x-linux-tdep.c: Move const arrays definition from here...
2474 * tic6x-tdep.c: to here ...
2475
11315641
YQ
24762011-08-14 Yao Qi <yao@codesourcery.com>
2477
2478 * NEWS: New port to Texas Instruments TMS320C6x.
2479
8cd64e00
YQ
24802011-08-14 Andrew Jenner <andrew@codesourcery.com>
2481 Bernd Schmidt <bernds@codesourcery.com>
2482 Yao Qi <yao@codesourcery.com>
2483
2484 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2485 * solib-dsbt.c: New file. Support DSBT shared object.
2486 * tic6x-linux-tdep.c: New file.
2487 * tic6x-tdep.c: New file.
2488 * tic6x-tdep.h: New file.
2489
78d85199
YQ
24902011-08-14 Andrew Stubbs <ams@codesourcery.com>
2491 Yao Qi <yao@codesourcery.com>
2492
2493 * remote.c (PACKET_qXfer_fdpic): New enum value.
2494 (remote_protocol_features): Add qXfer:fdpic:read packet.
2495 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2496 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2497 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2498
224bbe49
YQ
24992011-08-14 Yao Qi <yao@codesourcery.com>
2500
2501 Target description for tic6x.
2502 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2503 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2504 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2505 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2506 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2507 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2508 * features/tic6x-c64xp-linux.xml: New.
2509 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2510 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2511 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2512 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2513 * regformats/tic6x-c64xp.dat,
2514 regformats/tic6x-c62x-linux.dat: Generated.
2515 * regformats/tic6x-c64x-linux.dat,
2516 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2517 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2518 features/tic6x-*.c files.
2519 Add regformats/tic6x-*.dat files.
2520
457e09f0
DE
25212011-08-12 Doug Evans <dje@google.com>
2522
2523 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2524 * python/py-symbol.c (sympy_get_type): New function.
2525 (symbol_object_getset): Add "type".
2526
d20c1c3f
PA
25272011-08-12 Pedro Alves <pedro@codesourcery.com>
2528
2529 PR tui/13073
2530
2531 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2532 empty name.
2533 (tui_show_register_group): Don't store a byte buffer in the data
2534 element's value.
2535 (tui_register_format): Skip registers with an empty name.
2536 (tui_get_register): Store a struct value in the data element's
2537 value field instead of a byte buffer holding the raw register
2538 contents. Account for optimized-out and unavailable registers
2539 when comparing register contents.
2540
9d8fa392
PA
25412011-08-09 Pedro Alves <pedro@codesourcery.com>
2542
2543 * printcmd.c (current_display_number): Update comment.
2544 (disable_current_display_cleanup): Delete.
2545 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2546 catch errors thrown while evaluating and printing the display.
2547
401a70b8
TT
25482011-08-09 Tom Tromey <tromey@redhat.com>
2549
2550 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2551
7f86f058
PA
25522011-08-09 Pedro Alves <pedro@codesourcery.com>
2553
94b71cca 2554 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2555 * maint.c (maintenance_command): Ditto.
2556 * somread.c (som_symtab_read): Ditto.
2557 * solib.c (solib_find, solib_map_sections, update_solib_list)
2558 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2559 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2560 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2561 * solib-irix.c (locate_base, disable_break, enable_break)
2562 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2563 (irix_current_sos, irix_open_symbol_file_object)
2564 (irix_special_symbol_handling): Ditto.
2565 * solib-sunos.c (locate_base, first_link_map_member)
2566 (sunos_current_sos, disable_break, enable_break)
2567 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2568 Ditto.
2569 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2570 (open_symbol_file_object, svr4_current_sos, enable_break)
2571 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2572 Ditto.
2573 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2574 (frv_current_sos, enable_break, frv_special_symbol_handling)
2575 (frv_solib_create_inferior_hook): Ditto.
2576 * solist.h (struct target_so_ops): Extend the comments of the
2577 special_symbol_handling, current_sos and open_symbol_file_object
2578 methods.
2579
5e239b84
PM
25802011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2581
2582 * python/lib/gdb/__init__.py: Auto-load files in command and
2583 function directories.
2584 * python/python.c (finish_python_initialization): Use
2585 os.path.join.
2586 * python/lib/gdb/command/pretty_printers.py: Self register
2587 command.
2588 * NEWS: Document auto-loading.
2589
b6cede78
JK
25902011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2591
2592 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2593 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2594 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2595
29d0bb3d
TT
25962011-08-08 Tom Tromey <tromey@redhat.com>
2597
2598 * breakpoint.c (clean_up_filters): Remove.
2599 (catch_syscall_split_args): Use VEC_cleanup.
2600
2f7fb8e4
JK
26012011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2602
2603 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2604 (main): Uncomment "Demangling error\n".
2605
d6c10e95
PP
26062011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2607
2608 * solib-target.c (segment_attributes): Make them static.
2609 (section_attributes, library_children, library_attributes): Likewise.
2610 (library_list_children, library_list_attributes): Likesise.
2611 (library_list_elements): Likewise.
2612
af6e93b2
PA
26132011-08-05 Pedro Alves <pedro@codesourcery.com>
2614
2615 * exceptions.c (throw_exception): Don't disable the current
2616 display.
2617 * printcmd.c (disable_current_display_cleanup): New function.
2618 (do_one_display): Install a cleanup to disable the current display
2619 if doing the display throws.
2620
6a1b1664
EZ
26212011-08-05 Eli Zaretskii <eliz@gnu.org>
2622
2623 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2624 initialization of the tp_new member to the corresponding
2625 gdbpy_initialize_* function.
2626 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2627 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2628 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2629 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2630 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2631
31a0ae49
JK
26322011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2633
2634 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2635 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2636 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2637 references to current_uiout.
2638
e0dd0826
PA
26392011-08-04 Pedro Alves <pedro@codesourcery.com>
2640
2641 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2642 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2643 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2644 * top.c (gdb_readline_wrapper): Adjust.
2645 * tui/tui-interp.c (tui_command_loop):
2646 (_initialize_tui_interp): Don't install it.
2647
79a45e25
PA
26482011-08-04 Pedro Alves <pedro@codesourcery.com>
2649
2650 * ui-out.h (uiout): Rename to ...
2651 (current_uiout): ... this.
2652 * ui-out.c (uiout): Rename to ...
2653 (current_uiout): ... this.
2654 * ada-lang.c (print_it_exception, print_one_exception)
2655 (print_mention_exception): Adjust.
2656 * breakpoint.c (watchpoint_check): Adjust.
2657 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2658 (default_collect_info, watchpoints_info, print_one_catch_fork)
2659 (print_one_catch_vfork, print_one_catch_syscall)
2660 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2661 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2662 (print_it_watchpoint, print_mention_watchpoint)
2663 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2664 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2665 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2666 (bkpt_print_mention, momentary_bkpt_print_it)
2667 (tracepoint_print_mention, update_static_tracepoint)
2668 (tracepoints_info, save_breakpoints): Adjust.
2669 * cli-out.c (field_separator): Adjust.
2670 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2671 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2672 * frame.c (get_current_frame): Adjust.
2673 * infcmd.c (run_command_1, print_return_value): Adjust.
2674 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2675 * infrun.c (print_end_stepping_range_reason): Adjust.
2676 (print_signal_exited_reason, print_exited_reason): Adjust.
2677 (print_signal_received_reason, print_no_history_reason): Adjust.
2678 * interps.c (interp_set): Adjust.
2679 * osdata.c (info_osdata_command): Adjust.
2680 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2681 * remote-fileio.c (remote_fileio_request): Adjust.
2682 * remote.c (show_remote_cmd): Adjust.
2683 * solib.c (info_sharedlibrary_command): Adjust.
2684 * source.c (print_source_lines_base): Adjust.
2685 * stack.c (print_stack_frame): Adjust.
2686 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2687 * symfile-mem.c (add_vsyscall_page): Adjust.
2688 * symfile.c (load_progress, generic_load)
2689 (print_transfer_performance): Adjust.
2690 * thread.c (info_threads_command, restore_selected_frame)
2691 (thread_command): Adjust.
2692 * top.c (make_cleanup_restore_ui_file): Adjust.
2693 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2694 (print_one_static_tracepoint_marker): Adjust.
2695 * cli/cli-cmds.c (print_disassembly): Adjust.
2696 * cli/cli-decode.c (print_doc_line): Adjust.
2697 * cli/cli-interp.c (safe_execute_command): Adjust.
2698 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2699 (handle_redirections): Adjust.
2700 * cli/cli-script.c (show_user_1): Adjust.
2701 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2702 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2703 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2704 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2705 (mi_cmd_env_dir): Adjust.
2706 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2707 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2708 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2709 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2710 (list_args_or_locals): Adjust.
2711 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2712 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2713 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2714 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2715 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2716 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2717 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2718 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2719 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2720 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2721 (list_available_thread_groups, mi_cmd_list_thread_groups)
2722 (mi_cmd_data_list_register_names)
2723 (mi_cmd_data_list_changed_registers)
2724 (mi_cmd_data_list_register_values, get_register)
2725 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2726 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2727 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2728 (mi_execute_command, mi_load_progress): Adjust.
2729 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2730 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2731 Adjust.
2732 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2733 * tui/tui-interp.c (tui_command_loop): Adjust.
2734 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2735
f9679975
PA
27362011-08-04 Pedro Alves <pedro@codesourcery.com>
2737
2738 * exceptions.c (struct catcher): Remove saved_uiout field.
2739 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2740 no longer save/resvore the global ui_out builder.
2741 (catch_exceptions_with_msg): Save/override/restore the global
2742 ui_out builder manually instead of relying on TRY_CATCH to do it.
2743 (catch_errors): Save/restore the global ui_out builder manually
2744 instead of relying on TRY_CATCH to do it.
2745 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2746 parameter.
2747 (TRY_CATCH): Adjust.
2748 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2749 the global ui_out builder manually instead of relying on TRY_CATCH
2750 to do it.
2751
934709f0
PW
27522011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2753
2754 * breakpoint.c (update_global_location_list): Ensure
2755 invariant 'first loc marked not duplicated and inserted,
2756 following locs marked duplicated/not inserted' is respected
2757 for multiple locations at the same address.
2758 (unduplicated_should_be_inserted) New function.
2759 (swap_insertion) New function.
2760
2421fe6f
JK
27612011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2762
2763 * stack.c (print_frame_arguments_choices): Comment typo fix.
2764
3fbb6ffa
TJB
27652011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2766
2767 Revert:
2768 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2769 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2770 argument. Update callers.
2771
fbe12357
PP
27722011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2773
2774 PR gdb/13045
2775 * doublest.c (convert_doublest_to_floatformat): Pass correct
2776 mantissa length to put_field.
2777
b1d288d3
JK
27782011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2779
2780 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2781 exception_print code path.
2782 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2783 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2784 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2785
311b5970
JK
27862011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2787
2788 Code cleanup.
2789 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2790 Remove, merge them into ...
2791 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2792 variable args and its initialization.
2793 (struct print_args_args, print_args_stub): Remove, merge them into
2794 print_frame.
2795 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2796 them into ...
2797 (do_gdb_disassembly): ... here. Remove variable args and its
2798 initialization.
2799 (print_frame): Remove variable args and its initialization, new
2800 variable gdbarch and numargs (from print_args_stub), inline here
2801 print_args_stub with a TRY_CATCH.
2802 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2803 them into ...
2804 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2805 New variable e, remove variable btargs and its initialization.
311b5970 2806
484a26a8
TG
28072011-08-01 Tristan Gingold <gingold@adacore.com>
2808
2809 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2810
c30eee59
TJB
28112011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2812
2813 * breakpoint.c (insert_bp_location): Document return value.
2814 (insert_breakpoint_locations): Fix documentation.
2815 (remove_breakpoints): Add documentation.
2816
f116073b
TJB
28172011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2818
2819 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2820 argument. Update callers.
2821
65aa373f
JK
28222011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2823
2824 * stack.c (print_frame_info): Comment typo fix.
2825
a50242fb
SA
28262011-07-29 Sterling Augustine <saugustine@google.com>
2827
2828 * MAINTAINERS (Write After Approval): Add myself to the list.
2829
267f6504
TT
28302011-07-29 Tom Tromey <tromey@redhat.com>
2831
2832 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2833 (library_list_start_segment): Update.
2834 (library_list_start_section): Update.
2835
00bd41d6
PM
28362011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2837
2838 * varobj.c (value_get_print_value): Move hint check later into the
2839 function. Comment function. Free thevalue before reusing it.
2840
18a46dbe
JK
28412011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2842 Pedro Alves <pedro@codesourcery.com>
2843
2844 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2845 value_one.
2846 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2847 Assert the result kind.
2848 * value.h (value_one): Remove parameter lv.
2849
bb7da2bf
JK
28502011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2851
2852 Fix crash on lval_computed values.
2853 * valops.c (value_zero): Use not_lval for lval_computed.
2854
2d5213f8
TT
28552011-07-27 Tom Tromey <tromey@redhat.com>
2856
2857 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2858 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2859
11081198
JK
28602011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2861
2862 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2863 "ptype" by their typedefs difference.
2864
3c6e0cb3
JK
28652011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2866
2867 * dwarf2expr.c (ctx_no_read_reg): New function.
2868 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2869 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2870 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2871 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2872
523f3620
JK
28732011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2874
2875 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2876 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2877 file.
2878 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2879 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2880 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2881 (ctx_no_get_base_type): Move the functions here.
2882 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2883 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2884 (ctx_no_get_base_type): New declarations.
2885
24d3216f
TT
28862011-07-27 Tom Tromey <tromey@redhat.com>
2887
2888 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2889 entries.
2890 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2891 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2892
5005c8a9
PP
28932011-07-26 Sterling Augustine <saugustine@google.com>
2894
2895 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2896 ULONGEST.
2897 (dump_bfd_file): Likewise.
2898
480a3f21
PW
28992011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2900
2901 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2902 (remote_hw_watchpoint_length_limit): New variable.
2903 (_initialize_remote) add set,show cmds for this new variable.
2904 * gdb.texinfo: document these new commands.
2905 * NEWS: Mention these new commands.
2906
efa80663
PA
29072011-07-26 Pedro Alves <pedro@codesourcery.com>
2908
2909 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2910 true for software watchpoints.
2911
dbdaa232 29122011-07-26 Joel Brobecker <brobecker@adacore.com>
2913
2914 GDB 7.3 released.
2915
cf2c3c16
TT
29162011-07-26 Tom Tromey <tromey@redhat.com>
2917
2918 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2919 * dwarf2read.c (read_indirect_string_at_offset): New function.
2920 (read_indirect_string): Use it.
2921 (dwarf_decode_macro_bytes): New function, taken from
2922 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2923 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2924 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2925 New functions.
2926 (struct dwarf2_per_objfile) <macro>: New field.
2927 (dwarf2_elf_names): Add .debug_macro.
2928 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2929 (dwarf2_locate_sections): Handle new section.
2930 (read_file_scope): Handle DW_AT_GNU_macros.
2931 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2932
1a532630
PP
29332011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2934
2935 * NEWS: Mention dcache configuration.
2936 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2937 (dcache_size, dcache_line_size): New variables.
2938 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2939 (struct dcache_block): Make it expandable.
2940 (struct dcache_struct): New field.
2941 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2942 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2943 (dcache_poke_byte, dcache_print_line): Adjust.
2944 (set_dcache_size, set_dcache_line_size): New functions.
2945 (set_dcache_command, show_dcache_command): New functions.
2946 (_initialize_dcache): Add new commands.
2947
2eff07b3
PP
29482011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2949
2950 * progspace.h (struct program_space): Add solib_add_generation.
2951 * infcmd.c (post_create_inferior): Only call solib_add if not
2952 already done.
2953 * solib.c (solib_add): Increment solib_add_generation.
2954
543305c9
JK
29552011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2956
2957 Fix implicit pointer offsets.
2958 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2959 ptr.OFFSET.
2960
c0a91b2b
TT
29612011-07-25 Tom Tromey <tromey@redhat.com>
2962
2963 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2964 const.
2965 (ada_exception_sal): Make 'ops' const.
2966 (ada_decode_exception_location): Likewise.
2967 (ada_decode_assert_location): Likewise.
2968 (catch_assert_command): Update.
2969 (catch_ada_exception_command): Update.
2970 (create_ada_exception_catchpoint): Make 'ops' const.
2971 * breakpoint.c (set_raw_breakpoint_without_location)
2972 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2973 const.
2974 (create_internal_breakpoint): Update.
2975 (init_raw_breakpoint_without_location): Make 'ops' const.
2976 (init_raw_breakpoint, init_catchpoint)
2977 (create_fork_vfork_event_catchpoint)
2978 (create_syscall_event_catchpoint, init_breakpoint_sal)
2979 (create_breakpoint_sal, create_breakpoints_sal)
2980 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2981 * breakpoint.h (struct breakpoint) <ops>: Now const.
2982 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2983 const.
2984
6cb9b55b
PP
29852011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2986
2987 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2988
d9b3f62e
PA
29892011-07-25 Pedro Alves <pedro@codesourcery.com>
2990
2991 * breakpoint.h (print_recreate_thread): Declare.
2992 (struct breakpoint): Move step_count, pass_count,
2993 number_on_target, static_trace_marker_id,
2994 static_trace_marker_id_idx ...
2995 (struct tracepoint): ... to this new struct.
2996 (get_tracepoint, get_tracepoint_by_number_on_target)
2997 (get_tracepoint_by_number): Change return type to struct
2998 tracepoint pointer.
2999 * breakpoint.c (is_tracepoint_type): New, factored out from
3000 is_tracepoint.
3001 (is_tracepoint): Adjust.
3002 (print_one_breakpoint_location): Cast to struct tracepoint as
3003 necessary, and adjust.
3004 (print_recreate_catch_fork, print_recreate_catch_vfork)
3005 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3006 print_recreate_thread.
3007 (init_breakpoint_sal): New, factored out from
3008 create_breakpoint_sal.
3009 (create_breakpoint_sal): Reimplement.
3010 (create_breakpoint): Allocate a struct tracecepoint if the caller
3011 wanted a tracepoint. Use init_breakpoint_sal and
3012 install_breakpoint.
3013 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3014 (print_recreate_masked_watchpoint)
3015 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3016 (tracepoint_print_one_detail): Adjust.
3017 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3018 Dump the pass count here.
3019 (update_static_tracepoint): Adjust.
3020 (addr_string_to_sals): Adjust.
3021 (create_tracepoint_from_upload): Adjust. Change return type to
3022 struct tracepoint pointer.
3023 (trace_pass_set_count): Change parameter type to struct tracepoint
3024 pointer, and adjust.
3025 (trace_pass_command): Adjust.
3026 (get_tracepoint, get_tracepoint_by_number_on_target)
3027 (get_tracepoint_by_number): Change return type to struct
3028 tracepoint pointer, and adjust.
3029 (print_recreate_thread): New, factored out from save_breakpoints.
3030 (save_breakpoints): Don't print thread and task and passcount
3031 recreation here.
3032 * remote.c (remote_download_tracepoint): Adjust.
3033 * tracepoint.c (trace_actions_command, validate_actionline)
3034 (start_tracing, tfind_1, trace_find_tracepoint_command)
3035 (trace_dump_command): Adjust.
3036 (find_matching_tracepoint): Change return type to struct
3037 tracepoint pointer, and adjust.
3038 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3039 (tfile_trace_find, tfile_fetch_registers): Adjust.
3040 * tracepoint.h (create_tracepoint_from_upload): Change return type
3041 to struct tracepoint pointer.
3042 * ada-lang.c (print_recreate_exception): Call
3043 print_recreate_thread.
3044 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3045
3a5c3e22
PA
30462011-07-25 Pedro Alves <pedro@codesourcery.com>
3047
3048 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3049 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3050 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3051 watchpoint_thread, watchpoint_triggered ...
3052 (struct watchpoint): ... to this new struct.
3053 (is_watchpoint): Declare.
3054 (install_breakpoint): Add new `internal' parameter.
3055 * breakpoint.c (is_watchpoint): Delete declaration.
3056 (set_breakpoint_condition): Handle watchpoints.
3057 (is_watchpoint): Make public.
3058 (watchpoint_in_thread_scope): Change parameter type to struct
3059 watchpoint.
3060 (watchpoint_del_at_next_stop): Change parameter type to struct
3061 watchpoint. Remove assertion. Adjust.
3062 (update_watchpoint): Ditto.
3063 (insert_breakpoints, breakpoint_init_inferior)
3064 (watchpoints_triggered, watchpoint_check)
3065 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3066 (bpstat_stop_status, print_one_breakpoint_location)
3067 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3068 to struct watchpoint as necessary, and adjust.
3069 (install_breakpoint): Add `internal' argument. If true, don't
3070 mention the new breakpoint. Use set_breakpoint_number.
3071 (create_fork_vfork_event_catchpoint)
3072 (create_syscall_event_catchpoint): Adjust.
3073 (dtor_watchpoint): New.
3074 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3075 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3076 (print_it_watchpoint, print_mention_watchpoint)
3077 (print_recreate_watchpoint, insert_masked_watchpoint)
3078 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3079 (print_one_detail_masked_watchpoint)
3080 (print_mention_masked_watchpoint)
3081 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3082 necessary, and adjust.
3083 (watch_command_1): Allocate and initialize a struct watchpoint
3084 instead of a struct breakpoint. Use install_breakpoint.
3085 (catch_exec_command_1): Adjust.
3086 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3087 fields.
3088 (delete_breakpoint, enable_breakpoint_disp)
3089 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3090 as necessary, and adjust.
3091 (initialize_breakpoint_ops): Install dtor_watchpoint as
3092 watchpoints' dtor method.
3093 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3094 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3095 to struct watchpoint as necessary, and adjust.
3096
2060206e
PA
30972011-07-25 Pedro Alves <pedro@codesourcery.com>
3098
3099 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3100 the the base class ops table.
3101 (catch_exception_breakpoint_ops)
3102 (catch_exception_unhandled_breakpoint_ops)
3103 (catch_assert_breakpoint_ops): Don't statically initialize.
3104 (initialize_ada_catchpoint_ops): New.
3105 (_initialize_ada_language): Call it.
3106 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3107 (bkpt_breakpoint_ops): Forward declare.
3108 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3109 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3110 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3111 (masked_watchpoint_breakpoint_ops)
3112 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3113 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3114 base class ops table.
3115 (null_re_set, null_check_status, null_works_in_software_mode)
3116 (null_resources_needed, null_print_one_detail): Delete.
3117 (bkpt_dtor): Rename to ...
3118 (base_breakpoint_dtor): ... this. Make static.
3119 (bkpt_allocate_location): Rename to ...
3120 (base_breakpoint_allocate_location): ... this. Make static.
3121 (base_breakpoint_re_set): New.
3122 (internal_error_pure_virtual_called): New.
3123 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3124 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3125 (base_breakpoint_works_in_software_mode)
3126 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3127 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3128 (base_breakpoint_print_recreate): New functions.
3129 (base_breakpoint_ops): New global.
3130 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3131 (bkpt_breakpoint_hit): Make static.
3132 (bkpt_check_status): Delete.
3133 (bkpt_resources_needed): Make static.
3134 (bkpt_works_in_software_mode): Delete.
3135 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3136 static.
3137 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3138 (momentary_breakpoint_ops): Don't statically initialize.
3139 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3140 Delete.
3141 (tracepoint_insert_location, tracepoint_remove_location)
3142 (tracepoint_check_status, tracepoint_works_in_software_mode)
3143 (tracepoint_print_it): Delete.
3144 (tracepoint_breakpoint_ops): Don't statically initialize.
3145 (initialize_breakpoint_ops): New.
3146 (_initialize_breakpoint): Call it.
3147 * breakpoint.h (null_re_set, null_works_in_software_mode)
3148 (null_resources_needed, null_check_status, null_print_one_detail):
3149 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3150 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3151 (bkpt_check_status, bkpt_resources_needed)
3152 (bkpt_works_in_software_mode, bkpt_print_it)
3153 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3154 Delete declarations.
3155 (initialize_breakpoint_ops): Declare.
3156
001c8c33
PA
31572011-07-25 Pedro Alves <pedro@codesourcery.com>
3158
3159 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3160 (momentary_bkpt_print_it): Simplify.
3161
06edf0c0
PA
31622011-07-25 Pedro Alves <pedro@codesourcery.com>
3163
3164 Split internal, momentary and user breakpoints breakpoint_ops
3165 tables.
3166
3167 * breakpoint.c (internal_breakpoint_ops)
3168 (momentary_breakpoint_ops): Forward declare.
3169 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3170 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3171 (create_overlay_event_breakpoint)
3172 (create_std_terminate_master_breakpoint)
3173 (create_exception_master_breakpoint): Create breakpoints with
3174 internal_breakpoint_ops vtable.
3175 (set_longjmp_breakpoint): Create momentary breakpoints with
3176 momentary_breakpoint_ops vtable, using
3177 momentary_breakpoint_from_master.
3178 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3179 (create_solib_event_breakpoint): Create breakpoints with
3180 internal_breakpoint_ops vtable.
3181 (set_momentary_breakpoint): Create breakpoints with
3182 momentary_breakpoint_ops vtable.
3183 (momentary_breakpoint_from_master): New, factored out from
3184 clone_momentary_breakpoint.
3185 (clone_momentary_breakpoint): Adjust.
3186 (watch_command_1): Create scope breakpoints with
3187 momentary_breakpoint_ops vtable.
3188 (bkpt_re_set): Remove handling of internal and momentary
3189 breakpoints.
3190 (bkpt_print_mention, bkpt_print_recreate): New.
3191 (bkpt_breakpoint_ops): Adjust.
3192 (internal_bkpt_re_set, internal_bkpt_check_status)
3193 (internal_bkpt_print_it, internal_bkpt_print_mention)
3194 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3195 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3196 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3197 (momentary_bkpt_print_recreate): New.
3198 (momentary_breakpoint_ops): New.
3199
348d480f
PA
32002011-07-25 Pedro Alves <pedro@codesourcery.com>
3201
3202 Implement most breakpoint_ops methods for all breakpoint types,
3203 and move the default handlings to the proper callbacks.
3204
3205 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3206 works_in_software_mode method.
3207 (insert_bp_location): Go through breakpoint_ops->insert_location
3208 for software and hardware watchpoints.
3209 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3210 breakpoint_ops.
3211 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3212 for software and hardware watchpoints.
3213 (print_it_typical): Delete.
3214 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3215 method.
3216 (watchpoint_check): Adjust comment.
3217 (bpstat_check_location): Simply always call the breakpoint's
3218 breakpoint_hit method.
3219 (bpstat_stop_status): Always call the breakpoint's check_status
3220 method. Remove special cases for watchpoints and internal event
3221 breakpoints from here (moved to the check_status implementations).
3222 (print_one_breakpoint_location): Assume b->ops is never NULL.
3223 Remove static tracepoint marker id printing from here (moved to
3224 the print_one_detail callback implementation of tracepoints).
3225 (init_bp_location): Assert OPS is never NULL.
3226 (allocate_bp_location): Always call the breakpoint's
3227 allocate_location method, and remove the default code from here.
3228 (free_bp_location): Always call the location's dtor method, and
3229 remove the default code from here.
3230 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3231 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3232 parameter. Pass it down.
3233 (set_raw_breakpoint): Ditto.
3234 (print_it_catch_fork): Adjust to take a bpstat as argument.
3235 (catch_fork_breakpoint_ops): Install methods.
3236 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3237 (catch_vfork_breakpoint_ops): Install methods.
3238 (dtor_catch_syscall): Call the base dtor.
3239 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3240 (catch_syscall_breakpoint_ops): Install methods.
3241 (dtor_catch_exec): Call the base dtor.
3242 (print_it_catch_exec): Adjust to take a bpstat as argument.
3243 (catch_exec_breakpoint_ops): Install methods.
3244 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3245 the breakpoint's resources_needed method, and remove the default
3246 code from here.
3247 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3248 breakpoint_ops.
3249 (clone_momentary_breakpoint): Clone the original's ops.
3250 (mention): Always call the breakpoint's print_mention method, and
3251 remove the default code from here.
3252 (create_breakpoint_sal): Adjust to pass the ops to
3253 set_raw_breakpoint rather than setting it manually.
3254 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3255 ops to set_raw_breakpoint_without_location rather than setting it
3256 manually.
3257 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3258 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3259 (ranged_breakpoint_ops): Install methods.
3260 (break_range_command): Adjust to pass the ops to
3261 set_raw_breakpoint rather than setting it manually.
3262 (re_set_watchpoint, breakpoint_hit_watchpoint)
3263 (check_status_watchpoint, resources_needed_watchpoint)
3264 (works_in_software_mode_watchpoint, print_it_watchpoint)
3265 (print_mention_watchpoint, print_recreate_watchpoint): New
3266 functions.
3267 (watchpoint_breakpoint_ops): Install new methods.
3268 (print_it_masked_watchpoint): New function.
3269 (masked_watchpoint_breakpoint_ops): Install new methods.
3270 (watch_command_1): Adjust to pass the right breakpoint_ops to
3271 set_raw_breakpoint_without_location rather than setting it
3272 manually later. Record the current pspace.
3273 (print_it_exception_catchpoint): Adjust to take a bpstat as
3274 argument.
3275 (gnu_v3_exception_catchpoint_ops): Install new methods.
3276 (say_where): New function.
3277 (null_re_set, null_check_status, null_works_in_software_mode)
3278 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3279 New functions.
3280 (bp_location_ops): New global.
3281 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3282 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3283 (bkpt_check_status, bkpt_resources_needed)
3284 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3285 (bkpt_print_recreate): New functions.
3286 (bkpt_breakpoint_ops): New global.
3287 (tracepoint_re_set, tracepoint_insert_location)
3288 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3289 (tracepoint_check_status, tracepoint_works_in_software_mode)
3290 (tracepoint_print_it, tracepoint_print_one_detail)
3291 (tracepoint_print_mention, tracepoint_print_recreate): New
3292 functions.
3293 (tracepoint_breakpoint_ops): New global.
3294 (delete_breakpoint): Always call the breakpoint's dtor method, and
3295 remove the default handling from here.
3296 (breakpoint_re_set_default): Make static.
3297 (breakpoint_re_set_one): Always call the breakpoints re_set
3298 method, and remove the default handling from here.
3299 (trace_command, ftrace_command, strace_command)
3300 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3301 to create_breakpoint.
3302 (save_breakpoints): Always call the breakpoint's print_recreate
3303 method, and remove the default handling from here.
3304
3305 * ada-lang.c (dtor_exception): Call the base dtor.
3306 (re_set_exception): Call the base method.
3307 (print_it_exception, print_it_catch_exception): Adjust to take a
3308 bpstat as argument.
3309 (catch_exception_breakpoint_ops): Install methods.
3310 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3311 argument.
3312 (catch_exception_unhandled_breakpoint_ops): Install methods.
3313 (print_it_catch_assert): Adjust to take a bpstat as argument.
3314 (catch_assert_breakpoint_ops): Install methods.
3315
3316 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3317 to take a bpstat as argument.
3318 (enum print_stop_action): Add describing comments to each enum
3319 value.
3320 (breakpoint_re_set_default): Delete declaration.
3321 (null_re_set, null_works_in_software_mode, null_resources_needed)
3322 (null_check_status, null_print_one_detail): Declare.
3323 (bkpt_breakpoint_ops): Declare.
3324 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3325 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3326 (bkpt_check_status, bkpt_resources_needed)
3327 (bkpt_works_in_software_mode, bkpt_print_it)
3328 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3329 Declare.
3330
3331 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3332 bkpt_breakpoint_ops.
3333 * python/py-breakpoint.c (bppy_init): Ditto.
3334
be8f8133
PW
33352011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3336
3337 * MAINTAINERS (Write After Approval): Add myself to the list.
3338
3807f613
PP
33392011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3340
3341 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3342
1ced966e
PA
33432011-07-22 Pedro Alves <pedro@codesourcery.com>
3344
3345 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3346 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3347 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3348 adjust.
3349 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3350 (struct i386_debug_reg_state): New.
3351 (i386_init_dregs): New.
3352 (dr_mirror): New.
3353 (i386_cleanup_dregs): Use i386_init_dregs.
3354 (i386_show_dr): Add state parameter and adjust.
3355 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3356 the inferior here.
3357 (i386_remove_aligned_watchpoint): Likewise.
3358 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3359 (i386_update_inferior_debug_regs): New.
3360 (i386_insert_watchpoint): Work on a local mirror of the debug
3361 registers, and only update the inferior on success.
3362 (i386_remove_watchpoint): Ditto.
3363 (i386_region_ok_for_watchpoint): Adjust.
3364 (i386_stopped_data_address): Adjust.
3365 (i386_insert_hw_breakpoint): Adjust.
3366 (i386_remove_hw_breakpoint): Adjust.
3367
3543a589
TT
33682011-07-22 Tom Tromey <tromey@redhat.com>
3369
3370 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3371 from amd64_pseudo_register_read. Change arguments. Call
3372 mark_value_bytes_unavailable when needed.
3373 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3374 set_gdbarch_pseudo_register_read.
3375 * sentinel-frame.c (sentinel_frame_prev_register): Use
3376 regcache_cooked_read_value.
3377 * regcache.h (regcache_cooked_read_value): Declare.
3378 * regcache.c (regcache_cooked_read_value): New function.
3379 (regcache_cooked_read): Call
3380 gdbarch_pseudo_register_read_value if available.
3381 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3382 (i386_pseudo_register_read): Remove.
3383 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3384 i386_pseudo_register_read. Change arguments. Call
3385 mark_value_bytes_unavailable when needed.
3386 (i386_pseudo_register_read_value): New function.
3387 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3388 not set_gdbarch_pseudo_register_read.
3389 * gdbarch.sh (pseudo_register_read_value): New method.
3390 * gdbarch.c, gdbarch.h: Rebuild.
3391 * findvar.c (value_from_register): Call get_frame_register_value.
3392
95298e72
PM
33932011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3394
3395 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3396 get_prefix.
3397 (display_gdb_prompt): Likewise.
3398 (change_annotation_level): Likewise.
3399 (push_prompt): Likewise.
3400 (pop_prompt): Likewise.
3401 (handle_stop_sig): Use get_prompt with a level.
3402 * top.c (command_loop): Use get_prompt with a level.
3403 (set_async_annotation_level): Use set_prompt with a level.
3404 (get_prefix): New function.
3405 (set_prefix): Ditto.
3406 (set_suffix): Ditto.
3407 (get_suffix): Ditto.
3408 (get_prompt): Accept a level argument.
3409 (set_prompt): Accept a level argument. Free old prompts. Set
3410 new_async_prompt if level is 0.
3411 (init_main): Use set_prompt with a level. Do not set
3412 new_async_prompt.
3413 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3414 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3415 Modify set_prompt, get_prompt to account for levels.
3416 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3417 level.
3418 * python/python.c (before_prompt_hook): Use set_prompt.
3419
d26e3629
KY
34202011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3421
3422 * defs.h: Add guard against inclusion in gdbserver.
3423 (struct ptid, ptid_t): Move to common/ptid.h.
3424 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3425 xsnprintf, internal_error): Move to common/common-utils.h.
3426 (nomem): Delete.
3427 * gdb_assert.h: Move into common/ sub-directory.
3428 * gdb_locale.h: Ditto.
3429 * gdb_dirent.h: Ditto.
3430 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3431 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3432 Move into common/ptid.h.
3433 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3434 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3435 Change nomem to malloc_failure.
3436 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3437 * utils.c (nomem): Rename to malloc_failure.
3438 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3439 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3440 (gdb_buildargv): Change nomem to malloc_failure.
3441 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3442 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3443 ptid_is_pid): Move into common/ptid.c.
3444 (initialize_infrun): Delete initialization of null_ptid and
3445 minus_one_ptid.
3446 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3447 linux_common_xfer_osdata.
3448 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3449 common/ptid.c and common/buffer.c.
3450 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3451 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3452 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3453 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3454 rules.
3455 * common/gdb_assert.h: New.
3456 * common/gdb_dirent.h: New.
3457 * common/gdb_locale.h: New.
3458 * common/buffer.c: New.
3459 * common/buffer.h: New.
3460 * common/ptid.c: New.
3461 * common/ptid.h: New.
3462 * common/xml-utils.c: New.
3463 * common/xml-utils.h: New.
3464 * common/common-utils.c: New.
3465 * common/common-utils.h: New.
3466 * common/linux-osdata.c: New.
3467 * common/linux-osdata.h: New.
3468 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3469 * config/arm/linux.mh (NATDEPFILES): Ditto.
3470 * config/i386/linux.mh (NATDEPFILES): Ditto.
3471 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3472 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3473 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3474 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3475 * config/mips/linux.mh (NATDEPFILES): Ditto.
3476 * config/pa/linux.mh (NATDEPFILES): Ditto.
3477 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3478 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3479 * config/s390/s390.mh (NATDEPFILES): Ditto.
3480 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3481 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3482 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3483
edc84990 34842011-07-21 Matt Rice <ratmice@gmail.com>
3485
3486 * NEWS: Add info macros and info definitions commands.
3487
3a7bf607
PM
34882011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3489
3490 * NEWS: Document Python prompt substitution hook.
3491
9b158ba0 34922011-07-18 Matt Rice <ratmice@gmail.com>
3493
3494 PR macros/12999
3495 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3496 * macrotab.c (foreach_macro): Ditto.
3497 (foreach_macro_in_scope): Ditto.
3498 * macrocmd.c (print_macro_callback): New function.
3499 (info_macro_command): Move some code to print_macro_definition.
3500 (print_macro_definition): New function.
3501 (print_one_macro): Add new arguments to callback.
3502 (info_definitions_command): New function.
3503 (info_macros_command): Ditto.
3504 (_initialize_macrocmd): Add info macros and info definitions commands.
3505 * symtab.c (add_macro_name): Add new arguments to callback.
3506
d17b6f81
PM
35072011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3508 Tom Tromey <tromey@redhat.com>
3509
3510 * top.c (set_prompt): Rewrite to free previous prompt, free
3511 asynch_new_prompt and set both on new prompts.
3512 * event-top.c (display_gdb_prompt): Add prompt substitution
3513 logic.
3514 * python/python.c (before_prompt_hook): New function.
3515
1364323a 35162011-07-20 Matt Rice <ratmice@gmail.com>
3517
3518 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3519 arguments to store_unsigned_integer.
3520
8b70b953
TT
35212011-07-20 Tom Tromey <tromey@redhat.com>
3522
6c83ed52
TT
3523 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3524 in some declaration-only cases.
3525
35262011-07-18 Tom Tromey <tromey@redhat.com>
3527
8b70b953
TT
3528 PR symtab/12984:
3529 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3530 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3531 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3532 <debug_type_section>: New field.
3533 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3534 (load_cu): Use appropriate section.
3535 (create_signatured_type_table_from_index): Add 'section'
3536 argument.
3537 (dwarf2_read_index): Only allow a single .debug_types section.
3538 (dw2_get_file_names): Use appropriate section.
3539 (read_type_comp_unit_head): Add 'section' argument.
3540 (create_debug_types_hash_table): Loop over all .debug_types
3541 sections.
3542 (init_cu_die_reader): Use appropriate section.
3543 (process_psymtab_comp_unit, load_partial_comp_unit)
3544 (load_full_comp_unit, read_die_and_children, find_partial_die)
3545 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3546 (lookup_signatured_type_at_offset): Add 'section' argument.
3547 (read_signatured_type_at_offset): Add 'sect' argument.
3548 (read_signatured_type): Use appropriate section.
3549 (set_die_type, get_die_type_at_offset): Update.
3550 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3551 VEC.
3552 (write_psymtabs_to_index): Don't allow index with more than one
3553 .debug_types section.
3554
918dd910
JK
35552011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3556
3557 Fix crash if referenced CU is aged out.
3558 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3559 xfree of block.data.
3560 (indirect_pieced_value): New variable back_to, use to for xfree of
3561 baton.data.
3562 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3563 block.data.
3564 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3565 (load_cu): New function from ...
3566 (dw2_do_instantiate_symtab): ... the code here ...
3567 (process_full_comp_unit): ... and here.
3568 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3569 retval.data.
3570
0e37a63c
JK
35712011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3572
3573 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3574 type.
3575
7e324e48
GB
35762011-07-19 Gary Benson <gbenson@redhat.com>
3577
3578 * infrun.c (struct execution_control_state): New member
3579 stop_func_filled_in.
3580 (clear_stop_func, fill_in_stop_func): New functions.
3581 (handle_inferior_event): Call clear_stop_func rather than
3582 manipulating the execution control state directly.
3583 Call fill_in_stop_func lazily as required rather than
3584 directly calling find_pc_partial_function in all cases.
3585
d48323d8
TT
35862011-07-18 Tom Tromey <tromey@redhat.com>
3587
3588 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3589 checking for variable-sized array.
3590
40591b7d
JCD
35912011-07-18 Jean-Charles Delay <delay@adacore.com>
3592
3593 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3594 of supported languages.
3595 * varobj.c: Add top definitions and basic implementation of the
3596 following callbacks: ada_number_of_children, ada_name_of_variable,
3597 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3598 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3599 (languages): Register Ada-specific callbacks.
3600 (variable_language): Add the Ada case in the language setter switch.
3601
2e424e08
JK
36022011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3603
3604 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3605
9e8b7a03
JK
36062011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3607
3608 Code cleanup.
3609 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3610 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3611 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3612 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3613 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3614 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3615 (struct dwarf_expr_context_funcs): New, move here methods from ...
3616 (struct dwarf_expr_context): ... here. New fields funcs.
3617 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3618 (dwarf_expr_ctx_funcs): New.
3619 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3620 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3621 (needs_frame_ctx_funcs): New.
3622 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3623
2b1260ab
FM
36242011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3625
3626 * MAINTAINERS (Write After Approval): Add myself to the list.
3627
8bd90839
FM
36282011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3629
3630 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3631 that CIE pointer of an FDE really points to a CIE .
3632
953b98d1
HZ
36332011-07-15 Hui Zhu <teawater@gmail.com>
3634
3635 * remote.c (remote_get_trace_status): Add comments.
3636
c8f2448a
JK
36372011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3638
3639 Code cleanup - constify struct lval_funcs.
3640 * dwarf2loc.c (pieced_value_funcs): Make it const.
3641 * infrun.c (siginfo_value_funcs): Likewise.
3642 * opencl-lang.c (opencl_value_funcs): Likewise.
3643 * valops.c (value_assign, value_ind): Make the funcs variable const.
3644 * value.c (struct value): Make location.computed.funcs target const.
3645 Rearrange the comments.
3646 (allocate_computed_value): Make the funcs parameter target const.
3647 (value_computed_funcs): Return the funcs target const.
3648 (value_free, value_copy, set_value_component_location): Make the funcs
3649 variable const.
3650 * value.h (allocate_computed_value): Make the funcs parameter target
3651 const.
3652 (value_computed_funcs): Return the funcs target const.
3653 * windows-tdep.c (tlb_value_funcs): Make it const.
3654
f652de6f
HZ
36552011-07-14 Hui Zhu <teawater@gmail.com>
3656
3657 * remote.c (remote_get_trace_status): Initialize p.
3658
67f41397
JK
36592011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3660
3661 Work around kgdb.
3662 * remote.c (remote_get_trace_status): New variable ex. Put
3663 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3664
d1b66e6d
TT
36652011-07-13 Tom Tromey <tromey@redhat.com>
3666
3667 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3668 value_from_contents for final conversion.
3669
1632a688
JK
36702011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3671
3672 Code cleanup.
3673 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3674 Indent prototypes so they do not get into tags.
3675
a7035dbb
JK
36762011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3677
3678 Code cleanup making also optimized out values lazy.
3679 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3680 allocate_optimized_out_value. Twice.
3681 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3682 * findvar.c (read_var_value): Likewise.
3683 * value.c (allocate_optimized_out_value): New function.
3684 * value.h (allocate_optimized_out_value): New declaration.
3685
d07ed419
JK
36862011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3687
3688 Fix occasional crash of CTRL-C during DWARF read in.
3689 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3690
86d31898
TT
36912011-07-11 Tom Tromey <tromey@redhat.com>
3692
3693 * regcache.c (struct regcache_descr): Fix typo.
3694 * i387-tdep.c (i387_supply_xsave): Fix typo.
3695
2ab95328
TT
36962011-07-11 Tom Tromey <tromey@redhat.com>
3697
3698 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3699 (read_file_scope, read_type_unit_scope): Use it.
3700
04ad99e6
JK
37012011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3702
3703 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3704 `int'.
3705
713389e0
PM
37062011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3707
3708 PR python/12438
3709 * python/python.c: Set gdbpy_should_print_stack default to off.
3710 (set_python): Deprecate maint set python print-stack to
3711 class_deprecate.
3712 (_initialize_python): Deprecate maint set/show python print-stack.
3713 Add new prefix command, python. Add new setting, print-backtrace.
3714 * NEWS: Document set python print-stack. Document default change.
3715
754eadd1
PM
37162011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3717
3718 * python/py-inferior.c (infpy_dealloc): New function.
3719 (inferior_to_inferior_object): Return a new object, or a
3720 new reference to the existing object.
3721 (find_thread_object): Cleanup references to inferior.
3722 (delete_thread_object): Ditto.
3723 * python/py-infthread.c (create_thread_object): Do not increment
3724 inferior reference count.
3725
5e44ecb3
TT
37262011-07-08 Tom Tromey <tromey@redhat.com>
3727
3728 * dwarf2loc.c (locexpr_regname): New function.
3729 (locexpr_describe_location_piece): Use it.
3730 (disassemble_dwarf_expression): Add per_cu argument. Use
3731 locexpr_regname.
3732 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3733 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3734 New cases.
3735 (locexpr_describe_location_1): Add per_cu argument.
3736 (locexpr_describe_location): Update.
3737 (loclist_describe_location): Update.
3738
e0e9434c
TT
37392011-07-08 Tom Tromey <tromey@redhat.com>
3740
3741 * dwarf2expr.c (execute_stack_op): Add QUIT.
3742
26afc0d7
HZ
37432011-07-07 Hui Zhu <teawater@gmail.com>
3744
3745 Revert:
3746 2011-07-06 Hui Zhu <teawater@gmail.com>
3747 * remote.c (remote_start_remote): Add TRY_CATCH for
3748 remote_get_trace_status.
3749 * tracepoint.c (disconnect_tracing): Ditto.
3750
a40a111f
AB
37512011-07-07 Andrew Burgess <aburgess@broadcom.com>
3752
3753 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3754 variables as signed, not unsigned.
3755
e2bd3b15
JB
37562011-07-06 Joel Brobecker <brobecker@adacore.com>
3757
3758 * jit.c (jit_inferior_init): Reformat forward declaration.
3759
e3d961fe 37602011-07-06 Matt Rice <ratmice@gmail.com>
3761
3762 * MAINTAINERS (Write After Approval): Add myself to the list.
3763
0f3428f0
HZ
37642011-07-06 Hui Zhu <teawater@gmail.com>
3765
3766 * remote.c (remote_start_remote): Add TRY_CATCH for
3767 remote_get_trace_status.
3768 * tracepoint.c (disconnect_tracing): Ditto.
3769
fc9f3a69
TT
37702011-07-05 Tom Tromey <tromey@redhat.com>
3771
3772 * symtab.c (operator_chars): Now static.
3773 * linespec.c (operator_chars): Don't declare.
3774
26e519b9
TJB
37752011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3776
3777 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3778
eb2a6f42
TT
37792011-07-05 Tom Tromey <tromey@redhat.com>
3780
3781 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3782 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3783 (TYPE_CPLUS_REALLY_JAVA): New macro.
3784 * dwarf2read.c (process_structure_scope): Set
3785 TYPE_CPLUS_REALLY_JAVA.
3786
21083d0f 37872011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3788
3789 * ada-lang.c: Fix typos.
3790 * amd64-tdep.c: Likewise.
3791 * breakpoint.c: Likewise.
3792 * cli/cli-decode.c: Likewise.
3793 * findcmd.c: Likewise.
3794 * inline-frame.c: Likewise.
3795 * mi/mi-main.c: Likewise.
3796 * minsyms.c: Likewise.
3797 * monitor.c: Likewise.
3798 * monitor.h: Likewise.
3799 * prologue-value.c: Likewise.
3800 * reverse.c: Likewise.
3801 * s390-tdep.c: Likewise.
3802
3b2a0cf2
JB
38032011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3804
3805 * jit.c (jit_inferior_init): Forward declare.
3806 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3807
efae1d92
JB
38082011-07-04 Joel Brobecker <brobecker@adacore.com>
3809
3810 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3811
6040a59d
JB
38122011-07-04 Tristan Gingold <gingold@adacore.com>
3813
3814 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3815 (tcb_fieldno): Add activation_link field.
3816 (get_known_tasks_addr): Moved and rewritten.
3817 (get_tcb_types_info): Set activation_link field.
3818 (read_known_tasks_array): Add parameter. Rewritten.
3819 (read_known_tasks_list): New function.
3820 (read_known_tasks): New function.
3821 (ada_build_task_list): Call read_known_tasks instead of
3822 read_known_tasks_array.
3823 * ravenscar-thread.c: Add first_task_name constant.
3824 (has_ravenscar_runtime): Check for task list too.
3825
cb741e45
JB
38262011-07-04 Tristan Gingold <gingold@adacore.com>
3827
3828 * ada-tasks.c: Renames fieldno to actb_fieldno.
3829 (ada_get_task_number): Indentation.
3830 (get_tcb_types_info): Remove all parameters. Write directly
3831 the globals.
3832 (ptid_from_atcb_common): Adjust.
3833 (read_atcb): Adjust.
3834
7475b06c
TJB
38352011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3836
3837 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3838
15230f37
TJB
38392011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3840
3841 * ui-out.c (ui_out_field_core_addr): Mention that the function
3842 description is in the header file.
3843 * ui-out.h (ui_out_field_core_addr): Document function.
3844
65743aba
TJB
38452011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3846
3847 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3848 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3849
c37a5aab
TJB
38502011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3851
3852 * symtab.c (expand_line_sal): Remove empty line.
3853
59adf69e
TS
38542011-07-04 Thomas Schwinge <thomas@schwinge.name>
3855
3856 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3857 same way as ELFOSABI_NONE.
3858 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3859
e5dd4106
TJB
38602011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3861
3862 * breakpoint.c: Fix typos in comments.
3863 * linespec.c: Likewise.
3864 * symtab.c: Likewise.
3865
d40102a1
JB
38662011-07-04 Joel Brobecker <brobecker@adacore.com>
3867
3868 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3869 section in separate object files.
3870
2f741504
JK
38712011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3872
3873 Fix false GCC warning.
3874 * linespec.c (decode_line_1): Initialize values.
3875
418c7cf7
JK
38762011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3877
3878 * linespec.c (find_method): Accept the function type automatically only
3879 if it was specified with parameter types.
3880
3d50dd94
JK
38812011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3882
3883 Stop on first linespec terminator instead of eating what we can.
3884 * linespec.c (is_linespec_boundary): New function.
3885 (name_end): Remove function.
3886 (keep_name_info): New parameter on_boundary, replace the body.
3887 (decode_line_1): Provide the parameter to keep_name_info.
3888 (decode_compound): Likewise. Drop the trailing java return type
3889 handling. Twice.
3890
dcf9f4ab
JK
38912011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3892
3893 Fall back linespec to minimal symbols.
3894 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3895 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3896 (find_method, symbol_found): Change error to cplusplus_error.
3897
3f542ed1
JK
38982011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3899
bc68c4e5 3900 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 3901
900e11f9
JK
39022011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3903 Tom Tromey <tromey@redhat.com>
3904
3905 * dwarf2read.c (check_physname): New variable.
3906 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3907 (show_check_physname): New function.
3908 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3909
2301925d
JB
39102011-07-01 Joel Brobecker <brobecker@adacore.com>
3911
3912 * machoread.c (macho_symfile_read): Delete OBE comment.
3913
38947cca
JB
39142011-07-01 Joel Brobecker <brobecker@adacore.com>
3915
3916 * machoread.c (struct macho_oso_data): Delete.
3917 (current_oso): Delete.
3918 (macho_relocate_common_syms): New function, mostly extracted
3919 out of
3920 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3921 Remove code that sets and unset current_oso.
3922 (macho_symfile_relocate): Delete handling of common symbols,
3923 now moved to macho_relocate_common_syms.
3924
a7aa0d73
JB
39252011-07-01 Joel Brobecker <brobecker@adacore.com>
3926
3927 * darwin-nat.c (darwin_ptrace): Add documentation.
3928 Set errno to zero before calling ptrace. If ptrace returns
3929 -1 and errno is zero, then change then return zero.
3930 (darwin_kill_inferior): Issue a warning instead of triggering
3931 a failed assertion when the PT_KILL ptrace operations returned
3932 nonzero.
3933
5e9bc145
JB
39342011-07-01 Joel Brobecker <brobecker@adacore.com>
3935
3936 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3937 only when inf->private->no_ptrace.
3938
00eb2c4a
JB
39392011-07-01 Joel Brobecker <brobecker@adacore.com>
3940
3941 * ada-lang.c (print_it_exception): Print temporary catchpoints
3942 as "Temporary catchpoint".
3943 (print_mention_exception): Likewise.
3944
127c81bc
TT
39452011-07-01 Tom Tromey <tromey@redhat.com>
3946
3947 * jv-lang.c (java_language_defn): Use java_printchar,
3948 java_printstr.
3949 (java_get_encoding): New function.
3950 (java_emit_char): Use generic_emit_char.
3951 (java_printchar): New function.
3952 (java_printstr): Likewise.
3953
25552254
JB
39542011-07-01 Joel Brobecker <brobecker@adacore.com>
3955
3956 * ada-typeprint.c (print_record_type): If unable to decode
3957 the name of the parent type, use the encoded name.
3958
d2d43431
JB
39592011-07-01 Jean-Charles Delay <delay@adacore.com>
3960
3961 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3962 pointer to constrained packed array type output.
3963 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3964 packed array output.
3965
54ae186f
JB
39662011-07-01 Jean-Charles Delay <delay@adacore.com>
3967
3968 * ada-typeprint.c (print_array_type): removed if condition on show
3969 being negative for bounds printing.
3970
8f17729f
JB
39712011-07-01 Joel Brobecker <brobecker@adacore.com>
3972
3973 * ada-lang.c (ada_identical_enum_types_p): New function.
3974 (symbols_are_identical_enums): New function.
3975 (remove_extra_symbols): Do nothing if NSYMS < 2.
3976 Use symbols_are_identical_enums.
3977
f5aa6869
JB
39782011-07-01 Joel Brobecker <brobecker@adacore.com>
3979
3980 * ada-valprint.c (ada_value_print): Handle typedefs.
3981
8f465ea7
JB
39822011-07-01 Joel Brobecker <brobecker@adacore.com>
3983
3984 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3985
828292f2
JB
39862011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3987
3988 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3989 (decode_constrained_packed_array): Likewise.
3990 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3991
18920c42
JB
39922011-07-01 Joel Brobecker <brobecker@adacore.com>
3993
3994 * ada-exp.y (convert_char_literal): Handle typedef types.
3995
c90092fe
JB
39962011-07-01 Joel Brobecker <brobecker@adacore.com>
3997
3998 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3999
f748fb40
TT
40002011-06-30 Tom Tromey <tromey@redhat.com>
4001
4002 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4003 * valops.c (find_overload_match): Call do_cleanups on early exit
4004 path.
4005 * solib.c (solib_find): Call do_cleanups on early exit path.
4006
3bb47e8b
TT
40072011-06-30 Tom Tromey <tromey@redhat.com>
4008
4009 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4010 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4011 return paths. Defer final do_cleanups until last return.
4012 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4013 early return.
4014
4727bad3
TT
40152011-06-30 Tom Tromey <tromey@redhat.com>
4016
4017 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4018
bb361dbf
AB
40192011-06-30 Andrew Burgess <aburgess@broadcom.com>
4020
4021 * MAINTAINERS (Write After Approval): Add myself to the list.
4022
e0d00bc7
JK
40232011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4024
4025 Disable epilogue unwinders on recent GCCs.
4026 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4027 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4028 * dwarf2read.c (process_full_comp_unit): Initialize
4029 EPILOGUE_UNWIND_VALID.
4030 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4031 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4032 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4033
4632c0d0
JK
40342011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4035
4036 Code cleanup - reformatting.
4037 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4038 (producer_is_gcc_ge_4): ... here, change the return value.
4039 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4040 interpretation.
4041
32019081
JK
40422011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 Fix non-only rename list for Fortran modules import.
4045 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4046 cp_add_using_directive caller.
4047 (cp_add_using_directive): New parameter excludes, describe it. New
4048 variables ix and param. Compare if also excludes match. Allocate NEW
4049 with variable size, initialize EXCLUDES there.
4050 (cp_lookup_symbol_imports): New variable excludep, test
4051 current->EXCLUDES with it.
4052 * cp-support.h: Include vec.h.
4053 (struct using_direct): New field excludes, describe it.
4054 (DEF_VEC_P (const_char_ptr)): New.
4055 (cp_add_using_directive): New parameter excludes.
4056 * defs.h (const_char_ptr): New typedef.
4057 * dwarf2read.c (read_import_statement): New variables child_die,
4058 excludes and cleanups, read in excludes.
4059 (read_namespace): Adjust the cp_add_using_directive caller.
4060
70c622a3
JK
40612011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4062
4063 Code cleanup.
4064 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4065 negative comparisons.
4066
39c4d40a
TT
40672011-06-29 André Pönitz <andre.poenitz@nokia.com>
4068
4069 * mi/mi-main.c (mi_cmd_list_features): Emit
4070 breakpoint-notifications.
4071
3b2b8fea
TT
40722011-06-29 Tom Tromey <tromey@redhat.com>
4073
4074 PR fortran/10036:
4075 * valprint.h (generic_emit_char, generic_printstr): Declare.
4076 * valprint.c (wchar_printable, append_string_as_wide)
4077 (print_wchar): Move from c-lang.c.
4078 (generic_emit_char): New function; mostly taken from c_emit_char.
4079 (generic_printstr): New function; mostly taken from c_printstr.
4080 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4081 represented as arrays.
4082 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4083 type.
4084 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4085 identically to TYPE_CODE_INT.
4086 * f-lang.c (f_get_encoding): New function.
4087 (f_emit_char): Use generic_emit_char.
4088 (f_printchar): Replace comment.
4089 (f_printstr): Use generic_printstr.
4090 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4091 "character" types specially.
4092 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4093 for Fortran.
4094 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4095 Move to valprint.c
4096 (c_emit_char): Call generic_emit_char.
4097 (c_printstr): Call generic_printstr.
4098
168e6d44
GB
40992011-06-29 Gary Benson <gbenson@redhat.com>
4100
4101 * breakpoint.c (bpstat_what): Removed duplicated case.
4102
1c033f8c
TT
41032011-06-28 Tom Tromey <tromey@redhat.com>
4104
4105 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4106
5fe41fbf
TT
41072011-06-27 Tom Tromey <tromey@redhat.com>
4108
4109 * valops.c (find_overload_match): Call do_cleanups before early
4110 return.
4111 * top.c (execute_command): Call do_cleanups before early return.
4112 (command_loop): Likewise.
4113 * stack.c (backtrace_command): Make a null cleanup early. Don't
4114 conditionally call do_cleanups.
4115 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4116 TRY_CATCH.
4117 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4118 so cleanups are always run.
4119 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4120 * findcmd.c (parse_find_args): Call do_cleanups on early return
4121 path.
4122 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4123 Don't conditionally call do_cleanups.
4124 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4125 later.
4126
e26bd57d
EB
41272011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4128
4129 * MAINTAINERS (Write After Approval): Use default email address.
4130
6c3097fc
JB
41312011-06-27 Joel Brobecker <brobecker@adacore.com>
4132
4133 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4134
369c397b
JB
41352011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4136
4137 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4138 saved_regs_mask and copied_regs_mask fields.
4139 (sparc_record_save_insn): New prototype.
4140 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4141 (sparc_record_save_insn): New function.
4142 (sparc_analyze_prologue): Add head comment. Recognize store insns
4143 of call-saved registers. Use OFFSET consistently. Recognize flat
4144 frames and cache their settings.
4145 (sparc32_skip_prologue): Handle flat frames.
4146 (sparc_frame_cache): Add frame_offset to the base address.
4147 (sparc32_frame_cache): Adjust to new frame description.
4148 (sparc32_frame_prev_register): Likewise.
4149 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4150 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4151 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4152 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4153 frame by calling sparc_record_save_insn.
4154 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4155 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4156 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4157
b315ab21
TG
41582011-06-27 Tristan Gingold <gingold@adacore.com>
4159
4160 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4161 field by map_addr and map_len.
4162 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4163 (munmap_section_buffer): Likewise.
4164
ddd49eee
TT
41652011-06-24 Tom Tromey <tromey@redhat.com>
4166
4167 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4168 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4169 * python/python.c (gdbpy_parameter): Make 'arg' const.
4170 (execute_gdb_command): Likewise.
4171 (gdbpy_decode_line): Likewise. Copy it.
4172 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4173 (gdbpy_write): Make 'arg' const.
4174 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4175 const.
4176 (gdbpy_lookup_type): Likewise.
4177 * python/py-prettyprint.c (print_children): Make 'name' const.
4178 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4179 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4180 Py_ssize_t.
4181 * python/py-function.c (fnpy_init): Make 'name' const.
4182 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4183 (gdbpy_string_to_argv): Make 'input' const.
4184 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4185 it.
4186 * gdbtypes.h (lookup_typename): Update.
4187 * gdbtypes.c (lookup_typename): Make 'name' const.
4188 (lookup_struct): Likewise.
4189 (lookup_union): Likewise.
4190 (lookup_enum): Likewise.
4191
5998129b
TT
41922011-06-24 Tom Tromey <tromey@redhat.com>
4193
4194 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4195 gdb_thread_db.h. Move all common/ entries to be together.
4196 (TAGS): Don't depend on DEPFILES.
4197
6e586cc5
YQ
41982011-06-23 Yao Qi <yao@codesourcery.com>
4199
4200 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4201 * remote.c (remote_start_remote): ... here.
4202 * monitor.c (monitor_open): ... here.
4203
86c3c1fc
AB
42042011-06-23 Andrew Burgess <aburgess@broadcom.com>
4205
4206 * gdbtypes.c (append_composite_type_field_aligned): Fix
4207 calculation of bit position based on alignment.
4208
28010a5d
PA
42092011-06-22 Pedro Alves <pedro@codesourcery.com>
4210
4211 * breakpoint.c (bpstat_stop_status): Call the check_status
4212 breakpoint_ops method.
4213 (print_one_breakpoint_location): Also print the condition for Ada
4214 exception catchpoints.
4215 (allocate_bp_location): New, factored out from
4216 allocate_bp_location.
4217 (allocate_bp_location): Adjust. Call the owner breakpoint's
4218 allocate_location method, if there is one.
4219 (free_bp_location): Call the locations's dtor method, if there is
4220 one.
4221 (init_raw_breakpoint_without_location): New breakpoint_ops
4222 parameter. Use it.
4223 (set_raw_breakpoint_without_location): Adjust.
4224 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4225 (set_raw_breakpoint): Adjust.
4226 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4227 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4228 re_set and check_status methods.
4229 (init_catchpoint): Don't memset, initialize thread, addr_string
4230 and enable_state. Pass the ops down to init_raw_breakpoint.
4231 (install_catchpoint): Rename to ...
4232 (install_breakpoint): ... this, and make extern.
4233 (create_fork_vfork_event_catchpoint): Adjust.
4234 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4235 re_set and check_status methods.
4236 (create_syscall_event_catchpoint): Adjust.
4237 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4238 (masked_watchpoint_breakpoint_ops): Install NULL
4239 allocate_location, re_set and check_status methods.
4240 (catch_exec_command_1): Adjust.
4241 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4242 re_set and check_status methods.
4243 (create_ada_exception_breakpoint): Rename to ...
4244 (init_ada_exception_breakpoint): ... this. Add a struct
4245 breakpoint parameter, and delete the exp_string, cond_string and
4246 cond parameters. Use init_raw_breakpoint, and don't install or
4247 mention the breakpoint yet. Don't clear breakpoint fields that
4248 init_raw_breakpoint already clears.
4249 (re_set_breakpoint): Delete, split into ...
4250 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4251 functions.
4252 (breakpoint_re_set_one): Call the breakpoint's
4253 breakpoint_ops->re_set implementation, if there's one. Adjust.
4254 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4255 (struct bp_location_ops): New type.
4256 (struct bp_location): New field `ops'.
4257 (struct breakpoint_ops): New `allocate_location', `re_set' and
4258 `check_status' fields. Make `breakpoint_hit''s description match
4259 reality.
4260 (init_bp_location): Declare.
4261 (breakpoint_re_set_default): Declare.
4262 (create_ada_exception_breakpoint): Rename to ...
4263 (init_ada_exception_breakpoint): ... this. Add a struct
4264 breakpoint parameter, and delete the exp_string, cond_string and
4265 cond parameters.
4266 (install_breakpoint): Declare.
4267 * ada-lang.c: Include exceptions.h.
4268 <Ada exceptions description>: Update.
4269 (struct ada_catchpoint_location): New type.
4270 (ada_catchpoint_location_dtor): New function.
4271 (ada_catchpoint_location_ops): New global.
4272 (ada_catchpoint): New type.
4273 (create_excep_cond_exprs): New function.
4274 (dtor_exception, allocate_location_exception, re_set_exception)
4275 (should_stop_exception, check_status_exception): New functions.
4276 (print_one_exception, print_mention_exception)
4277 (print_recreate_exception): Adjust.
4278 (dtor_catch_exception, allocate_location_catch_exception)
4279 (re_set_catch_exception, check_status_catch_exception): New
4280 functions.
4281 (catch_exception_breakpoint_ops): Install them.
4282 (dtor_catch_exception_unhandled)
4283 (allocate_location_catch_exception_unhandled)
4284 (re_set_catch_exception_unhandled)
4285 (check_status_catch_exception_unhandled): New functions.
4286 (catch_exception_unhandled_breakpoint_ops): Install them.
4287 (dtor_catch_assert, allocate_location_catch_assert)
4288 (re_set_catch_assert, check_status_catch_assert): New functions.
4289 (catch_assert_breakpoint_ops): Install them.
4290 (ada_exception_catchpoint_p): Delete.
4291 (catch_ada_exception_command_split)
4292 (ada_exception_catchpoint_cond_string): Rename exp_string
4293 parameter to excep_string. Adjust.
4294 (ada_parse_catchpoint_condition): Delete.
4295 (ada_exception_sal): Rename the exp_string parameter to
4296 excep_string. Delete the cond_string and cond parameters.
4297 Adjust.
4298 (ada_decode_exception_location): Rename the exp_string parameter
4299 to excep_string. Delete the cond_string and cond parameters.
4300 Adjust.
4301 (create_ada_exception_catchpoint): New function.
4302 (catch_ada_exception_command, ada_decode_assert_location)
4303 (catch_assert_command): Adjust.
4304 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4305
9ac4176b
PA
43062011-06-22 Pedro Alves <pedro@codesourcery.com>
4307
4308 * ada-lang.c: Include arch-utils.h.
4309 (ada_decode_exception_location): Make static.
4310 (catch_ada_exception_command): Moved here from breakpoint.c.
4311 (ada_decode_assert_location): Make static.
4312 (catch_assert_command): Moved here from breakpoint.c.
4313 (_initialize_ada_lang): Install the exception and assert
4314 catchpoint commands here.
4315 * ada-lang.h (ada_decode_exception_location)
4316 (ada_decode_assert_location): Delete declarations.
4317 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4318 breakpoint.h.
4319 (create_ada_exception_breakpoint): Make extern.
4320 (catch_ada_exception_command, catch_assert_command): Moved to
4321 ada-lang.c.
4322 (add_catch_command): Make extern.
4323 (_initilize_breakpoint): Don't install the exception and assert
4324 catchpoint commands here.
4325 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4326 breakpoint.c
4327 (add_catch_command, create_ada_exception_breakpoint): Declare.
4328
c56053d2
PA
43292011-06-22 Pedro Alves <pedro@codesourcery.com>
4330
4331 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4332 the breakpoint to the breakpoint chain here.
4333 (set_raw_breakpoint_without_location): Add the breakpoint to the
4334 breakpoint chain here.
4335 (init_raw_breakpoint): Adjust comments.
4336 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4337 here.
4338 (init_catchpoint): Don't set the catchpoint's breakpoint number
4339 here.
4340 (install_catchpoint): New function.
4341 (create_fork_vfork_event_catchpoint)
4342 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4343 use install_catchpoint.
4344
d2f3fc74
PA
43452011-06-22 Pedro Alves <pedro@codesourcery.com>
4346
4347 * breakpoint.c (create_catchpoint_without_mention)
4348 (create_catchpoint): Delete.
4349
b4d90040
PA
43502011-06-22 Pedro Alves <pedro@codesourcery.com>
4351
4352 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4353 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4354 reference to exec_pathname.
4355 (struct exec_catchpoint): New type.
4356 (dtor_catch_exec): New function.
4357 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4358 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4359 (catch_exec_command_1): Adjust to use init_catchpoint.
4360 (delete_breakpoint): Remove reference to exec_pathname.
4361
be5c67c1
PA
43622011-06-22 Pedro Alves <pedro@codesourcery.com>
4363
4364 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4365 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4366 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4367 reference to syscalls_to_be_caught.
4368 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4369 NULL `dtor'.
4370 (struct syscall_catchpoint): New type.
4371 (dtor_catch_syscall): New function.
4372 (insert_catch_syscall, remove_catch_syscall)
4373 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4374 (print_recreate_catch_syscall): Adjust.
4375 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4376 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4377 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4378 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4379 (masked_watchpoint_breakpoint_ops)
4380 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4381 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4382 there is one. Remove references to syscalls_to_be_caught.
4383 (catching_syscall_number): Adjust.
4384 * ada-lang.c (catch_exception_breakpoint_ops)
4385 (catch_exception_unhandled_breakpoint_ops)
4386 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4387
e29a4733
PA
43882011-06-22 Pedro Alves <pedro@codesourcery.com>
4389
4390 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4391 field.
4392 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4393 reference to forked_inferior_pid.
4394 (struct fork_catchpoint): New type.
4395 (breakpoint_hit_catch_fork, print_it_catch_fork)
4396 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4397 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4398 (create_fork_vfork_event_catchpoint): Adjust to use
4399 init_catchpoint.
4400
346774a9
PA
44012011-06-22 Pedro Alves <pedro@codesourcery.com>
4402
4403 * breakpoint.c (add_to_breakpoint_chain)
4404 (init_raw_breakpoint_without_location): New functions, factored
4405 out from ...
4406 (set_raw_breakpoint_without_location): ... this one.
4407 (init_raw_breakpoint): New function, factored out from
4408 set_raw_breakpoint and adjusted to use
4409 init_raw_breakpoint_without_location.
4410 (set_raw_breakpoint): Adjust.
4411 (init_catchpoint): New function, factored out from
4412 create_catchpoint_without_mention and adjusted to use
4413 init_raw_breakpoint.
4414 (create_catchpoint_without_mention): Adjust.
4415
c38c4bc5
TT
44162011-06-22 Tom Tromey <tromey@redhat.com>
4417
4418 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4419 argument of 0 specially.
4420
b138ce37
YQ
44212011-06-22 Yao Qi <yao@codesourcery.com>
4422
4423 * infrun.c (handle_inferior_event): Remove write-only local variable
4424 `sw_single_step_trap_p'.
4425
03de6823
TT
44262011-06-20 Tom Tromey <tromey@redhat.com>
4427
4428 * symtab.c (lookup_language_this): End loop if block is NULL.
4429
66a17cb6
TT
44302011-06-17 Tom Tromey <tromey@redhat.com>
4431
4432 * valops.c (value_of_this): Use lookup_language_this.
4433 * symtab.h (lookup_language_this): Declare.
4434 * symtab.c (lookup_language_this): New function.
4435 (lookup_symbol_aux): Use lookup_language_this.
4436 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4437
7518bff5
TT
44382011-06-17 Tom Tromey <tromey@redhat.com>
4439
4440 * value.h (value_of_this): Update.
4441 (value_of_local): Remove.
4442 * valops.c (value_of_this): Rename from value_of_local. Change
4443 parameters.
4444 * p-exp.y (exp): Update.
4445 (variable): Likewise.
4446 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4447
aee28ec6
TT
44482011-06-17 Tom Tromey <tromey@redhat.com>
4449
4450 * valops.c (value_of_local): Complain if NAME is NULL.
4451 * std-operator.def (OP_OBJC_SELF): Remove.
4452 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4453 * objc-exp.y (name_not_typename): Use OP_THIS.
4454 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4455 name for "this".
4456 <OP_OBJC_SELF>: Remove.
4457 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4458
eed8f803
TG
44592011-06-16 Tristan Gingold <gingold@adacore.com>
4460
4461 * python/py-events.h (gdb_py_events): Make it extern.
4462 * python/py-evtregistry.c (gdb_py_events): Declare.
4463
864ac8a7
HZ
44642011-06-16 Hui Zhu <teawater@gmail.com>
4465
4466 * remote.c (remote_trace_set_readonly_regions): Add check for
4467 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4468 output warning.
4469
ef7e8358
UW
44702011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4471
4472 * arm-linux-tdep.c: Include "auxv.h".
4473 (AT_HWCAP): Define.
4474 (ARM_LINUX_SIZEOF_VFP): Define.
4475 (arm_linux_supply_vfp): New function.
4476 (arm_linux_collect_vfp): Likewise.
4477 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4478 (arm_linux_fpa_regset_sections): New variable.
4479 (arm_linux_vfp_regset_sections): Likewise.
4480 (arm_linux_core_read_description): New function.
4481 (arm_linux_init_abi): Install arm_linux_core_read_description and
4482 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4483 appropriate for the architecture.
4484 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4485 (tdesc_arm_with_m): Declare.
4486 (tdesc_arm_with_iwmmxt): Likewise.
4487 (tdesc_arm_with_vfpv2): Likewise.
4488 (tdesc_arm_with_vfpv3): Likewise.
4489 (tdesc_arm_with_neon): Likewise.
4490 * arm-linux-nat.c: Move features/*.c includes ...
4491 * arm-tdep.c: ... here.
4492 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4493 target description data structures ...
4494 * arm-tdep.c (_initialize_arm_tdep): ... here.
4495 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4496 HWCAP_VFPv3D16): Move definitions ...
4497 * arm-linux-tdep.h: ... here.
4498
c2fa21f1
HZ
44992011-06-15 Hui Zhu <teawater@gmail.com>
4500
4501 * remote.c (remote_trace_set_readonly_regions): Add a check for
4502 target_buf_size.
4503
dd707e8e
TT
45042011-06-14 Tom Tromey <tromey@redhat.com>
4505
4506 * coffread.c (coffread_objfile): Rename from current_objfile.
4507 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4508 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4509
86cc0029
TT
45102011-06-14 Tom Tromey <tromey@redhat.com>
4511
4512 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4513 (class_symtab): Remove.
4514 (jv_dynamics_progspace_key): New global.
4515 (jv_per_objfile_free): Reset program space data. Update assert.
4516 Don't clear globals.
4517 (get_dynamics_objfile): Use and set program space data.
4518 (get_java_class_symtab): Use get_dynamics_objfile.
4519 (add_class_symbol): Likewise.
4520 (java_link_class_type): Likewise.
4521 (java_object_type, jv_clear_object_type, set_java_object_type):
4522 Remove.
4523 (get_java_object_type): Update. Don't cache result.
4524 (is_object_type): Don't call set_java_object_type.
4525 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4526 initialize jv_dynamics_progspace_key.
4527
91a81f69
TT
45282011-06-14 Tom Tromey <tromey@redhat.com>
4529
4530 * symtab.h (current_objfile): Don't declare.
4531 * objfiles.h (current_objfile): Don't declare.
4532 * objfiles.c (current_objfile): Remove.
4533 * mdebugread.c (current_objfile): New file-scope global.
4534 * dbxread.c (current_objfile): New file-scope global.
4535 * coffread.c (current_objfile): New file-scope global.
4536
dc7eb48e
PA
45372011-06-13 Pedro Alves <pedro@codesourcery.com>
4538
4539 * top.h (line): Rename to ...
4540 (saved_command_line): ... this.
4541 (linesize): Rename to ...
4542 (saved_command_line_size): ... this.
4543 * top.c (line): Rename to ...
4544 (saved_command_line): ... this.
4545 (linesize): Rename to ...
4546 (saved_command_line_size): ... this.
4547 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4548 * event-top.c (command_line_handler): Adjust.
4549 * main.c (captured_main): Adjust.
4550
0d6c2135
MK
45512011-06-12 Mark Kettenis <kettenis@gnu.org>
4552
4553 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4554 get_frame_func instead of get_frame_pc to determine the code
4555 address used to construct the frame ID.
4556 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4557 (i386_epilogue_frame_this_id): Likewise.
4558 (i386_epilogue_frame_prev_register): New function.
4559 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4560 (i386_stack_tramp_frame_sniffer): Fix coding style.
4561 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4562 (i386_gdbarch_init): Fix comments.
4563
8bbdd3f4
MK
45642011-06-12 Mark Kettenis <kettenis@gnu.org>
4565
4566 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4567 instruction when walking back through the instruction stream.
4568
533a737e
JK
45692011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4570
4571 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4572 fullname parameters order.
4573
44b13c5a
JK
45742011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4575
4576 Code cleanup.
4577 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4578 for fun.
4579 * psymtab.c (map_symbol_filenames_psymtab)
4580 (map_partial_symbol_filenames): Likewise.
4581 * psymtab.h: Include symfile.h.
4582 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4583 * symfile.h (symbol_filename_ftype): New.
4584 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4585 map_symbol_filenames, clarify more the naming in comment.
4586
0b5574da
DE
45872011-06-07 Doug Evans <dje@google.com>
4588
4589 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4590 Look for ../../gdb, for fullname.exp.
0b5574da 4591
5be4dfca
JK
45922011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4593 Pedro Alves <pedro@codesourcery.com>
4594
4595 * cli/cli-cmds.c (shell_escape): Use waitpid.
4596 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4597
316a8b21
TG
45982011-06-07 Tristan Gingold <gingold@adacore.com>
4599
4600 * xcoffread.c (dwarf2_xcoff_names): New variable.
4601 (aix_process_linenos): Add a guard.
4602 (xcoff_symfile_finish): Free dwarf2.
4603 (xcoff_initial_scan): Add dwarf2 support.
4604
3dd5b83d
PA
46052011-06-06 Pedro Alves <pedro@codesourcery.com>
4606
4607 * infcall.c (run_inferior_call): Don't mask async. Instead force
4608 a synchronous wait, if the target can async.
4609
4610 * target.h (struct target_ops): Delete to_async_mask.
4611 (target_async_mask): Delete.
4612 * target.c (update_current_target): Delete references to to_async_mask.
4613 * linux-nat.c (linux_nat_async_mask_value): Delete.
4614 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4615 to linux_nat_async_mask_value.
4616 (linux_nat_async_mask): Delete.
4617 (linux_nat_async, linux_nat_close): Remove references to
4618 linux_nat_async_mask_value.
4619 * record.c (record_async_mask_value): Delete.
4620 (record_async): Remove references to record_async_mask_value.
4621 (record_async_mask): Delete.
4622 (record_can_async_p, record_is_async_p): Remove references to
4623 record_async_mask_value.
4624 (init_record_ops, init_record_core_ops): Remove references to
4625 record_async_mask.
4626 * remote.c (remote_async_mask_value): Delete.
4627 (init_remote_ops): Remove reference to remote_async_mask.
4628 (remote_can_async_p, remote_is_async_p): Remove references to
4629 remote_async_mask_value.
4630 (remote_async): Remove references to remote_async_mask_value.
4631 (remote_async_mask): Delete.
4632
4633 * infrun.c (fetch_inferior_event): Don't claim registers changed
4634 if the current thread is already not executing.
4635
64b9b334
JB
46362011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4637
4638 From Stephen Kitt <steve@sk2.org>
4639 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4640 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4641
325663dc
JB
46422011-06-03 Joel Brobecker <brobecker@adacore.com>
4643
4644 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4645 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4646
8cf64490
TT
46472011-06-03 Tom Tromey <tromey@redhat.com>
4648
4649 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4650 code fields.
4651 * python/py-exitedevent.c (create_exited_event_object): Change
4652 type of 'exit_code'. Optionally add exit_code attribute.
4653 (emit_exited_event): Change type of 'exit_code'.
4654 * python/py-event.h (emit_exited_event): Update.
4655 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4656 * infrun.c (handle_inferior_event): Set exit code fields on
4657 inferior.
4658 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4659 fields.
4660 * inferior.c (exit_inferior_1): Initialize new fields.
4661
8ddd9a20
TT
46622011-06-03 Tom Tromey <tromey@redhat.com>
4663
4664 * dwarf2expr.c (get_signed_type): New function.
4665 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4666
8dfd1e6d
KS
46672011-06-02 Keith Seitz <keiths@redhat.com>
4668
4669 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4670
65fdb766
PA
46712011-06-02 Pedro Alves <pedro@codesourcery.com>
4672
4673 * top.h (simplified_command_loop): Delete declaration.
4674
f4b8c29b
MF
46752011-06-01 Mike Frysinger <vapier@gentoo.org>
4676
4677 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4678 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4679
1706c199
YQ
46802011-06-01 Yao Qi <yao@codesourcery.com>
4681
4682 * objfiles.h (obj_section_addr): Update reference to objfile from
4683 `abfd' to `obfd'.
4684 (obj_section_endaddr): Likewise.
4685
d19cd713 46862011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4687
4688 * MAINTAINERS: Update my email address and affiliation. Also
4689 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4690
e8eb7bc5
KS
46912010-05-31 Keith Seitz <keiths@redhat.com>
4692
4693 PR c++/12750
4694 * linespec.c (get_search_block): New function.
4695 (find_methods): Add FILE_SYMTATB parameter and use it and
4696 get_search_block to pass an appropriate block to
4697 lookup_symbol_in_namespace.
4698 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4699 Check if *ARGPTR starts with a filename first.
4700 If it does, call locate_first_half again to locate the next
4701 "first half" of the linespec.
4702 Pass FILE_SYMTATB to decode_objc and decode_compound.
4703 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4704 (locate_first_half): Stop on the first colon seen.
4705 (decode_compound): Add FILE_SYMTAB parameter.
4706 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4707 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4708 get_search_block with lookup_symbol.
4709 (find_method): Add FILE_SYMTAB parameter and pass it to
4710 find_methods.
4711 (decode_objc): Use get_search_block.
4712
2b1dbab0
KS
47132010-05-31 Keith Seitz <keiths@redhat.com>
4714
4715 PR symtab/12704
4716 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4717 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4718 and CP_ANONYMOUS_NAMESPACE_LEN.
4719 (cp_is_anonymous): Likewise.
4720 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4721 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4722 * dwarf2read.c (namespace_name): Likewise.
4723 (fixup_partial_die): Likewise.
4724 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4725 seen in the input, keep it.
4726
6d549500
PA
47272011-05-30 Pedro Alves <pedro@codesourcery.com>
4728
4729 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4730 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4731 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4732 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4733 * remote.c (_initialize_remote): Register
4734 async_remote_interrupt_twice directly as
4735 sigint_remote_twice_token event.
4736
395bff70
PA
47372011-05-30 Pedro Alves <pedro@codesourcery.com>
4738
4739 * target.h (enum inferior_event_type): Delete INF_ERROR.
4740 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4741
97224164
PA
47422011-05-30 Pedro Alves <pedro@codesourcery.com>
4743
4744 * interps.c (interp_set): Don't cancel continuations.
4745
07e78767
JK
47462011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4749
fa4cd53f
PA
47502011-05-30 Pedro Alves <pedro@codesourcery.com>
4751
4752 * continuations.h (continuation_ftype): Add `err' parameter.
4753 Document parameters.
4754 (do_all_continuations, do_all_continuations_thread)
4755 (do_all_intermediate_continuations)
4756 (do_all_intermediate_continuations_thread)
4757 (do_all_inferior_continuations): Add `err' parameter.
4758 * continuations.c (do_my_continuations_1, do_my_continuations)
4759 (do_all_inferior_continuations, do_all_continuations_ptid)
4760 (do_all_continuations_thread_callback)
4761 (do_all_continuations_thread, do_all_continuations)
4762 (do_all_intermediate_continuations_thread_callback)
4763 (do_all_intermediate_continuations_thread)
4764 (do_all_intermediate_continuations): Add `err' parameter, and pass
4765 it down all the way to the continuations proper.
4766 * inf-loop.c (inferior_event_handler): If fetching an inferior
4767 event throws an error, don't pop the target, and still call the
4768 continuations, but with `err' set. Adjust all other continuation
4769 calls.
4770 * breakpoint.c (until_break_command_continuation): Add `err'
4771 parameter.
4772 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4773 issue another step if `err' is set.
4774 (struct until_next_continuation_args): New.
4775 (until_next_continuation): Add `err' parameter. Adjust.
4776 (until_next_command): Adjust.
4777 (struct finish_command_continuation_args): Add `thread' field.
4778 (finish_command_continuation): Add `err' parameter. Handle it.
4779 (finish_forward): Adjust.
4780 (attach_command_continuation): Add `err' parameter. Handle it.
4781 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4782 cancel the continuations.
4783 * interps.c (interp_set): Adjust to cancel the continuations.
4784 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4785 continuations rather than discarding.
4786 (free_thread): Don't clear thread inferior resources here.
4787 (delete_thread_1): Do it here instead. And do it before removing
4788 the thread from the threads list. Tag the thread as exited before
4789 clearing thread inferior resources.
4790
c2949be0
JB
47912011-05-30 Joel Brobecker <brobecker@adacore.com>
4792
4793 * infcall.c (call_function_by_hand): Rephrase error message.
4794
619cebe8
PA
47952011-05-27 Pedro Alves <pedro@codesourcery.com>
4796
4797 * defs.h (struct thread_info, struct inferior): Delete forward
4798 declarations.
4799 * breakpoint.h (struct thread_info): New forward declaration.
4800 * observer.sh (struct inferior): New forward declaration.
4801 * python/python-internal.h (struct inferior): New forward
4802 declaration.
4803
be34f849
PA
48042011-05-27 Pedro Alves <pedro@codesourcery.com>
4805
4806 * defs.h (struct continuation, continuation_ftype)
4807 (continuation_free_arg_ftype, add_continuation)
4808 (do_all_continuations, do_all_continuations_thread)
4809 (discard_all_continuations, discard_all_continuations_thread)
4810 (add_intermediate_continuation, do_all_intermediate_continuations)
4811 (do_all_intermediate_continuations_thread)
4812 (discard_all_intermediate_continuations)
4813 (discard_all_intermediate_continuations_thread)
4814 (add_inferior_continuation, do_all_inferior_continuations)
4815 (discard_all_inferior_continuations): Move to ...
4816 * continuations.h: ... this new file.
4817 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4818 infcmd.c, inferior.c, infrun.c, interps.c: Include
4819 continuations.h.
4820
432b4d03
JK
48212011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4822 Doug Evans <dje@google.com>
4823
4824 Fix PR 10970, PR 12702.
4825 * linux-nat.c (linux_lwp_is_zombie): New function.
4826 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4827 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4828
b0f260d6
PA
48292011-05-27 Pedro Alves <pedro@codesourcery.com>
4830
4831 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4832 typedefs.
4833 (add_continuation, add_intermediate_continuation)
4834 (add_inferior_continuation): Use them.
4835 * continuations.c (struct continuation): Use them.
4836 (make_continuation_ftype): Delete.
4837 (make_continuation, add_inferior_continuation, add_continuation)
4838 (add_intermediate_continuation): Use continuation_ftype and
4839 continuation_free_arg_ftype. Rename parameters to shorter names.
4840
af1e9a32
PA
48412011-05-27 Pedro Alves <pedro@codesourcery.com>
4842
4843 * continuations.c (make_continuation): Make it return void.
4844 (do_my_continuations): Rename to ...
4845 (do_my_continuations_1): ... this. Remove old_chain parameter and
4846 adjust.
4847 (do_my_continuations): New.
4848 (discard_my_continuations): Rename to ...
4849 (discard_my_continuations_1): ... this. Remove old_chain
4850 parameter and adjust.
4851 (discard_my_continuations): New.
4852 (add_inferior_continuation): Simplify.
4853 (do_all_inferior_continuations): Reimplement on top
4854 do_my_continuations.
4855 (discard_all_inferior_continuations): Simplify.
4856 (add_continuation): Simplify.
4857 (do_all_continuations_ptid): Simplify.
4858 (discard_all_continuations_thread_callback): Simplify.
4859 (add_intermediate_continuation): Simplify.
4860 (discard_all_intermediate_continuations_thread_callback):
4861 Simplify.
4862
50c0c017
PA
48632011-05-27 Pedro Alves <pedro@codesourcery.com>
4864
4865 * utils.c (struct continuation, add_continuation)
4866 (add_inferior_continuation)
4867 (do_all_inferior_continuations, discard_all_inferior_continuations)
4868 (restore_thread_cleanup, do_all_continuations_ptid)
4869 (do_all_continuations_thread_callback)
4870 (do_all_continuations_thread, do_all_continuations)
4871 (discard_all_continuations_thread_callback)
4872 (discard_all_continuations_thread, discard_all_continuations)
4873 (add_intermediate_continuation)
4874 (do_all_intermediate_continuations_thread_callback)
4875 (do_all_intermediate_continuations_thread)
4876 (do_all_intermediate_continuations)
4877 (discard_all_intermediate_continuations_thread_callback)
4878 (discard_all_intermediate_continuations_thread)
4879 (discard_all_intermediate_continuations): Move to ...
4880 * continuations.c: ... this new file, and adjust to no longer
4881 implement continuations on top of cleanups.
4882 * Makefile.in (SFILES): Add continuations.c.
4883 (COMMON_OBS): Add continuations.o.
4884
d8b34453
PA
48852011-05-26 Pedro Alves <pedro@codesourcery.com>
4886
4887 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4888 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4889 Internal error on invalid values.
4890 * reverse.c: Don't handle EXEC_ERROR.
4891 * mi/mi-main.c: Don't handle EXEC_ERROR.
4892
32231432
PA
48932011-05-26 Pedro Alves <pedro@codesourcery.com>
4894
4895 * record.c: Include event-loop.h, inf-loop.h.
4896 (record_beneath_to_async): New global.
4897 (tmp_to_async): New global.
4898 (record_async_inferior_event_token): New global.
4899 (record_open_1): Don't error out if async is enabled.
4900 (record_open): Handle to_async. Create an async event source in
4901 the event loop.
4902 (record_close): Delete the async event source.
4903 (record_resumed): New global.
4904 (record_execution_dir): New global.
4905 (record_resume, record_core_resume): Set them. Register the
4906 target on the event loop.
4907 (record_wait): Rename to ...
4908 (record_wait_1): ... this. Add more debug output. Handle
4909 TARGET_WNOHANG, and the target beneath returning
4910 TARGET_WAITKIND_IGNORE.
4911 (record_wait): Reimplement on top of record_wait_1.
4912 (record_async_mask_value): New global.
4913 (record_async, record_async_mask, record_can_async_p)
4914 (record_is_async_p, record_execution_direction): New functions.
4915 (init_record_ops, init_record_core_ops): Install new methods.
4916 * infrun.c (fetch_inferior_event): Temporarily switch the global
4917 execution direction to the direction the target was going.
4918 (execution_direction): Change type to int.
4919 * target.c (default_execution_direction): New function.
4920 (update_current_target): Inherit and de_fault
4921 to_execution_direction.
4922 * target.h (struct target_ops) <to_execution_direction>: New
4923 field.
4924 (target_execution_direction): New macro.
4925 * inferior.h (execution_direction): Change type to int.
4926
949dc678
PA
49272011-05-26 Pedro Alves <pedro@codesourcery.com>
4928
4929 * infcall.c (call_function_by_hand): Don't allow calling functions
4930 in reverse execution mode.
4931
c13bd2b5
PA
49322011-05-26 Pedro Alves <pedro@codesourcery.com>
4933
4934 * infcmd.c (finish_command): Allow async finish in reverse.
4935
6938fd34
YQ
49362011-05-26 Yao Qi <yao@codesourcery.com>
4937
4938 * gdb_thread_db.h: Delete. Move to ...
4939 * common/gdb_thread_db.h: ... here.
4940
9da8c2a0
PA
49412011-05-26 Pedro Alves <pedro@codesourcery.com>
4942
4943 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4944 function's entry point instead of a manually managed momentary
4945 breakpoint, and only ever issue one proceed call.
4946 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4947 doing a reverse-finish, switch to stepi mode, to do another step.
4948 (insert_step_resume_breakpoint_at_sal): Make public.
4949 (normal_stop): No need to save function value return registers if
4950 going reverse.
4951 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4952
2c03e5be
PA
49532011-05-26 Pedro Alves <pedro@codesourcery.com>
4954
4955 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4956 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4957 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4958 at the end.
4959 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4960 step-resume breakpoints.
4961 (print_it_typical): Handle bp_hp_step_resume.
4962 (bpstat_what): Ditto.
4963 (bptype_string): Ditto.
4964 (print_one_breakpoint_location): Ditto.
4965 (allocate_bp_location): Ditto.
4966 (mention): Ditto.
4967 (breakpoint_re_set_one): Ditto.
4968 * infrun.c (handle_inferior_event): Adjust. Split
4969 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4970 BPSTAT_WHAT_HP_STEP_RESUME.
4971 (insert_step_resume_breakpoint_at_sal): Rename to ...
4972 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4973 parameter. Handle it.
4974 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4975 insert_step_resume_breakpoint_at_sal_1.
4976 (insert_step_resume_breakpoint_at_frame): Rename to ...
4977 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4978 set a high-priority step-resume breakpoint.
4979 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4980 (insert_step_resume_breakpoint_at_caller): Ditto.
4981
51be5b68
PA
49822011-05-26 Pedro Alves <pedro@codesourcery.com>
4983
4984 * breakpoint.c (iterate_over_related_breakpoints): New.
4985 (do_map_delete_breakpoint): New.
4986 (delete_command): Pass do_map_delete_breakpoint to
4987 map_breakpoint_numbers.
4988 (do_disable_breakpoint): New.
4989 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4990 breakpoints.
4991 (do_enable_breakpoint): Rename to ...
4992 (enable_breakpoint_disp): ... this.
4993 (enable_breakpoint): Adjust.
4994 (do_enable_breakpoint): New.
4995 (enable_once_breakpoint): Delete.
4996 (do_map_enable_breakpoint): New.
4997 (do_map_enable_once_breakpoint): New.
4998 (enable_once_command, enable_delete_command)
4999 (delete_trace_command): Iterate over the breakpoint's related
5000 breakpoints.
5001
4a1be8d2
PA
50022011-05-26 Pedro Alves <pedro@codesourcery.com>
5003
5004 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5005 for ALPHA_ZERO_REGNUM.
5006 (alpha_supply_int_regs): Explicitly supply zero as the value for
5007 ALPHA_ZERO_REGNUM in the register cache.
5008 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5009
59d70315
YQ
50102011-05-26 Yao Qi <yao@codesourcery.com>
5011
5012 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5013
251d32d9
TG
50142011-05-26 Tristan Gingold <gingold@adacore.com>
5015
5016 * symfile.h (struct dwarf2_section_names): New type.
5017 (struct dwarf2_debug_sections): New type.
5018 (dwarf2_has_info): Add parameter.
5019 * dwarf2read.c (dwarf2_elf_names): New variable.
5020 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5021 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5022 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5023 (dwarf2_has_info): Add names parameter. Pass names
5024 to dwarf2_locate_sections.
5025 (section_is_p): Rewrite using the names parameter.
5026 (dwarf2_locate_sections): Use section names from the names parameter.
5027 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5028 * elfread.c (read_psyms): Ditto.
5029 * machoread.c (macho_symfile_read): Ditto.
5030
652c71b4
AS
50312011-05-25 Andreas Schwab <schwab@redhat.com>
5032
5033 PR gdb/8677
5034 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5035
f17170e5
KS
50362011-05-24 Keith Seitz <keiths@redhat.com>
5037
5038 PR breakpoint/12803
5039 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5040 (decode_compound): Unconditionally call keep_name_info.
5041
cdac0397
PA
50422011-05-24 Pedro Alves <pedro@codesourcery.com>
5043
5044 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5045 scope, clear its command list.
5046 (map_breakpoint_numbers): Don't walk the related breakpoints list
5047 of each breakpoint.
5048
91d4fe3f
TT
50492011-05-24 Tom Tromey <tromey@redhat.com>
5050
5051 * MAINTAINERS: Move Jim Blandy to past maintainers.
5052
3017a003
TG
50532011-05-24 Tristan Gingold <gingold@adacore.com>
5054
5055 * symfile.h (enum dwarf2_section_enum): New type.
5056 (dwarf2_get_section_info): New prototype.
5057 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5058 section_name by sect. Use a switch to select the info.
5059 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5060 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5061
c91c8c16
PA
50622011-05-24 Pedro Alves <pedro@codesourcery.com>
5063
5064 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5065 shared library event breakpoint if there's no execution.
5066
77bc418a
TJB
50672011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5068
5069 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5070 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5071
c50491a7
TT
50722011-05-23 Tom Tromey <tromey@redhat.com>
5073
5074 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5075 NULL.
5076
6d64e6d4
DE
50772011-05-23 Doug Evans <dje@google.com>
5078
5079 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5080 entry for RuntimeError to doc string.
5081
2067c8d4
JG
50822011-05-23 Jerome Guitton <guitton@adacore.com>
5083
5084 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5085 sequence for probing loops.
5086
b136cd05
PA
50872011-05-23 Pedro Alves <pedro@codesourcery.com>
5088
5089 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5090 comment.
5091
22e74ef9
MK
50922011-05-21 Mark Kettenis <kettenis@gnu.org>
5093
5094 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5095 zero as the value for %g0 in the register cache.
5096 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5097 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5098
842951eb
PA
50992011-05-20 Pedro Alves <pedro@codesourcery.com>
5100
5101 * infrun.c (proceed): Set previous_inferior_ptid here.
5102 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5103 inferior_ptid, not null_ptid.
5104 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5105 (fetch_inferior_event): Nor here.
5106
46cf51e6
PA
51072011-05-20 Pedro Alves <pedro@codesourcery.com>
5108
5109 * inf-loop.c (inferior_event_handler): Only output a message if
5110 verbose.
5111
29ef4c46
LM
51122011-05-20 Luis Machado <lgustavo@codesourcery.com>
5113
5114 * MAINTAINERS: Update my e-mail address.
5115
f148b27e
PA
51162011-05-20 Pedro Alves <pedro@codesourcery.com>
5117
5118 * infrun.c (proceed): Switch the inferior event loop to
5119 INF_EXEC_COMPLETE if the target refused to resume from a
5120 vfork/fork.
5121
09cee04b
PA
51222011-05-20 Pedro Alves <pedro@codesourcery.com>
5123
5124 * infcmd.c: Include "inf-loop.h".
5125 (step_once): When stepping into an inline subroutine, pretend the
5126 target has run. If the target can async, switch the inferior
5127 event loop to INF_EXEC_COMPLETE.
5128 * inferior.h (user_visible_resume_ptid): Declare.
5129 * infrun.c (user_visible_resume_ptid): New function, factored out
5130 from `resume'.
5131 (resume): Use it.
5132 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5133 that the current thread is running. Merge async and sync
5134 branches.
5135
751b8ce1
PA
51362011-05-20 Pedro Alves <pedro@codesourcery.com>
5137
5138 * infcmd.c (step_1): Simplify synchronous case.
5139
e93a69ed
PA
51402011-05-20 Pedro Alves <pedro@codesourcery.com>
5141
5142 * tracepoint.c: Include exceptions.h.
5143 (TFILE_PID): Move higher in file.
5144 (tfile_open): Delay pushing the tfile target until we're assured
5145 the tfile header is present in the file. Wrap reading the initial
5146 newline-terminated lines in TRY_CATCH. Pop the target if the
5147 initial setup failed. Add the tfile's thread immediately
5148 aftwards, before any non-essential setup. Don't skip
5149 post_create_inferior if there are no traceframes present in the
5150 file.
5151 (tfile_close): Remove redundant check for null before xfree call.
5152 (tfile_thread_alive): New function.
5153 (init_tfile_ops): Register it as to_thread_alive callback.
5154
6823e2b1
PA
51552011-05-20 Pedro Alves <pedro@codesourcery.com>
5156
5157 * tracepoint.c (tfile_open): Delete #if 0'd code.
5158
b3c8eb43
JK
51592011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5160
5161 Fix -readnow for -gdwarf-4 unused type units.
5162 * dwarf2read.c (struct signatured_type): Remove the field offset.
5163 (create_signatured_type_table_from_index): Remove its initialization.
5164 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5165 instead. Add a complaint call.
5166 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5167 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5168 (lookup_signatured_type_at_offset, read_signatured_type)
5169 (write_one_signatured_type): Update the field for per_cu.
5170
310afc76
TT
51712011-05-19 Tom Tromey <tromey@redhat.com>
5172
5173 * python/py-inferior.c (python_inferior_exit): Use
5174 target_gdbarch.
5175 (python_on_resume): Likewise.
5176
cf6c5ffb
TT
51772011-05-19 Matt Rice <ratmice@gmail.com>
5178
5179 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5180
fb80a3c5
HZ
51812011-05-19 Hui Zhu <teawater@gmail.com>
5182
5183 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5184
3672b1be
HZ
51852011-05-19 Hui Zhu <teawater@gmail.com>
5186
5187 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5188
ff355380
TT
51892011-05-18 Tom Tromey <tromey@redhat.com>
5190
5191 * dwarf2read.c (dwarf2_add_field): Constify.
5192 * value.c (value_static_field): Constify.
5193 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5194 Now const.
5195 * ax-gdb.c (gen_static_field): Constify
5196
ed731959
JK
51972011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5198
5199 * linux-nat.c (kill_callback): Use SIGKILL first.
5200
967cff16
JB
52012011-05-18 Joel Brobecker <brobecker@adacore.com>
5202
5203 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5204
1d06ead6
TT
52052011-05-18 Tom Tromey <tromey@redhat.com>
5206
5207 * value.c (value_fn_field): Constify.
5208 * symtab.c (gdb_mangle_name): Constify.
5209 * stabsread.c (update_method_name_from_physname): Make 'physname'
5210 argument const.
5211 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5212 const. Use explicit fputc_filtered loop.
5213 (pascal_type_print_base): Constify.
5214 * p-lang.h (pascal_type_print_method_args): Update.
5215 * linespec.c (add_matching_methods): Constify.
5216 (add_constructors): Likewise.
5217 * jv-typeprint.c (java_type_print_base): Constify.
5218 * gdbtypes.h (struct cplus_struct_type)
5219 <fn_fieldlist.fn_field.physname>: Now const.
5220 * dwarf2read.c (compute_delayed_physnames): Constify.
5221 (dwarf2_add_member_fn): Likewise.
5222 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5223
0d9a9a5f
PA
52242011-05-18 Pedro Alves <pedro@codesourcery.com>
5225
5226 * infrun.c (resume): Mention which is the current thread, and its
5227 current PC in debug output.
5228 (prepare_to_proceed): Mention the thread switching in debug
5229 output.
5230
05386e9e
TT
52312011-05-18 Tom Tromey <tromey@redhat.com>
5232
5233 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5234 path check. Use xmalloc and cleanups.
5235 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5236
ee86786c
TT
52372011-05-17 Tom Tromey <tromey@redhat.com>
5238
5239 * cp-valprint.c (cp_print_value_fields): Catch errors from
5240 value_static_field.
5241
9ff3b74f
TT
52422011-05-17 Tom Tromey <tromey@redhat.com>
5243
5244 * dwarf2read.c (dwarf2_get_die_type): Call
5245 get_die_type_at_offset.
5246 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5247 get_base_type function.
5248
cd3da28e
PA
52492011-05-17 Tomas Martinec <fyzmat@gmail.com>
5250
5251 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5252 trap_expected.
5253
fd20d931
DE
52542011-05-16 Doug Evans <dje@google.com>
5255
5256 * python/py-auto-load.c (source_section_scripts): Mention objfile
5257 name in warning.
5258
75fc9810
DE
52592011-05-15 Doug Evans <dje@google.com>
5260
290351b8
DE
5261 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5262 (try_thread_db_load_from_pdir): Call it. If unable to find
5263 libthread_db in directory of libpthread, see if we're looking at
5264 the separate-debug-info copy.
5265
75fc9810
DE
5266 * python/py-autoload.c (print_script): Print "Missing" instead of
5267 "No" for missing scripts.
5268 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5269
9f7bc587
DE
52702011-05-13 Doug Evans <dje@google.com>
5271
5272 * ui-file.c (stdio_file_write_async_safe): Add comment.
5273
093cee7d
HZ
52742011-05-14 Hui Zhu <teawater@gmail.com>
5275
5276 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5277
dbaefcf7
DE
52782011-05-13 Doug Evans <dje@google.com>
5279
98a5dd13
DE
5280 Support $pdir and $sdir in libthread-db-search-path.
5281 * NEWS: Mention $sdir,$pdir.
5282 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5283 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5284 (try_thread_db_load_from_sdir): New function.
5285 (try_thread_db_load_from_dir): New function.
5286 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5287 system directories if search of libthread-db-search-path fails,
5288 that is now done via $sdir.
5289 (has_libpthread): New function.
5290 (thread_db_load): Remove search for libthread_db in directory of
5291 libpthread, that is now done via $pdir.
5292
dbaefcf7
DE
5293 * NEWS: Mention "info auto-load-scripts".
5294 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5295 script_not_found_warning_printed.
5296 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5297 all callers updated. Initialize script_not_found_warning_printed.
5298 (get_auto_load_pspace_data_for_loading): New function.
5299 (maybe_add_script): New function.
5300 (source_section_scripts): Simplify. Only print one warning regardless
5301 of the number of auto-load scripts not found.
5302 (clear_section_scripts): Clear script_not_found_warning_printed.
5303 (auto_load_objfile_script): Record script in hash table.
5304 (count_matching_scripts): New function.
5305 (maybe_print_script): Renamed from maybe_print_section_script, all
5306 callers updated. Rewrite to use ui_out_*.
5307 (info_auto_load_scripts): Renamed from
5308 maintenance_print_section_scripts, all callers updated.
5309 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5310 renamed as "info auto-load-scripts".
5311
9930639c
TT
53122011-05-13 Tom Tromey <tromey@redhat.com>
5313
5314 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5315 (read_sleb128): Likewise.
5316
06826322
TT
53172011-05-13 Tom Tromey <tromey@redhat.com>
5318
5319 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5320 offset display.
5321
01124a23
DE
53222011-05-13 Doug Evans <dje@google.com>
5323
5324 * linux-nat.c (debug_linux_nat_async): Delete.
5325 Replace all references to use debug_linux_nat instead.
5326 (show_debug_linux_nat_async): Delete.
5327 (sigchld_handler): Call ui_file_write_async_safe instead of
5328 fprintf_unfiltered.
5329 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5330 * ui-file.c (struct ui_file): New member to_write_async_safe.
5331 (null_file_write_async_safe): New function.
5332 (ui_file_write_async_safe): New function.
5333 (set_ui_file_write_async_safe): New function.
5334 (ui_file_new): Initialize to_write_async_safe.
5335 (stdio_file_write_async_safe): New function.
5336 (struct stdio_file): New member fd.
5337 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5338 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5339 fileno.
01124a23
DE
5340 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5341 (set_ui_file_write_async_safe): Declare.
5342 (ui_file_write_async_safe): Declare.
5343
72fc29ff
TT
53442011-05-13 Tom Tromey <tromey@redhat.com>
5345
5346 * utils.c (do_value_free): New function.
5347 (make_cleanup_value_free): Likewise.
5348 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5349 freeing correctly.
5350 (dwarf2_loc_desc_needs_frame): Call
5351 make_cleanup_value_free_to_mark.
5352 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5353 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5354 value_free_to_mark.
5355 (new_dwarf_expr_context): Don't call value_mark.
5356 * dwarf2-frame.c (execute_stack_op): Call
5357 make_cleanup_value_free_to_mark.
5358 * defs.h (make_cleanup_value_free): Declare.
5359
028d0ed5
TJB
53602011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5361
5362 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5363 prepare_execute_command.
5364 * top.c (prepare_execute_command): Return cleanup.
5365 (execute_command): Use cleanup from prepare_execute_command.
5366 * top.h (prepare_execute_command): Change prototype to return
5367 cleanup.
5368 * defs.h (struct value): Add opaque declaration.
5369 (make_cleanup_value_free_to_mark): Add prototype.
5370 * utils.c (do_value_free_to_mark): New function.
5371 (make_cleanup_value_free_to_mark): Likewise.
5372
b087e0ed
TT
53732011-05-12 Tom Tromey <tromey@redhat.com>
5374
5375 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5376 cast left-hand-side to unsigned.
5377
8a9b8146
TT
53782011-05-12 Tom Tromey <tromey@redhat.com>
5379
5380 PR gdb/12617:
5381 * value.h (value_from_contents): Declare.
5382 * value.c (value_from_contents): New function.
5383 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5384 (dwarf2_get_die_type): New function.
5385 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5386 (allocate_piece_closure): Acquire reference to values.
5387 (read_pieced_value): Update for value-based expressions.
5388 (write_pieced_value): Likewise.
5389 (free_pieced_value_closure): Call value_free as needed.
5390 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5391 Update for value-based expressions.
5392 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5393 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5394 <get_base_type>: New field.
5395 (struct dwarf_expr_piece) <v.value>: Change type.
5396 <v.regno>: New field.
5397 (struct dwarf_expr_context) <mark>: New field.
5398 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5399 (dwarf_expr_pop, dwarf_expr_push): Remove.
5400 (dwarf_expr_push_address): Declare.
5401 * dwarf2expr.c (dwarf_arch_cookie): New global.
5402 (struct dwarf_gdbarch_types): New.
5403 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5404 functions.
5405 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5406 static.
5407 (dwarf_expr_push_address): New function.
5408 (dwarf_expr_pop): Now static.
5409 (dwarf_expr_fetch): Change return type.
5410 (dwarf_require_integral): New function.
5411 (dwarf_expr_fetch): Simplify.
5412 (add_piece): Update.
5413 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5414 functions.
5415 (execute_stack_op) <sign_ext>: Remove.
5416 Use values for DWARF stack.
5417 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5418 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5419 New cases.
5420 (_initialize_dwarf2expr): New function.
5421 (add_piece): Update.
5422 (new_dwarf_expr_context): Set new field.
5423 (free_dwarf_expr_context): Call value_free_to_mark.
5424 * dwarf2-frame.c (no_base_type): New function.
5425 (execute_stack_op): Set get_base_type field. Update.
5426
e8d28ef4
TT
54272011-05-12 Tom Tromey <tromey@redhat.com>
5428
5429 * dwarf2read.c (read_common_block): Fix formatting.
5430
d248b706
KY
54312011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5432
5433 * breakpoint.c (disable_breakpoint): Disable all locations
5434 associated with a tracepoint on target if a trace experiment is
5435 running.
5436 (disable_command): Disable a specific tracepoint location on target if
5437 a trace experiment is running.
5438 (do_enable_breakpoint): Enable all locations associated with a
5439 tracepoint on target if a trace experiment is running.
5440 (enable_command) Enable a specific tracepoint location on target if a
5441 trace experiment is running.
5442 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5443 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5444 to_disable_tracepoint.
5445 * target.h: Add declaration of struct bp_location.
5446 (struct target_ops): Add new functions
5447 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5448 to_disable_tracepoint to target operations.
5449 (target_supports_enable_disable_tracepoint): New macro.
5450 (target_enable_tracepoint): New macro.
5451 (target_disable_tracepoint): New macro.
5452 * remote.c (struct remote_state): Add new field.
5453 (remote_enable_disable_tracepoint_feature): New.
5454 (remote_protocol_features): Add new entry.
5455 (remote_supports_enable_disable_tracepoint): New.
5456 (remote_enable_tracepoint): New.
5457 (remote_disable_tracepoint): New.
5458 (init_remote_ops): Add remote_enable_tracepoint,
5459 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5460 to remote operations.
5461 * tracepoint.c (start_tracing): Allow tracing to start without any
5462 tracepoints enabled with just a warning if they can be re-enabled
5463 later.
5464 * NEWS: Add news item for the new behaviour of the enable and disable
5465 GDB commands when applied to tracepoints.
5466 Add news items for the new remote packets QTEnable and QTDisable.
5467
cc88a640
JK
54682011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5469
5470 * config.in: Regenerate.
5471 * configure: Regenerate.
5472 * configure.ac <--with-system-readline> (for readline_echoing_p):
5473 Remove the test.
5474 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5475 (tui_old_rl_echoing_p): ... here.
5476 (tui_setup_io): Rename extern declaration readline_echoing_p to
5477 _rl_echoing_p. Adjust assignments for the both renames.
5478
1f84b619
TJB
54792011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5480
5481 * symtab.c (lookup_symtab): Run cleanup before returning.
5482
74ac6d43
TT
54832011-05-11 Tom Tromey <tromey@redhat.com>
5484
5485 * dwarf2read.c (handle_data_member_location): New function.
5486 (dwarf2_add_field): Use it.
5487 (read_common_block): Likewise.
5488
5488dafb
JK
54892011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5490
5491 Make addrs->SECTINDEX always defined.
5492 * symfile.c (relative_addr_info_to_section_offsets): Check for
5493 SECTINDEX -1, not for zero ADDR.
5494 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5495 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5496 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5497 on its validity.
5498
84e578fb
DE
54992011-05-10 Doug Evans <dje@google.com>
5500
2471d008
DE
5501 * linux-thread-db.c: Whitespace cleanup.
5502 (try_thread_db_load_1): Fix comment.
5503
84e578fb
DE
5504 * linux-thread-db.c (set_libthread_db_search_path): New function.
5505 (_initialize_thread_db): Add setter for libthread-db-search-path.
5506
673c2bbe
DE
55072011-05-09 Doug Evans <dje@google.com>
5508
478aac75
DE
5509 * NEWS: Mention --with-iconv-bin.
5510 * configure.ac: New option --with-iconv-bin.
5511 * configure: Regenerate.
5512 * config.in: Regenerate.
5513 * defs.h (relocate_gdb_directory): Declare.
5514 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5515 removed progname parameter, and exported. All callers updated.
5516 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5517
673c2bbe
DE
5518 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5519 adding missing call to restore_child_signals_mask.
5520
e4c8541f
PA
55212011-05-09 Pedro Alves <pedro@codesourcery.com>
5522
5523 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5524 parameter.
5525 * infrun.c (proceed, start_remote): Adjust.
5526 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5527 and adjust to not handle it.
5528 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5529 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5530 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5531 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5532 * windows-nat.c (do_initial_windows_stuff): Adjust.
5533 * infcmd.c (attach_command): Adjust.
5534 (notice_new_inferior): Adjust.
5535
a536c6d7
UW
55362011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5537
5538 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5539 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5540 * spu-tdep.c (op_selb): Use correct value.
5541
7845b013
UW
55422011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5543
5544 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5545 "parent" parameter to symbol_file_add_from_bfd call.
5546
9c06b0b4
TJB
55472011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5548 Thiago Jung Bauermann <bauerman@br.ibm.com>
5549
5550 Implement support for PowerPC BookE masked watchpoints.
5551 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5552 section.
5553 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5554 method. Initialize to NULL in all existing breakpoint_ops instances.
5555 (struct breakpoint) <hw_wp_mask>: New field.
5556 * breakpoint.c (is_masked_watchpoint): Add prototype.
5557 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5558 breakpoint's breakpoint_ops.works_in_software_mode if available.
5559 (watchpoints_triggered): Handle the case of a hardware masked
5560 watchpoint trigger.
5561 (watchpoint_check): Likewise.
5562 (works_in_software_mode_watchpoint): New function.
5563 (insert_masked_watchpoint, remove_masked_watchpoint)
5564 (resources_needed_masked_watchpoint)
5565 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5566 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5567 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5568 functions.
5569 (masked_watchpoint_breakpoint_ops): New structure.
5570 (watch_command_1): Check for the existence of the `mask' parameter.
5571 Set b->ops according to the type of hardware watchpoint being created.
5572 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5573 (ppc_linux_remove_mask_watchpoint)
5574 (ppc_linux_masked_watch_num_registers): New functions.
5575 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5576 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5577 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5578 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5579 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5580 (target_masked_watch_num_registers): New functions.
5581 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5582 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5583 methods.
5584 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5585 (target_masked_watch_num_registers): Add prototypes.
5586
8be455d7
JK
55872011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5588
5589 PR 12573
5590 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5591 (producer_is_gcc_ge_4_0): New function.
5592 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5593 symtab->language code.
5594 (var_decode_location): Set cu->has_loclist.
5595 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5596 skip. Intialize force_skip from locations_valid. Move the prologue
5597 skipping code into two passes.
5598 * symtab.h (struct symtab): Make the primary field a bitfield. New
5599 field locations_valid.
5600
d8228535
JK
56012011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5602
5603 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5604 (classify_inner_name): Call cp_lookup_nested_type with
5605 yylval.tsym.type.
5606 * cp-namespace.c (cp_lookup_nested_type): New variable
5607 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5608 type_name_no_tag_or_error with saved_parent_type.
5609 * dwarf2read.c (load_partial_dies): Read in any children of
5610 DW_TAG_typedef with complaint in such case.
5611 * gdbtypes.c (type_name_no_tag_or_error): New function.
5612 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5613 * valops.c (destructor_name_p): New comment for parameter type. Remove
5614 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5615 * value.h (destructor_name_p): Remove type const.
5616
1976171a
JK
56172011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5618
5619 * symtab.c (compare_symbol_name): New function.
5620 (completion_list_add_name, expand_partial_symbol_name): Call it,
5621 remove the variable ncmp.
5622 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5623 gdb_assert it.
5624
a9634178
TJB
56252011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5626
5627 Demote to sw watchpoint only in update_watchpoint.
5628 * breakpoint.c (update_watchpoint): Change between software and
5629 hardware watchpoint for all kinds of watchpoints, not just
5630 read/write ones. Determine b->exact value here instead of
5631 in watch_command_1. Error out if there are not enough resources
5632 for a read or access hardware watchpoint.
5633 (watch_command_1): Remove logic of checking whether there are
5634 enough resources available, since update_watchpoint will do that
5635 work now. Don't set b->exact here. Catch exceptions thrown by
5636 update_watchpoint and delete the watchpoint.
5637 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5638 Use target_exact_watchpoints instead.
5639 (delete_breakpoint): Notify observers only if deleted watchpoint
5640 has a breakpoint number assigned to it.
5641
4c67c798
JJ
56422011-05-05 Janis Johnson <janisjo@codesourcery.com>
5643
5644 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5645
a3fcb948
JG
56462011-05-05 Jerome Guitton <guitton@adacore.com>
5647
5648 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5649 New functions.
5650 (i386_stack_tramp_frame_unwind): New static global.
5651 (i386_match_pattern): New function, extracted from i386_match_insn.
5652 (i386_match_insn): Use i386_match_pattern.
5653 (i386_match_insn_block): New function.
5654 (i386_tramp_chain_in_reg_insns)
5655 (i386_tramp_chain_on_stack_insns): New static variables.
5656 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5657 of unwinders.
5658
4d393d60
JM
56592011-05-04 Joseph Myers <joseph@codesourcery.com>
5660
5661 * configure.host (xscale*): Don't handle target.
5662 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5663 handle targets.
5664
f70bd40b
YQ
56652011-05-04 Yao Qi <yao@codesourcery.com>
5666
5667 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5668
dd3295ee
JB
56692011-05-03 Joel Brobecker <brobecker@adacore.com>
5670
5671 Revert:
5672 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5673 | * elfread.c (elf_symtab_read): Stop memory leak.
5674
90375a0e
PM
56752011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5676
5677 * nto-tdep.c (nto_target): Replace deprecated call to
5678 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5679
d07205c2
JK
56802011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5681
5682 Fix false GCC warning.
5683 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5684
1e718ff1
TJB
56852011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5686
5687 * breakpoint.c (update_watchpoint): Move code to change
5688 the enable state of breakpoint from here ...
5689 (do_enable_breakpoint): ... to here.
5690
35bef4fd
TT
56912011-04-26 Andrew Gontarek <andrewg@cray.com>
5692
78290264
PP
5693 * valprint.c (val_print_array_elements): Fixed poor performance
5694 of printing very large arrays with repeat_count_threshold set
5695 to unlimited. New comment.
35bef4fd 5696
38a714bb
TT
56972011-04-29 Tom Tromey <tromey@redhat.com>
5698
5699 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5700 (mi_parse): Likewise.
5701 * breakpoint.c (break_range_command): Use sizeof char*, not
5702 char**.
5703 (create_breakpoint): Likewise.
5704 (parse_breakpoint_sals): Likewise.
5705
eb73ad13
PA
57062011-04-29 Pedro Alves <pedro@codesourcery.com>
5707
5708 * linux-nat.c (linux_child_remove_fork_catchpoint)
5709 (linux_child_remove_vfork_catchpoint)
5710 (linux_child_remove_exec_catchpoint): New functions.
5711 (linux_target_install_ops): Install them.
5712
d65aec65
PM
57132011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5714
5715 PR mi/12531
5716
5717 * varobj.c (install_default_visualizer): Do not install a
5718 visualizer if the varobj is CPLUS_FAKE_CHILD.
5719 (construct_visualizer): Likewise.
5720
165195f4
JK
57212011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5722
5723 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5724 case insensitive comparison.
5725
30852783
UW
57262011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5727
5728 * infrun.c (proceed): Revert previous change.
5729 (resume): Instead, handle the case of signal delivery while stepping
5730 off a breakpoint location here, and only if software single-stepping
5731 is used. Handle nested signals.
5732
7ff120b4
YQ
57332011-04-28 Yao Qi <yao@codesourcery.com>
5734
5735 * arm-tdep.c (copy_unmodified): Rename to ...
5736 (arm_copy_unmodified): .. this. New.
5737 (copy_preload): Move common part to ...
5738 (install_preload): .. this. New.
5739 (arm_copy_preload): New.
5740 (copy_preload_reg): Move common part to ...
5741 (install_preload_reg): ... this. New.
5742 (arm_copy_preload_reg): New.
5743 (copy_b_bl_blx): Move common part to ...
5744 (install_b_bl_blx): .. this. New.
5745 (arm_copy_b_bl_blx): New.
5746 (copy_bx_blx_reg): Move common part to ...
5747 (install_bx_blx_reg): ... this. New.
5748 (arm_copy_bx_blx_reg): New.
5749 (copy_alu_reg): Move common part to ...
5750 (install_alu_reg): ... this. New.
5751 (arm_copy_alu_reg): New.
5752 (copy_alu_shifted_reg): Move common part to ...
5753 (install_alu_shifted_reg): ... this. New.
5754 (copy_ldr_str_ldrb_strb): Move common part to ...
5755 (install_ldr_str_ldrb_strb): ... this. New.
5756 (arm_copy_ldr_str_ldrb_strb): New.
5757 (copy_copro_load_store): Move some common part to ...
5758 (install_copy_copro_load_store): ... this. New.
5759 (arm_copy_copro_load_store): New.
5760 (copy_svc): Delete.
5761 (arm_copy_svc): Renamed from copy_svc.
5762 (copy_undef): Delete.
5763 (arm_copy_undef): Renamed from copy_undef.
5764 (decode_ext_reg_ld_st): Delete.
5765 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5766 (decode_svc_copro): Delete.
5767 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5768 (copy_copro_load_store, copy_alu_imm): update callers.
5769 (copy_extra_ld_st, copy_block_xfer): Likewise.
5770 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5771 (decode_miscellaneous, decode_dp_misc): Likewise.
5772 (decode_ld_st_word_ubyte, decode_media): Likewise.
5773 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5774 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5775 (decode_unconditional, decode_miscellaneous): Likewise.
5776 (decode_media, decode_b_bl_ldmstm): Likewise.
5777 (arm_process_displaced_insn): Likewise..
5778 (decode_misc_memhint_neon): Delete.
5779 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5780 (decode_miscellaneous): Delete.
5781 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5782 (decode_dp_misc): Delete.
5783 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5784 (decode_ld_st_word_ubyte): Delete.
5785 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5786 (decode_media): Delete.
5787 (arm_decode_media): Renamed from decode_media.
5788 (decode_b_bl_ldmstm): Delete.
5789 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5790 (decode_ext_reg_ld_st): Delete.
5791 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5792 (decode_unconditional): Delete.
5793 (arm_decode_unconditional): Renamed from decode_unconditional.
5794
559a7a62
JK
57952011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5796
5797 Case insensitive lookups implementation.
5798 * dwarf2read.c: Include ctype.h.
5799 (struct mapped_index): New field version.
5800 (mapped_index_string_hash): New parameter index_version. New comment
5801 for it. Call tolower appropriately.
5802 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5803 Choose the right index version for mapped_index_string_hash.
5804 (dwarf2_read_index): Support also the index version 5. Initialize the
5805 new struct mapped_index field version.
5806 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5807 (find_slot): Explain the version needs. Pass INT_MAX for the new
5808 parameter.
5809 (write_psymtabs_to_index): Produce version 5.
5810 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5811 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5812 * psymtab.c (lookup_partial_symbol): Find the
5813 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5814 entries.
5815 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5816 NAME lowercasing.
5817 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5818 (completion_list_add_name): New variable ncmp, initialize it, use it.
5819 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5820 * utils.c (strcmp_iw): Support case_sensitive_off.
5821 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5822 New function comment part. New variables saved_string1,
5823 saved_string2 and case_pass. Add a proper second pass.
5824
681bf369
JK
58252011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5826
5827 Replace re_comp/re_exec by regcomp/regexec.
5828 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5829 (search_symbols_name_matches): Use them, use regexec.
5830 (search_symbols): New variable retval_chain, adjust the use of
5831 old_chain against it. Replace re_comp by regcomp. Use the new struct
5832 search_symbols_data fields, use regexec instead of re_exec.
5833
b11b1f88
JK
58342011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5835
5836 Format the code for the next patch.
5837 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5838 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5839 New variables c1 and c2.
5840
2484c66b
UW
58412011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5842
5843 * infrun.c (proceed): Do not single-step into signal delivery
5844 when stepping off a breakpoint location.
5845 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5846 (insert_step_resume_breakpoint_at_caller): Likewise.
5847 (insert_step_resume_breakpoint_at_sal): Likewise.
5848 (insert_longjmp_resume_breakpoint): Likewise.
5849
47423772
YQ
58502011-04-27 Yao Qi <yao@codesourcery.com>
5851
5852 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5853
13bdd2e7
JB
58542011-04-27 Joel Brobecker <brobecker@adacore.com>
5855
5856 * procfs.c (procfs_pass_signals): Fix advance declaration.
5857
2455069d
UW
58582011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5859
5860 * target.h (struct target_ops): Remove to_notice_signals;
5861 add to_pass_signals.
5862 (target_notice_signals): Remove.
5863 (target_pass_signals): Add prototype.
5864 * target.c (update_current_target): Remove to_notice_signals;
5865 mention to_pass_signals.
5866 (target_pass_signals): New function.
5867 (debug_to_notice_signals): Remove.
5868 (setup_target_debug): Do not install debug_to_notice_signals.
5869
5870 * infrun.c (signal_pass): New global.
5871 (resume): Call target_pass_signals.
5872 (handle_inferior_event): Report all signals while stepping over
5873 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5874 are re-inserted when stepping over a signal handler.
5875 (signal_cache_update): New function.
5876 (signal_stop_update): Call it.
5877 (signal_print_update): Likewise.
5878 (signal_pass_update): Likewise.
5879 (handle_command): Call signal_cache_update and target_pass_signals
5880 instead of target_notice_signals.
5881 (_initialize_infrun): Initialize signal_pass.
5882
5883 * linux-nat.c (pass_mask): New global.
5884 (linux_nat_pass_signals): New function.
5885 (linux_nat_create_inferior): Report all signals initially.
5886 (linux_nat_attach): Likewise.
5887 (linux_nat_resume): Use pass_mask to decide whether to directly
5888 handle an inferior signal.
5889 (linux_nat_wait_1): Likewise.
5890 (linux_nat_add_target): Install to_pass_signals callback.
5891
5892 * nto-procfs.c (notice_signals): Remove.
5893 (procfs_resume): Do not call notice_signals.
5894 (procfs_notice_signals): Remove.
5895 (procfs_pass_signals): New function.
5896 (init_procfs_ops): Install to_pass_signals callback instead of
5897 to_notice_signals callback.
5898 (_initialize_procfs): Report all signals initially.
5899
5900 * procfs.c (procfs_notice_signals): Remove.
5901 (procfs_pass_signals): New function.
5902 (procfs_target): Install to_pass_signals callback instead of
5903 to_notice_signals callback.
5904 (register_gdb_signals): Remove.
5905 (procfs_debug_inferior): Report all signals initially.
5906 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5907
5908 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5909 parameters; use them instead of calling signal_..._state routines.
5910 (remote_notice_signals): Remove.
5911 (remote_start_remote): Report all signals initially.
5912 (remote_resume): Do not call remote_pass_signals.
5913 (_initialize_remote): Install to_pass_signals callback instead of
5914 to_notice_signals callback.
5915
46c6471b
PA
59162011-04-27 Pedro Alves <pedro@codesourcery.com>
5917
5918 * breakpoint.c (user_settable_breakpoint): Delete.
5919 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5920 (delete_command): Check user_breakpoint_p instead of looking at
5921 the breakpoint's type.
5922 (disable_command): Ditto.
5923 (enable_command): Ditto.
5924 (delete_trace_command): Use user_breakpoint_p instead of looking
5925 at the breakpoint number directly. When checking if there are
5926 user visible tracepoints, in order to know whether to ask the user
5927 for confirmation, check whether the breakpoint is actually a
5928 tracepoint.
5929
f6d90398
VP
59302011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5931
5932 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5933 compilation.
5934
8d3788bd
VP
59352011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5936
5937 MI breakpoint notifications.
5938
f33edef8
PP
5939 * annotate.c (breakpoint_changed): Adjust parameter type.
5940 * breakpoint.c (set_breakpoint_condition): Adjust to change
5941 in breakpoint_modified type.
5942 (breakpoint_set_commands): Likewise.
5943 (do_map_commands_command): Likewise.
5944 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5945 changed after bumping hit count.
5946 (bpstat_stop_status): Likewise.
5947 (print_one_breakpoint_location): Don't wrap in tuple here.
5948 (print_one_breakpoint): Always print individual locations.
5949 For locations, use unnamed tuple.
5950 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5951 has changed.
5952 (create_catchpoint, create_syscall_event_catchpoint): Call
5953 breakpoint_created obsever.
5954 (mention): Don't call breakpoint_created observer.
5955 (create_breakpoint_sal): Call breakpoint_created observer.
5956 (create_breakpoint, watch_command_1): Likewise.
5957 (create_ada_exception_breakpoint): Likewise.
5958 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5959 (locations_are_equal): New.
5960 (update_breakpoint_locations): If locations were changed, notify.
5961 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5962 Call breakpoint_modified observer.
5963
5964 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5965 (mi_cmd_break_insert): Don't set observers for modify and delete.
5966 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5967 (mi_breakpoint_created, mi_breakpoint_deleted)
5968 (mi_breakpoint_modified): New.
5969 (mi_interpreter_init): Hook the above.
5970 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5971 while -break-* commands are executing.
5972 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5973 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5974 (mi_redirect): New.
5975 (mi_ui_out_impl): Hook in mi_redirect.
5976 (mi_field_skip): True to the name, skip the field, don't output
5977 a field with an empty value.
5978
5979 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5980 (gdbpy_breakpoint_deleted): Adjust.
5981 * tui/tui-hooks.c (tui_event_create_breakpoint)
5982 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 5983
a8f42b45
UW
59842011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5985
5986 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5987 (procfs_remove_hw_watchpoint): Likewise.
5988
57e12211
TT
59892011-04-26 Michael Walle <michael@walle.cc>
5990
5991 * remote.c (remote_start_remote): Ack packet after sending the
5992 interrupt sequence.
5993
af96c192
YQ
59942011-04-26 Yao Qi <yao@codesourcery.com>
5995
f33edef8
PP
5996 * linux-nat.c: Move common macros to ...
5997 Include linux-ptrace.h.
5998 * common/linux-ptrace.h: ... here. New.
af96c192 5999
3e03848b
JK
60002011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6001
6002 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6003 !objfile_has_partial_symbols. New comment.
6004 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6005 SYM_READ_PSYMBOLS is not present. Extend the comment.
6006 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6007
1ae0d051
JK
60082011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6009
6010 * defs.h (ENUM_BITFIELD): Remove.
6011
03f2bd59
JK
60122011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6013 Eli Zaretskii <eliz@gnu.org>
6014
6015 * NEWS: Document the new gdbserver --once option.
6016
4161fbb0
JZ
60172011-04-21 Jie Zhang <jzhang918@gmail.com>
6018
6019 * MAINTAINERS: Update my email address.
6020
bcb28afc
PM
60212011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6022
6023 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6024 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6025 function call if __STDC_ISO_10646__ macro is defined.
6026 (intermediate_encoding): New prototype.
6027 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6028 to generate compile time error for unsupported gdb_wchar_t size.
6029 (ENDIAN_SUFFIX): New macro.
6030 (intermediate_encoding): New function.
6031
7b08b9eb
JK
60322011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6033
6034 * ada-lang.c (struct add_partial_datum): Update the comment for
6035 expand_partial_symbol_name.
6036 (ada_add_partial_symbol_completions): Rename to ...
6037 (ada_expand_partial_symbol_name): ... here, change return type, update
6038 function comment, call symbol_completion_match instead of
6039 symbol_completion_add.
6040 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6041 and ada_expand_partial_symbol_name.
6042 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6043 FILE_MATCHER.
6044 (dw2_map_symbol_names): Remove.
6045 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6046 * psymtab.c (map_symbol_names_psymtab): Remove.
6047 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6048 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6049 order.
6050 (psym_functions): Unlist map_symbol_names_psymtab.
6051 (map_partial_symbol_names): Rename to ...
6052 (expand_partial_symbol_names): ... here, change the FUN type, call
6053 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6054 * psymtab.h (map_partial_symbol_names): Rename to ...
6055 (expand_partial_symbol_names): ... here, change the FUN type.
6056 * symfile.h (struct quick_symbol_functions): Update the description of
6057 expand_symtabs_matching. Remove map_symbol_names.
6058 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6059 (struct add_name_data): Update the comment for
6060 expand_partial_symbol_name.
6061 (add_partial_symbol_name): Rename to ...
6062 (expand_partial_symbol_name): ... here. Replace
6063 completion_list_add_name call by strncmp.
6064 (default_make_symbol_completion_list_break_on): Use now
6065 expand_partial_symbol_names and expand_partial_symbol_name.
6066 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6067
90476074
TT
60682011-04-20 Tom Tromey <tromey@redhat.com>
6069
6070 * dwarf2read.c (save_gdb_index_command): Replace format
6071 documentation with a pointer to the manual.
6072
c21236dc
PA
60732011-04-20 Pedro Alves <pedro@codesourcery.com>
6074
6075 * regcache.c: Include remote.h.
6076 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6077 (regcache_dump): Handle regcache_dump_remote.
6078 (maintenance_print_remote_registers): New function.
6079 (_initialize_regcache): Install "maint print remote-registers"
6080 command.
6081 * remote.c (map_regcache_remote_table): New function, factored out
6082 from ...
6083 (init_remote_state): ... here.
6084 (remote_register_number_and_offset): New.
6085 * remote.h (remote_register_number_and_offset): Declare.
6086
b78974c3
PA
60872011-04-20 Pedro Alves <pedro@codesourcery.com>
6088
6089 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6090 null_ptid, assume and allow a NULL address space, instead of
6091 asking the target for the ptid's address space.
6092 * infrun.c (ptid_is_pid): Remove assertion.
6093
7a9dd1b2
TT
60942011-04-19 Tom Tromey <tromey@redhat.com>
6095
6096 * windows-tdep.c (windows_xfer_shared_library):
6097 * windows-nat.c (get_module_name, windows_make_so):
6098 * v850-tdep.c (v850_handle_pushm):
6099 * utils.c (null_cleanup, gdb_realpath):
6100 * ui-out.c (get_next_header):
6101 * tracepoint.c (clear_traceframe_info):
6102 * symtab.c (lookup_symtab):
6103 * serial.h (struct serial_ops):
6104 * mipsread.c (read_alphacoff_dynamic_symtab):
6105 * infcmd.c (print_return_value):
6106 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6107 * f-exp.y (parse_number):
6108 * exceptions.c (catch_exceptions):
6109 * dummy-frame.c (dummy_frame_this_id):
6110 * defs.h (struct cleanup):
6111 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6112 * arm-tdep.c (arm_push_dummy_call):
6113 * amd64-tdep.h (amd64_collect_xsave):
6114 * amd64-tdep.c (amd64_collect_xsave):
6115 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6116 * README (typing): Remove duplicate words.
6117 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6118 * infrun.c (siginfo_value_read): Fix typo.
6119 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6120 * top.c (source_line_number): Add comma.
6121
9941e0c5
MK
61222011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6123
6124 * thread.c (any_live_thread_of_process): Prioritize threads
6125 that are not executing.
6126 * gdbthread.h (any_live_thread_of_process): Update comment
6127 as per above change.
6128
ed4b0e6a
AS
61292011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6130
6131 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6132 (scan_xcoff_symtab): Likewise.
6133
9b13a2db
PM
61342011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6135
6136 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6137 inside if clause.
6138
1c6e1b0d
PM
61392011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6140 Pedro Alves <pedro@codesourcery.com>
6141
6142 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6143 variables to simplify code and avoid == operator at end of
6144 line as this is against GNU coding standards.
6145
74de0234
PM
61462011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6147
6148 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6149 lm_name to name_lm to avoid conflict with lm_name function.
6150
b23518f0
PM
61512011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6152
6153 ARI fixes: Use only lowercase function name for static functions.
6154 * nto-tdep.c (LM_ADDR): Rename to...
6155 (lm_addr): New function name.
6156 (nto_relocate_section_addresses): Adapt to change above.
6157 * solib-sunos.c (LM_ADDR): Rename to...
6158 (lm_addr): New function name.
6159 (LM_NEXT): Rename to...
6160 (lm_next): New function name.
6161 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6162 function name changes above.
6163 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6164 (lm_addr_from_link_map): New function name.
6165 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6166 (has_lm_dynamic_from_link_map): New function name.
6167 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6168 (lm_dynamic_from_link_map): New function name.
6169 (LM_ADDR_CHECK): Rename to...
6170 (lm_addr_check): New function name.
6171 (LM_NEXT): Rename to...
6172 (lm_next): New function name.
6173 (LM_PREV): Rename to...
6174 (lm_prev): New function name.
6175 (LM_NAME): Rename to...
6176 (lm_name): New function name.
6177 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6178 (ignore_first_link_map_entry): New function name.
6179 (svr4_keep_data_in_core): Adapt to function name changes above.
6180 (svr4_current_sos): Likewise.
6181 (enable_break): Likewise.
6182 (svr4_relocate_section_addresses): Likewise.
6183
1448a0a2
PM
61842011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6185
6186 ARI cleanup.
6187 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6188 sprintf. Simplify code and avoid loosing memory.
6189 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6190 (call0_frame_cache): Remove && operator from end of line.
6191
02835898
JK
61922011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6193
6194 Fix libraries displacement if they change whether they were prelinked.
6195 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6196 does not match. Comment why.
6197
9a845ea2
JK
61982011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6199
6200 * corelow.c: Include wrapper.h.
6201 (core_open): Call now gdb_target_find_new_threads.
6202 * wrapper.c: Include target.h.
6203 (gdb_target_find_new_threads): New.
6204 * wrapper.h (gdb_target_find_new_threads): New declaration.
6205
254f582e
JK
62062011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6207
6208 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6209 even if !TARGET_HAS_EXECUTION.
6210
63524580
JK
62112011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6214 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6215 bfd_get_synthetic_symtab.
6216 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6217 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6218 parameter parent, remove the call to add_separate_debug_objfile.
6219 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6220 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6221 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6222 parent, new comment for it, call add_separate_debug_objfile for it.
6223 (symbol_file_add_separate): Pass objfile as the parameter parent,
6224 remove the call to add_separate_debug_objfile.
6225 (symbol_file_add_from_bfd): New parameter parent, pass it.
6226 (symbol_file_add): Pass NULL to the new parameter parent.
6227 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6228
90359a16
JK
62292011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6230
6231 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6232 BSF_SYNTHETIC.
6233
626e7282
JK
62342011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6235
6236 Fix Python access to inlined frames.
6237 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6238 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6239
cf31e6f9
TT
62402011-04-15 Tom Tromey <tromey@redhat.com>
6241
6242 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6243
c8d895f1
GB
62442011-04-15 Gary Benson <gbenson@redhat.com>
6245
6246 * MAINTAINERS: Add myself to write-after-approval section.
6247
56a9aa1d
MF
62482011-04-14 Mike Frysinger <vapier@gentoo.org>
6249
6250 * remote-sim.c (sim_command_completer): New function.
6251 (_initialize_remote_sim): Set completer to sim_command_completer.
6252
ba770c9c
TJB
62532011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6254
6255 * breakpoint.c (print_exception_catchpoint): Rename to ...
6256 (print_it_exception_catchpoint): ... this.
6257 (gnu_v3_exception_catchpoint_ops): Update with new name
6258 for print_it_exception_catchpoint.
6259
51bf2553
EBM
62602011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6261
6262 * MAINTAINERS: Add myself for write after approval privileges.
6263
d242658c
MP
62642011-04-13 Marek Polacek <mpolacek@redhat.com>
6265
6266 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6267
4a4106ca
TJB
62682011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6269
6270 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6271
26063d49
TJB
62722011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6273
6274 * breakpoint.c (save_breakpoints): Verify whether
6275 breakpoint_ops.print_recreate is defined before calling it.
6276
7782b183
GB
62772011-04-11 Gary Benson <gbenson@redhat.com>
6278
6279 Fix failure with --enable-maintainer-mode.
6280 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6281
e8930875
JK
62822011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6283
6284 Code cleanup.
6285 * symtab.c (search_symbols): Reorder the KIND description in the
6286 function comment. Remove the unused 4th element of types, types2,
6287 types3 and types4. New gdb_assert on KIND.
6288 (symtab_symbol_info): Remove the unused 4th element of classnames.
6289 New gdb_assert on KIND.
6290 * symtab.h (enum search_domain): New warning in the enum comment.
6291 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6292 TYPES_DOMAIN.
6293
b4f2f049
JK
62942011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6295
6296 Fix crash of gdb save-index on a STABS file.
6297 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6298 PSYMTABS_ADDRMAP.
6299
60d5a603
JK
63002011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6301
6302 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6303 * dwarf2read.c: Include ctype.h.
6304 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6305 functions.
6306 (dwarf2_add_field): Fix new_field->accessibility by calling
6307 dwarf2_default_access_attribute. Restructure setting accessibility
6308 vs. virtuality.
6309 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6310 is_private and is_protected by calling
6311 dwarf2_default_access_attribute.
6312
e0f68161
KB
63132011-04-08 Kevin Buettner <kevinb@redhat.com>
6314
6315 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6316 to the initialization.
6317
2e1aae43
SE
63182011-04-08 Steve Ellcey <sje@cup.hp.com>
6319
6320 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6321 initalization.
6322
c6ca3dab
PM
63232011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6324
6325 Remove support for old Cygwin 1.5 versions.
6326 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6327 function on old Cygwin version.
6328 * windows-nat.c: Remove cygwin version check and always define
6329 __USEWIDE for Cygwin compilation.
6330
bd18283a
YQ
63312011-04-07 Yao Qi <yao@codesourcery.com>
6332
6333 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6334 and TO.
6335 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6336 (arm_copy_svc): Remove parameters INSN and TO.
6337 (decode_svc_copro): Update caller.
6338 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6339 from function pointer `copy_svc_os'.
6340
8c8dba6d
YQ
63412011-04-07 Yao Qi <yao@codesourcery.com>
6342
6343 * arm-tdep.c (cleanup_branch): Set a correct return address in
6344 LR for ARM and Thumb.
6345
59d7bcaf
JK
63462011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6347
6348 Code cleanup.
6349 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6350 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6351 in the function comment, a new note on values compatibility.
6352 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6353 * symtab.h (SYMBOL_HASH_NEXT): New.
6354
e7db58ea
TJB
63552011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6356
6357 * ppc-linux-nat.c (check_condition): Add len output parameter.
6358 Set it based on the memory region referenced in the condition
6359 expression. Update all callers.
6360
9f743ef6
JK
63612011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6362
6363 Fix crash regression on systems featuring .gdb_index.
6364 * objfiles.c (free_objfile): Move the
6365 forget_cached_source_info_for_objfile call earlier. Comment it.
6366 Extend the comment for objfile_free_data.
6367
9182c5bc
JK
63682011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6369
6370 Fix regression of displaying the debug format.
6371 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6372 subfile.
6373
04bd08de
TT
63742011-04-04 Tom Tromey <tromey@redhat.com>
6375
6376 * cli/cli-interp.c (struct captured_execute_command_args):
6377 Remove.
6378 (do_captured_execute_command): Remove.
6379 (safe_execute_command): Use TRY_CATCH.
6380 * cli/cli-script.c (struct wrapped_read_command_file_args):
6381 Remove.
6382 (wrapped_read_command_file): Remove.
6383 (script_from_file): Use TRY_CATCH.
6384 * exceptions.c (catch_exception): Remove.
6385 * exceptions.h (catch_exception): Remove.
6386 (deprecated_throw_reason): Update comment.
6387 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6388 argument to 'context'.
6389 (mi_execute_command): Use TRY_CATCH.
6390 * remote.c (struct start_remote_args): Remove.
6391 (remote_start_remote): Update; change arguments.
6392 (remote_open_1): Use TRY_CATCH.
6393
58438ac1
TT
63942011-04-04 Tom Tromey <tromey@redhat.com>
6395
6396 * tracepoint.c (scope_info): Update.
6397 * symtab.c (decode_line_spec): Update.
6398 * python/python.c (gdbpy_decode_line): Update.
6399 * linespec.h (decode_line_1): Update.
6400 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6401 (decode_compound, find_method, symtab_from_filename)
6402 (decode_variable): Likewise.
6403 * cli/cli-cmds.c (edit_command): Update.
6404 (list_command): Update.
6405 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6406 argument.
6407 (create_breakpoint): Update.
6408 (until_break_command): Update.
6409 (addr_string_to_sals): Update.
6410 (decode_line_spec_1): Update.
6411
b78a6381
TT
64122011-04-04 Tom Tromey <tromey@redhat.com>
6413
6414 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6415 (do_captured_parse_breakpoint): Remove.
6416 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6417 Use TRY_CATCH directly.
6418
00174a86
TT
64192011-04-04 Tom Tromey <tromey@redhat.com>
6420
6421 * symtab.h (free_symtab): Remove.
6422 (forget_cached_source_info_for_objfile): Declare.
6423 * symmisc.c (free_symtab): Remove.
6424 * source.c (forget_cached_source_info_for_objfile): New function.
6425 (forget_cached_source_info): Use it.
6426 * objfiles.c (free_objfile): Simplify check before calling
6427 clear_current_source_symtab_and_line. Call
6428 forget_cached_source_info_for_objfile.
6429
30cc903e
TT
64302011-04-04 Tom Tromey <tromey@redhat.com>
6431
6432 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6433 (new_symtab): Don't set `free_code' on symtab.
6434 (new_linetable): Properly handle size==0.
6435 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6436 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6437 free_func.
6438 * jv-lang.c (struct jv_per_objfile_data): New.
6439 (jv_per_objfile_free): Free the data.
6440 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6441 (get_java_class_symtab): Set the `dict' field on the
6442 jv_per_objfile_data.
6443 (free_class_block): Remove.
6444 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6445 the symtab.
6446
0c2e6019
TT
64472011-04-04 Tom Tromey <tromey@redhat.com>
6448
6449 * symfile.c (reread_symbols): Update.
6450 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6451 field.
6452 * objfiles.c (allocate_objfile): Update.
6453 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6454 declare.
6455 * cp-namespace.c (lookup_symbol_file): Don't call
6456 lookup_possible_namespace_symbol.
6457 (initialize_namespace_symtab, get_possible_namespace_block)
6458 (free_namespace_block, cp_check_possible_namespace_symbols)
6459 (check_possible_namespace_symbols_loop)
6460 (check_one_possible_namespace_symbol)
6461 (lookup_possible_namespace_symbol): Remove.
6462 (maintenance_cplus_namespace): Replace with notice.
6463 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6464
554d387d
TT
64652011-04-04 Tom Tromey <tromey@redhat.com>
6466
6467 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6468 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6469 * symmisc.c (free_symtab): Don't free debugformat.
6470 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6471 (record_debugformat, record_producer): Document.
6472 * buildsym.c (end_symtab): Don't save debugformat and producer
6473 names on obstack.
6474 (end_symtab): Don't free debugformat and producer fields.
6475 (record_debugformat): Don't call xstrdup.
6476 (record_producer): Likewise.
6477
d4d4db8a
TT
64782011-04-04 Tom Tromey <tromey@redhat.com>
6479
6480 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6481 (source_line_charpos, source_charpos_line): Remove.
6482
8903c50d
TT
64832011-04-04 Tom Tromey <tromey@redhat.com>
6484
6485 * symtab.h (domain_enum): Split in two...
6486 (enum search_domain): New.
6487 (search_symbols): Update.
6488 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6489 redundant declarations.
6490 (search_symbols): Change 'kind' argument to search_domain.
6491 Update.
6492 (print_symbol_info): Likewise.
6493 (symtab_symbol_info): Likewise.
6494 * symfile.h (struct quick_symbol_functions)
6495 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6496 <expand_symtabs_matching>: Likewise.
6497 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6498 (expand_symtabs_matching_via_partial): Update.
6499 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6500 (dw2_expand_symtabs_for_function): Update.
6501 * block.h: Moved anonymous enum...
6502 * defs.h (enum block_enum): ... here. Now named.
6503
d9351f5f 65042011-04-03 Joel Brobecker <brobecker@adacore.com>
6505
6506 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6507 * version.in: Bump version to 7.3.50.20110403-cvs.
6508
d6e00af6
JB
65092011-04-03 Joel Brobecker <brobecker@adacore.com>
6510
6511 * NEWS: Create a new section for the next release branch.
6512 Rename the section of the current branch, now that it has
6513 been cut.
6514
2b9e5ea6
UW
65152011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6516
6517 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6518 for "fpscr" in target description.
6519
0cf03b49
JK
65202011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6521
6522 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6523 initialize it. Delay HASH initialization. Strip the part after open
6524 parenthesis for languages with qualifiers. Call do_cleanups.
6525
5d901a73
TT
65262011-04-01 Tom Tromey <tromey@redhat.com>
6527
6528 * utils.c (report_command_stats): Don't print `-' for negative
6529 number.
6530
b0dd7688
JB
65312011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6532
6533 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6534 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6535 typedefs.
6536
956a9fb9
JB
65372011-04-01 Joel Brobecker <brobecker@adacore.com>
6538
6539 * breakpoint.h (bpdisp_text): Add declaration.
6540 * breakpoint.c (bpdisp_text): Make non-static.
6541 * ada-lang.c: #include "mi/mi-common.h".
6542 (print_it_exception): Rewrite to improve GDB/MI output.
6543
3352110b
PA
65442011-04-01 Pedro Alves <pedro@codesourcery.com>
6545
6546 * arm-tdep.h (struct address_space): Add forward declaration.
6547
18819fa6
UW
65482011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6549
6550 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6551 * arm-tdep.c (arm_override_mode): New global.
6552 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6553 execution mode heuristics.
6554 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6555 second single-step breakpoint if needed, using
6556 arm_insert_single_step_breakpoint.
6557 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6558 ARM execution mode, do not call thumb_get_next_pc_raw.
6559 (arm_get_next_pc): Encode execution mode in return value. Call
6560 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6561 (arm_insert_single_step_breakpoint): New function.
6562 (arm_software_single_step): Call it.
6563 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6564 argument to return execution mode of sigreturn target.
6565 (arm_linux_syscall_next_pc): Use it.
6566 (arm_linux_copy_svc): Update call.
6567 (arm_linux_software_single_step): Call
6568 arm_insert_single_step_breakpoint.
6569
a6e293d1
JK
65702011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6571
6572 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6573 the comment.
6574
a4c8e806
TT
65752011-03-31 Tom Tromey <tromey@redhat.com>
6576
6577 * varobj.c (update_dynamic_varobj_children): Properly handle
6578 errors from iterator.
6579
df5c6c50
JK
65802011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6581
6582 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6583 struct linkage name twice.
6584
1dae3efc
TT
65852011-03-31 Tom Tromey <tromey@redhat.com>
6586
6587 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6588 missing ">" to message.
6589
f4f7ab05
TT
65902011-03-31 Tom Tromey <tromey@redhat.com>
6591
6592 * varobj.c (instantiate_pretty_printer): Remove duplicate
6593 'return'.
6594
fcf250e2
UW
65952011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6596
6597 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6598 if neither saved value nor register available (e.g. signal frame).
6599
ee6436e3
TJB
66002011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6601
6602 * macroexp.c (expand): Avoid uninitialized variable
6603 compiler warning.
6604
423f41a5
TJB
66052011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6606
6607 * breakpoint.c (break_range_command): Fix typo in comment.
6608
f1310107
TJB
66092011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6610 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6611
6612 Implement support for PowerPC BookE ranged breakpoints.
6613 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6614 * breakpoint.h (struct bp_target_info) <length>: New member
6615 variable.
6616 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6617 instead of struct breakpoint as argument, and also add ASPACE
6618 and BP_ADDR arguments. Update all callers.
6619 (struct breakpoint_ops) <print_one_detail>: New method.
6620 (struct breakpoint) <addr_string_range_end>: New member variable.
6621 * breakpoint.c (breakpoint_location_address_match): Add function
6622 prototype.
6623 (insert_bp_location): Set bl->target_info.length.
6624 (breakpoint_here_p): Call breakpoint_location_address_match.
6625 (moribund_breakpoint_here_p): Likewise.
6626 (regular_breakpoint_inserted_here_p): Likewise.
6627 (breakpoint_thread_match): Likewise.
6628 (bpstat_stop_status): Likewise.
6629 (bpstat_check_location): Move call to
6630 breakpoint_ops.breakpoint_hit to the top.
6631 (print_one_breakpoint_location): Call
6632 breakpoint_ops.print_one_detail if available.
6633 (breakpoint_address_match_range): New function.
6634 (breakpoint_location_address_match): Likewise.
6635 (breakpoint_locations_match): Compare the length field of the
6636 locations too.
6637 (hw_breakpoint_used_count): Count resources used by all locations
6638 in a breakpoint, and use breakpoint_ops.resources_needed if
6639 available.
6640 (breakpoint_hit_ranged_breakpoint): New function.
6641 (resources_needed_ranged_breakpoint): Likewise.
6642 (print_it_ranged_breakpoint): Likewise.
6643 (print_one_ranged_breakpoint): Likewise.
6644 (print_one_detail_ranged_breakpoint): Likewise.
6645 (print_mention_ranged_breakpoint): Likewise.
6646 (print_recreate_ranged_breakpoint): Likewise.
6647 (ranged_breakpoint_ops): New structure.
6648 (find_breakpoint_range_end): New function.
6649 (break_range_command): Likewise.
6650 (delete_breakpoint): Free addr_string_range_end.
6651 (update_breakpoint_locations): Add SALS_END argument. Update
6652 all callers. Calculate breakpoint length if a non-zero SALS_END
6653 is given. Call breakpoint_locations_match instead of
6654 breakpoint_address_match.
6655 (reset_breakpoint): Find SaL of the end of the range if B is a
6656 ranged breakpoint.
6657 (_initialize_breakpoint): Register break-range command.
6658 * defs.h (print_core_address): Add function prototype.
6659 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6660 function.
6661 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6662 (ppc_linux_remove_hw_breakpoint): Likewise.
6663 (_initialize_ppc_linux_nat): Initialize
6664 to_ranged_break_num_registers.
6665 * target.c (update_current_target): Add comment about
6666 to_ranged_break_num_registers.
6667 (target_ranged_break_num_registers): New function.
6668 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6669 New method.
6670 (target_ranged_break_num_registers): Add function prototype.
6671 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6672 * utils.c (print_core_address): ... here.
6673
02d20e4a
UW
66742011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6675
6676 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6677 variable compiler warning.
6678
ef23e705
TJB
66792011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6680
6681 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6682 code from here ...
6683 (re_set_breakpoint): ... to here ...
6684 (addr_string_to_sals): ... and here.
6685
311e6ab3
PM
66862011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6687
6688 * Makefile.in (SFILES): Add missing C sources.
6689 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6690 Add missing headers.
6691
acd1d99c
MF
66922011-03-29 Mike Frysinger <vapier@gentoo.org>
6693
6694 * .gitignore: New file.
6695
66ee2731
MF
66962011-03-29 Mike Frysinger <vapier@gentoo.org>
6697
6698 * NEWS: Mention new cfi device simulation.
6699
53832f31
TT
67002011-03-29 Tom Tromey <tromey@redhat.com>
6701
6702 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6703 otherwise anonymous types.
6704 (dwarf2_name): Likewise.
6705 * valops.c (value_struct_elt_for_reference): Refine artificial
6706 type logic. Call error if j==-1.
6707
09b58708
JK
67082011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6709
6710 Fix false GCC warning.
6711 * infcall.c (find_function_addr): Initialize funaddr.
6712
6023c606
PM
67132011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6714
6715 Fix mingw compilation with --enable-targets=all.
6716 * remote-mips.c (gdb_usleep.h): Include header.
6717 (mips_enter_debug): Use gdb_usleep instead of sleep.
6718
0e30163f
JK
67192011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6720
6721 Support resolution of STT_GNU_IFUNC via breakpoints.
6722 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6723 bp_gnu_ifunc_resolver_return.
6724 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6725 the loop. Support bp_gnu_ifunc_resolver and
6726 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6727 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6728 breakpoints.
6729 (bptype_string, print_one_breakpoint_location): Support
6730 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6731 (user_settable_breakpoint): Return true also for
6732 bp_gnu_ifunc_resolver.
6733 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6734 bp_gnu_ifunc_resolver_return.
6735 (set_breakpoint_location_function): New parameter explicit_loc,
6736 describe it. Call find_pc_partial_function_gnu_ifunc with new
6737 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6738 EXPLICIT_LOC is not set.
6739 (set_raw_breakpoint): Set EXPLICIT_LOC for
6740 set_breakpoint_location_function.
6741 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6742 set_breakpoint_location_function.
6743 (mention): Support bp_gnu_ifunc_resolver and
6744 bp_gnu_ifunc_resolver_return.
6745 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6746 set_breakpoint_location_function.
6747 (update_breakpoint_locations): Remove static.
6748 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6749 bp_gnu_ifunc_resolver_return.
6750 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6751 bp_gnu_ifunc_resolver_return.
6752 (update_breakpoint_locations): New declaration.
6753 * elfread.c: Include gdbthread.h and regcache.h.
6754 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6755 functions.
6756 (elf_gnu_ifunc_fns): Install them.
6757 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6758 (stub_gnu_ifunc_resolver_return_stop): New functions.
6759 (stub_gnu_ifunc_fns): Install them.
6760 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6761 and gnu_ifunc_resolver_return_stop.
6762 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6763
07be84bf
JK
67642011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6765
6766 STT_GNU_IFUNC reader implementation.
6767 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6768 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6769 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6770 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6771 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6772 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6773 (elf_gnu_ifunc_resolve_addr): New.
6774 (elf_symfile_read): Call elf_rel_plt_read.
6775 (elf_gnu_ifunc_fns): New.
6776 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6777 Install elf_gnu_ifunc_fns.
6778 * infcall.c (find_function_return_type): New function.
6779 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6780 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6781 (stub_gnu_ifunc_resolve_name): New functions.
6782 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6783 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6784 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6785
300f8e10
JK
67862011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6787
6788 Code cleanup for later STT_GNU_IFUNC support.
6789 * infcall.c (find_function_addr): Remove variable code, use explicit
6790 dereferences for it. Move VALUE_TYPE initialization later.
6791
11c81455
JK
67922011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6793
6794 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6795 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6796 (clear_pc_function_cache): Clear it.
6797 (find_pc_partial_function): Rename to ...
6798 (find_pc_partial_function_gnu_ifunc): ... this function. New
6799 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6800 (find_pc_partial_function): New wrapper for this function.
6801 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6802
0875794a
JK
68032011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6804
6805 GDB internal type support for STT_GNU_IFUNC.
6806 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6807 (elf_symtab_read): Set mst_text_gnu_ifunc for
6808 BSF_GNU_INDIRECT_FUNCTION.
6809 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6810 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6811 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6812 nodebug_got_plt_symbol.
6813 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6814 (TYPE_GNU_IFUNC): New.
6815 (struct main_type): New field flag_gnu_ifunc.
6816 (struct builtin_type): New field builtin_func_func.
6817 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6818 nodebug_got_plt_symbol.
6819 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6820 (in_gnu_ifunc_stub): New.
6821 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6822 mst_text_gnu_ifunc.
6823 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6824 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6825 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6826 in_gnu_ifunc_stub.
6827 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6828 * symtab.c (search_symbols): Likewise.
6829 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6830 and mst_slot_got_plt.
6831 (in_gnu_ifunc_stub): New declaration.
6832
d0fb5eae
JK
68332011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6834
6835 Support a ring of related breakpoints.
6836 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6837 other functions, add gdb_assert.
6838 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6839 watchpoint_del_at_next_stop.
6840 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6841 (bpstat_stop_status): Handle ring in related_breakpoint.
6842 (set_raw_breakpoint_without_location): Initialize ring in
6843 related_breakpoint.
6844 (delete_breakpoint): Handle ring in related_breakpoint, use
6845 watchpoint_del_at_next_stop.
6846 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6847
9cded63f
TT
68482011-03-28 Tom Tromey <tromey@redhat.com>
6849
6850 PR symtab/12441:
6851 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6852 with `language_minimal'.
6853
467d42c4
UW
68542011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6855
6856 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6857 instead of checking for STT_ARM_TFUNC symbol type.
6858
62853458
TT
68592011-03-25 Tom Tromey <tromey@redhat.com>
6860
6861 * linespec.c (symbol_found): Restore line-based result for
6862 non-LOC_LABEL symbols.
6863
a7417d46
KT
68642011-03-25 Kai Tietz <ktietz@redhat.com>
6865
6866 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6867 instead of strcmp for comparison.
6868 (tui_source_is_displayed): Likewise.
6869 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6870
55f1336d
TT
68712011-03-24 Mark Wielaard <mjw@redhat.com>
6872
f33edef8
PP
6873 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6874 complaint.
6875 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6876 (find_partial_die_in_comp_unit): Likewise in comment.
6877 (read_attribute_value): Likewise.
6878 (lookup_die_type): Likewise.
6879 (dwarf_form_name): Likewise.
6880 (dump_die_shallow): Likewise.
6881 (follow_die_ref_or_sig): Likewise.
55f1336d 6882
9ef07c8c
TT
68832011-03-24 Tom Tromey <tromey@redhat.com>
6884
6885 PR breakpoints/11816:
6886 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6887 (decode_compound): Update.
6888 (find_function_symbol): New function.
6889 (decode_dollar): Update.
6890 (decode_label): Add 'function_symbol' parameter. Handle
6891 function-relative labels.
6892 (decode_variable): Update.
6893 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6894 not its line. Set `special_display' and canonical name for
6895 labels.
6896
56435ebe
TT
68972011-03-24 Tom Tromey <tromey@redhat.com>
6898
6899 * linespec.h (struct linespec_result) <special_display>: New
6900 field.
6901 * breakpoint.h (struct breakpoint) <display_canonical>: New
6902 field.
6903 * breakpoint.c (print_breakpoint_location): Respect
6904 display_canonical.
6905 (create_breakpoint_sal): Add 'display_canonical' parameter.
6906 (create_breakpoints_sal): Update.
6907 (create_breakpoint): Update.
6908
7efd8fc2
TT
69092011-03-24 Tom Tromey <tromey@redhat.com>
6910
6911 * symtab.c (decode_line_spec): Update.
6912 * linespec.c (build_canonical_line_spec): Change type of
6913 'canonical'.
6914 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6915 (find_method, decode_all_digits, decode_dollar, decode_label)
6916 (symbol_found): Likewise.
6917 (init_linespec_result): New function.
6918 * breakpoint.c (struct captured_parse_breakpoint_args)
6919 <canonical_p>: New field, replaces addr_string_p.
6920 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6921 'addr_string'.
6922 (parse_breakpoint_sals): Likewise.
6923 (do_captured_parse_breakpoint): Update.
6924 (create_breakpoint): Use struct linespec_result.
6925 (until_break_command): Update.
6926 (breakpoint_re_set_one): Update.
6927 (decode_line_spec_1): Update.
6928 * linespec.h (struct linespec_result): New.
6929 (init_linespec_result): Declare.
6930
788c8b10
PA
69312011-03-23 Pedro Alves <pedro@codesourcery.com>
6932
6933 * regcache.c (regcache_raw_read): If the target didn't supply a
6934 given raw register, mark it as unavailable.
6935
0ba1096a
KT
69362011-03-23 Kai Tietz <ktietz@redhat.com>
6937
6938 * breakpoint.c (clear_command): Use filename_cmp
6939 instead of strcmp for comparison.
6940 * buildsym.c (watch_main_source_file_lossage): Likewise.
6941 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6942 checking just for slash.
6943 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6944 strrchr and filename_cmp instead of strcmp for filenames.
6945 (add_old_header_file): Use filename_cmp
6946 instead of strcmp for comparison.
6947 * exec.c (exec_set_section_address): Likewise.
6948 * macrotab.c (macro_lookup_inclusion): Likewise.
6949 (macro_lookup_inclusion): Likewise.
6950 * elfread.c (_initialize_elfread): Likewise.
6951 (elfstab_offset_sections): Likewise.
6952 (elfstab_offset_sections): Use lbasename instead of
6953 strrchr.
6954 * mdebugread.c (parse_partial_symbols): Likewise.
6955 (arse_partial_symbols): Use filename_(n)cmp instead of
6956 str(n)cmp for comparison.
6957 * minsyms.c (lookup_minimal_symbol): Likewise.
6958 * psymtab.c (read_psymtabs_with_filename): Likewise.
6959 * solib.c (solib_read_symbols): Likewise.
6960 (reload_shared_libraries_1): Likewise.
6961 * symmisc.c (maintenance_print_symbols): Likewise.
6962 * symfile.c (separate_debug_file_exists): Likewise.
6963 (reread_symbols): Likewise.
6964 (find_separate_debug_file_by_debuglink): Likewise.
6965 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6966 * source.c (add_path): Likewise.
6967 * symtab.c (filename_seen): Likewise.
6968 (file_matches): Likewise.
6969 (print_symbol_info): Likewise.
6970 (maybe_add_partial_symtab_filename): Likewise.
6971 (make_source_files_completion_list): Likewise.
6972 * xml-syscall.c (init_sysinfo): Likewise.
6973 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6974 IS_DIR_SEPARATOR for checking for trailing path separator.
6975
dd90784c
JK
69762011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6977
6978 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6979 label abort_expression.
6980 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6981 DWARF_VALUE_OPTIMIZED_OUT.
6982
3167638f
JK
69832011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6984
6985 Code cleanup.
6986 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6987 to linkage_name. Invert its value. Update the function comment.
6988 (c_type_print_varspec_suffix): Invert it at the caller.
6989 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6990
ce406537
PA
69912011-03-22 Pedro Alves <pedro@codesourcery.com>
6992
6993 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6994 errors when reading the `stop_pc'.
6995 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6996 get_frame_pc.
6997
da5d4055
PM
69982011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6999
7000 * NEWS: Document gdb.Write stream keyword.
7001
29e0eb9c
JK
70022011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7003
7004 Revert:
7005 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7006 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7007 (dwarf2_add_field): Fix new_field->accessibility for
7008 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7009
05775840
PM
70102011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7011
f33edef8 7012 PR python/12183
05775840
PM
7013
7014 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7015 other error classes. Do not print stack trace.
7016
a0cb7835
JK
70172011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7018
7019 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7020 (dwarf2_add_field): Fix new_field->accessibility for
7021 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7022
d19f7eee
UW
70232011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7024
7025 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7026 encountering a load via a non-SP register.
7027
4a2fbb50
UW
70282011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7029
7030 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7031 field in returned unwinder.
7032
3489610d
JB
70332012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7034
7035 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7036
8c1a34e7
JB
70372012-03-21 Joel Brobecker <brobecker@adacore.com>
7038
7039 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7040 of xmalloc.
7041
8fbca658
PA
70422012-03-18 Pedro Alves <pedro@codesourcery.com>
7043
7044 * frame.c (frame_unwind_register): Throw an error if unwinding the
7045 register failed.
7046 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7047 an unwind stop reason.
7048 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7049 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7050 UNWIND_UNAVAILABLE>: New.
7051 * inline-frame.c (inline_frame_unwind): Install
7052 default_frame_unwind_stop_reason.
7053 * frame-unwind.c: Include "exceptions.h".
7054 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7055 (default_frame_unwind_stop_reason): New.
7056 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7057 (default_frame_unwind_stop_reason): Declare.
7058 (struct frame_unwind) <stop_reason>: New function pointer.
7059
7060 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7061 * dwarf2-frame.c: Include exceptions.h.
7062 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7063 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7064 computing the CFA. If such an error was thrown, set
7065 unavailable_retaddr.
7066 (dwarf2_frame_unwind_stop_reason): New.
7067 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7068 unavailable.
7069 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7070 (dwarf2_signal_frame_unwind): Ditto.
7071
7072 * amd64-tdep.c: Include "exceptions.h".
7073 (struct amd64_frame_cache): New field "base_p".
7074 (amd64_init_frame_cache): Clear it.
7075 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7076 Avoid reading registers with functions that throw if the register
7077 is not necessary to compute the frame base.
7078 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7079 swallowing NOT_AVAILABLE_ERROR.
7080 (amd64_frame_unwind_stop_reason): New.
7081 (amd64_frame_this_id): Don't build a frame id if the frame base
7082 was unavailable.
7083 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7084 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7085 base_p if the frame base was computable.
7086 (amd64_sigtramp_frame_unwind_stop_reason): New.
7087 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7088 frame base was unavailable.
7089 (amd64_sigtramp_frame_unwind): Install
7090 amd64_sigtramp_frame_unwind_stop_reason.
7091 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7092 base_p if the frame base was computable.
7093 (amd64_epilogue_frame_unwind_stop_reason): New.
7094 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7095 frame base was unavailable.
7096 (amd64_epilogue_frame_unwind): Install
7097 amd64_epilogue_frame_unwind_stop_reason.
7098 * i386-tdep.c: Include "exceptions.h".
7099 (struct i386_frame_cache): New field "base_p".
7100 (i386_init_frame_cache): Clear it.
7101 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7102 Avoid reading registers with functions that throw if the register
7103 is not necessary to compute the frame base.
7104 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7105 swallowing NOT_AVAILABLE_ERROR.
7106 (i386_frame_unwind_stop_reason): New.
7107 (i386_frame_this_id): Don't build a frame id if the frame base was
7108 unavailable.
7109 (i386_frame_prev_register): Handle unavailable SP.
7110 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7111 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7112 base_p if the frame base was computable.
7113 (i386_epilogue_frame_unwind_stop_reason): New.
7114 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7115 base was unavailable.
7116 (i386_epilogue_frame_unwind): Install
7117 i386_epilogue_frame_unwind_stop_reason.
7118 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7119 base_p if the frame base was computable.
7120 (i386_sigtramp_frame_unwind_stop_reason): New.
7121 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7122 base was unavailable.
7123 (i386_sigtramp_frame_unwind): Install
7124 i386_sigtramp_frame_unwind_stop_reason.
7125 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7126 type's size, not the register's.
7127 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7128
7129 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7130 default_frame_unwind_stop_reason.
7131 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7132 (alpha_heuristic_frame_unwind): Ditto.
7133 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7134 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7135 * avr-tdep.c (avr_frame_unwind): Ditto.
7136 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7137 Ditto.
7138 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7139 * frv-tdep.c (frv_frame_unwind): Ditto.
7140 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7141 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7142 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7143 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7144 (hppa_stub_frame_unwind): Ditto.
7145 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7146 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7147 (ia64_libunwind_frame_unwind)
7148 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7149 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7150 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7151 * m32c-tdep.c (m32c_unwind): Ditto.
7152 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7153 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7154 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7155 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7156 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7157 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7158 * mep-tdep.c (mep_frame_unwind): Ditto.
7159 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7160 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7161 (mips_stub_frame_unwind): Ditto.
7162 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7163 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7164 * mt-tdep.c (mt_frame_unwind): Ditto.
7165 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7166 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7167 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7168 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7169 (s390_sigtramp_frame_unwind): Ditto.
7170 * score-tdep.c (score_prologue_unwind): Ditto.
7171 * sh-tdep.c (sh_frame_unwind): Ditto.
7172 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7173 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7174 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7175 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7176 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7177 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7178 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7179 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7180 (sparc64obsd_trapframe_unwind): Ditto.
7181 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7182 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7183 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7184 * v850-tdep.c (v850_frame_unwind): Ditto.
7185 * vax-tdep.c (vax_frame_unwind): Ditto.
7186 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7187 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7188 * xtensa-tdep.c (xtensa_unwind): Ditto.
7189
f23d1b92
PA
71902011-03-18 Pedro Alves <pedro@codesourcery.com>
7191
7192 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7193 there's always a frame. Use get_frame_pc_if_available instead of
7194 get_frame_pc, and if there's no PC available, don't look up a
7195 symtab.
7196
1d4f5741
PA
71972011-03-18 Pedro Alves <pedro@codesourcery.com>
7198
7199 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7200 unavailable PC.
7201
dba09041
PA
72022011-03-18 Pedro Alves <pedro@codesourcery.com>
7203
7204 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7205 gracefully.
7206
9a26e44c
PA
72072011-03-18 Pedro Alves <pedro@codesourcery.com>
7208
7209 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7210 * frame.c (frame_unwind_caller_pc_if_available): New.
7211 * stack.c (frame_info): Handle unavailable PC.
7212
72132011-03-18 Pedro Alves <pedro@codesourcery.com>
7214
7215 * frame.c (frame_unwind_pc): Rename to ...
7216 (frame_unwind_pc_if_available): ... this. New `pc' output
7217 parameter. Change return type to int. Gracefully handle
7218 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7219 happened, or 1 otherwise.
7220 (frame_unwind_pc): Reimplement on top of
7221 frame_unwind_pc_if_available.
7222 (get_frame_func): Rename to ...
7223 (get_frame_func_if_available): New `pc' output parameter. Change
7224 return type to int. Gracefully handle the PC not being available.
7225 (get_frame_func): Reimplement on top of
7226 get_frame_func_if_available.
7227 (select_frame): Handle the PC being unavailable.
7228 (get_prev_frame): Handle the PC being unavailable.
7229 (get_frame_pc_if_available): New.
7230 (get_frame_address_in_block_if_available): New.
7231 (find_frame_sal): Handle the frame PC not being available.
7232 * frame.h (get_frame_pc_if_available): Declare.
7233 (get_frame_address_in_block_if_available): Declare.
7234 (get_frame_func_if_available): Declare.
7235 * stack.c (print_frame_info): Handle the PC being unavailable.
7236 (find_frame_funname): Ditto.
7237 (print_frame): Handle the PC being unavailable.
7238 (get_frame_language): Ditto.
7239 * blockframe.c (get_frame_block): Ditto.
7240 * macroscope.c (default_macro_scope): Ditto.
7241 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7242
72432011-03-18 Pedro Alves <pedro@codesourcery.com>
7244
7245 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7246 NOT_AVAILABLE_ERROR when evaluating the location expression.
7247
72482011-03-18 Pedro Alves <pedro@codesourcery.com>
7249
7250 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7251 returning that the register piece is unavailable/optimized out.
7252 (write_pieced_value): Handle get_frame_register_bytes returning
7253 that the register piece is unavailable/optimized out when doing a
7254 read-modify write of a bitfield.
7255 * findvar.c (value_from_register): Handle get_frame_register_bytes
7256 returning that the register piece is unavailable/optimized out.
7257 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7258 and `unavailablep'. Throw error on bad debug info. Use
7259 frame_register instead of frame_register_read, to fill in the new
7260 arguments.
7261 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7262 and `unavailablep'.
7263 * valops.c: (value_assign): Adjust, and handle
7264 get_frame_register_bytes failing.
7265 * spu-tdep.c: Include exceptions.h.
7266 (spu_software_single_step): Adjust, and handle
7267 get_frame_register_bytes failing.
7268 (spu_get_longjmp_target): Ditto.
7269 * gdbarch.sh (register_to_value): Change to return int. New
7270 parameters `optimizedp' and `unavailablep'.
7271 * gdbarch.h, gdbarch.c: Regenerate.
7272 * i386-tdep.c (i386_register_to_value): Adjust to new
7273 gdbarch_register_to_value interface.
7274 * i387-tdep.c (i387_register_to_value): Ditto.
7275 * i387-tdep.h (i387_register_to_value): Ditto.
7276 * alpha-tdep.c (alpha_register_to_value): Ditto.
7277 * ia64-tdep.c (ia64_register_to_value): Ditto.
7278 * m68k-tdep.c (m68k_register_to_value): Ditto.
7279 * mips-tdep.c (mips_register_to_value): Ditto.
7280 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7281
0fdb4f18
PA
72822011-03-18 Pedro Alves <pedro@codesourcery.com>
7283
7284 * findvar.c (value_of_register): Mark the value as unavailable, if
7285 the register is unavailable.
7286 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7287 (frame_register): New `unavailablep' parameter.
7288 (frame_register_read): Update comment.
7289 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7290 Set it if the register is unavailable. If the register is
7291 unavailable, clear the output buffer.
7292 (frame_register): New `unavailablep' parameter. Pass it down.
7293 (frame_unwind_register): Adjust.
7294 (put_frame_register): Adjust.
7295 (frame_register_read): Adjust. Also return false if the register
7296 is not available.
7297 (frame_register_unwind_location): Adjust.
7298 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7299 is unavailable, mark the value accordingly.
7300 * stack.c (frame_info): Handle unavailable registers.
7301
e69aa73e
PA
73022011-03-18 Pedro Alves <pedro@codesourcery.com>
7303
7304 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7305 simplify, using regcache_cooked_read.
7306
05d1431c
PA
73072011-03-18 Pedro Alves <pedro@codesourcery.com>
7308
7309 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7310 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7311 (regcache_raw_read_unsigned, regcache_raw_read_part)
7312 (regcache_cooked_read, regcache_cooked_read_signed)
7313 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7314 (regcache_cooked_read_ftype): Change return to enum
7315 register_status.
7316 * regcache.c: Include exceptions.h
7317 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7318 (do_cooked_read): Change return to enum register_status. Always
7319 forward to regcache_cooked_read.
7320 (regcache_raw_read): Change return to enum register_status. If
7321 the register is not REG_VALID, memset the buffer. Return the
7322 register's status.
7323 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7324 return the register's status.
7325 (regcache_raw_read_unsigned): Ditto.
7326 (regcache_cooked_read): Change return to enum register_status.
7327 Assert that with read-only regcaches, the register's status must
7328 be known. If the regcache is read-only, and the register is not
7329 REG_VALID, memset the buffer. Return the register's status.
7330 (regcache_cooked_read_signed): Change return to enum
7331 register_status. Handle non-REG_VALID registers and return the
7332 register's status.
7333 (regcache_cooked_read_unsigned): Change return to enum
7334 register_status. Handle non-REG_VALID registers and return the
7335 register's status.
7336 (regcache_xfer_part, regcache_raw_read_part)
7337 (regcache_cooked_read_part): Change return to enum
7338 register_status. Return the register's status.
7339 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7340 unavailable.
7341 (regcache_dump): Handle unavailable cooked registers.
7342 * frame.c (do_frame_register_read): Adjust interface to match
7343 regcache_cooked_read_ftype.
7344 * gdbarch.sh (pseudo_register_read): Change return to enum
7345 register_status.
7346 * gdbarch.h, gdbarch.c: Regenerate.
7347
7348 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7349 register_status.
7350 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7351 register_status. If reading a raw register indicates the raw
7352 register is not valid, return the raw register's status,
7353 otherwise, return REG_VALID.
7354 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7355 register_status. Handle non-REG_VALID raw registers and return
7356 the register's status.
7357 * arm-tdep.c (arm_neon_quad_read)
7358 (arm_pseudo_read): Change return to enum register_status. Handle
7359 non-REG_VALID raw registers and return the register's status.
7360 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7361 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7362 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7363 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7364 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7365 register_status.
7366 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7367 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7368 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7369 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7370 (m32c_pseudo_register_read): Change return to enum
7371 register_status. Adjust.
7372 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7373 enum register_status. Return the register's status.
7374 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7375 register_status. Return the register's status.
7376 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7377 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7378 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7379 * rs6000-tdep.c (move_ev_register_func): New typedef.
7380 (e500_move_ev_register): Use it. Change return to enum
7381 register_status. Return the register's status.
7382 (do_regcache_raw_read): New function.
7383 (do_regcache_raw_write): New function.
7384 (e500_pseudo_register_read): Change return to enum
7385 register_status. Return the register's status. Use
7386 do_regcache_raw_read.
7387 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7388 (dfp_pseudo_register_read): Change return to enum register_status.
7389 Return the register's status.
7390 (vsx_pseudo_register_read): Ditto.
7391 (efpr_pseudo_register_read): Ditto.
7392 (rs6000_pseudo_register_read): Ditto.
7393 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7394 register_status. Return the register's status.
7395 * sh64-tdep.c (pseudo_register_read_portions): New function.
7396 (sh64_pseudo_register_read): Change return to enum
7397 register_status. Use pseudo_register_read_portions. Return the
7398 register's status.
7399 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7400 register_status. Return the register's status.
7401 * sh-tdep.c (pseudo_register_read_portions): New function.
7402 (sh_pseudo_register_read): Change return to enum register_status.
7403 Use pseudo_register_read_portions. Return the register's status.
7404 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7405 enum register_status. Return the register's status.
7406 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7407 * spu-tdep.c (spu_pseudo_register_read_spu)
7408 (spu_pseudo_register_read): Ditto.
7409 * xtensa-tdep.c (xtensa_register_read_masked)
7410 (xtensa_pseudo_register_read): Ditto.
7411 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7412
e10abd8f
PM
74132011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7414
7415 * python/py-value.c (valpy_getitem): Fix formatting of error function
7416 call.
7417
7ea6d463
PM
74182011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7419
7420 ARI fixes: Add missing internationalization markups throughout
7421 C source files.
7422 * darwin-nat-info.c: Ditto.
7423 * record.c: Ditto.
7424 * remote.c: Ditto.
7425 * mi/mi-main.c: Ditto.
7426
001083c6
PM
74272011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7428
7429 ARI fixes: Add missing internationalization markups throughout
7430 yacc files.
7431 * c-exp.y: Ditto.
7432 * cp-name-parser.y: Ditto.
7433 * f-exp.y: Ditto.
7434 * m2-exp.y: Ditto.
7435 * objc-exp.y: Ditto.
7436 * p-exp.y: Ditto.
7437
4f1cdeec
PM
74382011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7439
7440 ARI fixes: Messages should have no trailing new lines.
7441 * darwin-nat.c (mach_check_error): Remove trailing new line from
7442 warning function call message.
7443 * record.c (bfdcore_read): Idem for error call.
7444
28e698f1
PM
74452011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7446
7447 * common/signals.c (target_signal_from_host): Add _ markup to error
7448 function call message.
7449 (target_signal_to_host): Add _ markup and remove trailing new line
7450 from warning call message.
7451 (target_signal_from_command): Add _ markup to error function call
7452 message.
7453
99c3dc11
PM
74542011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7455
f33edef8 7456 PR python/12149
99c3dc11
PM
7457
7458 * python/python.c (gdbpy_write): Accept a stream argument and
7459 operate to the appropriate stream.
7460 (gdbpy_flush): Likewise.
7461 (_initialize_python): Add stream constants.
7462 (finish_python_initialization): Add GdbOutputErrorFile class.
7463
c20800be
KY
74642011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7465
7466 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7467
f4a1794a
KY
74682011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7469
7470 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7471 to store_signed_integer. Add debug message when relocating CALL
7472 instructions. Fix formatting of debug message.
7473 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7474
d4862372
JB
74752011-03-17 Joel Brobecker <brobecker@gnat.com>
7476
7477 * target.h (struct target_ops): Remove to_lookup_symbol field.
7478 (target_lookup_symbol): Delete macro.
7479 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7480 (update_current_target, setup_target_debug): Remove handling
7481 of to_lookup_symbol target_ops field.
7482 * ada-tasks.c (get_known_tasks_addr): Remove use of
7483 target_lookup_symbol.
7484 * coffread.c (coff_symtab_read): Likewise.
7485 * dbxread.c (read_dbx_symtab): Ditto.
7486
d645e32e
JB
74872011-03-17 Joel Brobecker <brobecker@gnat.com>
7488
7489 PR gdb/12116:
7490 * configure.ac: Add getthrds declaration check.
7491 * configure, config.in: Regenerate.
7492 * aix-thread.c (getthrds): Declare only if not already declared
7493 in procinfo.h. More declaration out of get_signaled_thread to
7494 global scope.
7495
29703da4
PM
74962011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7497
7498 * python/py-symtab.c: Populate symtab_object_methods,
7499 sal_object_methods.
7500 (stpy_is_valid): New function.
7501 (salpy_is_valid): Ditto.
7502 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7503 (sympy_is_valid): New function.
7504 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7505 (objfpy_is_valid): New function.
7506 * python/py-inferior.c: Populate inferior_object_methods.
7507 (infpy_is_valid): New function.
7508 * python/py-infthread.c: Populate thread_object_methods.
7509 (thpy_is_valid): New function.
7510 * python/py-block.c: Declare block_object_methods. Populate. Declare
7511 block_iterator_object_methods. Populate.
7512 (blpy_is_valid): New function.
7513 (blpy_iter_is_valid): Ditto.
7514
c00f8484
KS
75152011-03-16 Keith Seitz <keiths@redhat.com>
7516
7517 * linespec.c (find_methods): Canonicalize NAME before looking
7518 up the symbol.
7519 (name_end): New function.
7520 (keep_name_info): New function.
7521 (decode_line_1): Use keep_name_info.
7522 (decode_compound): Likewise.
7523 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7524 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7525
7526 PR c++/12273
7527 * linespec.c (locate_first_half): Keep overload information, too.
7528 (decode_compound): Use a string to represent break characters
7529 to escape the loop.
7530 If P points to a break character, do not increment it.
7531 For C++ and Java, keep overload information and relevant keywords.
7532 If we cannot find a symbol, search the minimal symbols.
7533
7534 PR c++/11734
7535 * linespec.c (decode_compound): Rename SAVED_ARG to
7536 THE_REAL_SAVED_ARG.
7537 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7538 single-quotes.
7539 Pass a valid block to lookup_symbol.
7540 (lookup_prefix_sym): Likewise.
7541 (find_method): Construct search name based on SYM_CLASS instead
7542 of SAVED_ARG.
7543 * psymtab.c (lookup_partial_symbol): Add language parameter.
7544 (lookup_symbol_aux_psymtabs): Likewise.
7545 Don't assume that the psymtab we found was the right one. Search
7546 for the desired symbol in the symtab to be certain.
7547 (psymtab_search_name): New function.
7548 (lookup_partial_symbol): Use psymtab_search_name.
7549 Add language parameter.
7550 (read_symtabs_for_function): Add language parameter and pass to
7551 lookup_partial_symbol.
7552 (find_symbol_file_from_partial): Likewise.
7553
c91513d8
PP
75542011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7555
7556 PR gdb/12528
7557 * dwarf2read.c (noop_record_line): New function.
7558 (dwarf_decode_lines): Ignore line tables for GCd functions.
7559
b37520b6
PM
75602011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7561
7562 Fix ARI warnings about new lines at the end of messages, which
7563 are unneeded as there is a new line added at the end of the message
7564 automatically.
7565 * darwin-nat.c (darwin_stop_inferior): Ditto.
7566 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7567 * dfp.c (decimal_to_number): Ditto.
7568 * exec.c (print_section_info): Ditto.
7569 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7570 * osdata.c (get_osdata): Ditto.
7571 * record.c (bfdcore_write): Ditto.
7572 * remote-mips.c (mips_readchar): Ditto.
7573 * remote.c (read_ptid): Ditto.
7574 * ser-mingw.c (ser_windows_raw): Ditto.
7575 * tracepoint.c (add_local_symbols): Ditto.
7576 * windows-nat.c (fake_create_process): Ditto.
7577
b08ee6a2
TT
75782011-03-16 Tom Tromey <tromey@redhat.com>
7579
7580 * tracepoint.c (stop_tracing): Don't declare.
7581 * event-top.c (after_char_processing_hook): Add `(void)'.
7582
9a6f1302
PM
75832011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7584
7585 * NEWS: Add Parameter sub-classing description.
7586
7ceb86b1
KT
75872011-03-16 Kai Tietz <ktietz@redhat.com>
7588
7589 * MAINTAINERS: Update my e-mail address.
7590
efeff6cf
AT
75912011-03-15 Andreas Tobler <andreast@fgznet.ch>
7592
7593 * MAINTAINERS: Add myself for write after approval privileges.
7594
681c238c
MS
75952011-03-15 Michael Snyder <msnyder@vmware.com>
7596
f3df5b08
MS
7597 * frame.c (find_frame_sal): Assert sym is not null.
7598
13f6513c
MS
7599 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7600
50412521
MS
7601 * objc-lang.c (selectors_info): Check strchr for null result.
7602
681c238c
MS
7603 * stabsread.c (define_symbol): Guard against bad stabstring input.
7604
6ced1581
PM
76052011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7606
7607 Remove trailing spaces and tabulations from pascal language
7608 support sources.
7609 p-exp.y: Ditto.
7610 p-lang.c: Ditto.
7611 p-lang.h: Ditto.
7612 p-valprint.c: Ditto.
7613
9373cf26
JK
76142011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7615
7616 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7617 than LOW. Comment it.
7618 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7619 HIGHPC not strictly higher than LOWPC.
7620
9a1edae6
PM
76212011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7622
7623 Fix formatting of function declarations returning a pointer in
7624 previous commit.
7625 * varobj.c (varobj_add_child): Ditto.
7626 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7627 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7628
24e9cda0
UW
76292011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7630
7631 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7632 for the "generic" vector ABI used with GCC 4.3 and later.
7633 (ppc64_sysv_abi_return_value): Likewise.
7634
76352011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7636
7637 * infcall.c (call_function_by_hand): Function return value is
7638 always a non_lval, even when using struct_return.
7639
c9174737
PA
76402011-03-15 Pedro Alves <pedro@codesourcery.com>
7641
7642 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7643 (map_display_numbers): New.
7644 (do_delete_display): New.
7645 (undisplay_command): Use map_display_numbers.
7646 (do_enable_disable_display): New.
7647 (enable_disable_display_command): New function.
7648 (enable_display): Delete.
7649 (enable_display_command): New.
7650 (disable_display_command): Reimplement.
7651 (_initialize_printcmd): Adjust "enable display" command to use
7652 `enable_display_command' as callback.
7653
350c6c65
PM
76542011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7655
7656 * NEWS: Add Python breakpoint 'stop' operation.
7657
824446ad
PM
76582011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7659
7660 * NEWS: Delete duplicate entry. Fix typo.
7661
2021ad3a
PM
76622011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7663
7664 Fix ARI warning about function names in first column.
7665 Put prototype declaration on same line as return type.
7666 * objc-exp.y: Ditto.
7667 * p-exp.y: Ditto.
7668 * python/py-stopevent.h: Ditto.
7669 For long function names, split parameters to
7670 allow function name on same line as return type.
7671 * solib-pa64.c: Ditto.
7672 * varobj.c: Ditto.
7673 * varobj.h: Ditto.
7674 For long function declaration, use single line.
7675 * hppa-tdep.h: Ditto.
7676 * inferior.h: Ditto.
7677
7371cf6d
PM
76782011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7679
7680 * python/python.h: Declare gdbpy_should_stop and
7681 gdbpy_breakpoint_has_py_cond.
7682 * python/python.c: Add python.h to includes. Remove python.h from
7683 HAVE_PYTHON definition
7684 (gdbpy_should_stop): New dummy function.
7685 (gdbpy_breakpoint_has_py_cond): New dummy function.
7686 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7687 sub-classing capabilities.
7688 (gdbpy_should_stop): New function.
7689 (gdbpy_breakpoint_has_py_cond): New function.
7690 (local_setattro): New function.
7691 * breakpoint.c (condition_command): Add check for Python 'stop'
7692 operation.
7693 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7694 operation function as part of stop/continue tests.
7695
37b50a69
TT
76962011-03-14 Tom Tromey <tromey@redhat.com>
7697
7698 PR gdb/12576:
7699 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7700 (needs_frame_dwarf_call): Likewise.
7701
eeae04df
PM
77022011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7703
7704 Fix ARI warning about functions without parameters that do not
7705 use (void).
7706 * breakpoint.c (all_tracepoints): Replace () by (void).
7707 * f-exp.y (match_string_literal): Ditto.
7708 (yylex): Ditto.
7709 * m2-exp.y (yylex): Ditto.
7710 * mep-tdep.c (current_me_module): Ditto.
7711 (current_options): Ditto.
7712 (current_cop_data_bus_width): Ditto.
7713 (current_cr_names): Ditto.
7714 (current_cr_is_float): Ditto.
7715 (current_ccr_names): Ditto.
7716 * objc-exp.y (yylex): Ditto.
7717 * p-exp.y (yylex): Ditto.
7718 * remote.c (send_interrupt_sequence): Ditto.
7719 * tracepoint.c (current_trace_status): Ditto.
7720 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7721 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7722
6dc3565d
MS
77232011-03-11 Michael Snyder <msnyder@vmware.com>
7724
1427fe5e
MS
7725 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7726 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7727 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7728 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7729 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7730
60bc018f
MS
7731 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7732 (delete_async_event_handler): Ditto.
7733
f3be5b64
MS
7734 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7735
4c2d5724
MS
7736 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7737
6dc3565d
MS
7738 * top.c (set_verbose): Assert showcmd was found.
7739
4e6ca6d5
MG
77402011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7741
7742 * xtensa-tdep.c (warning_once): Correct style issues.
7743
815a83e4
YQ
77442011-03-11 Yao Qi <yao@codesourcery.com>
7745
7746 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7747
f2eb0bc8
AS
77482011-03-11 Andreas Schwab <schwab@redhat.com>
7749
7750 * common/aclocal.m4: Remove.
7751
b801de47
MG
77522011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7753
7754 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7755 (xtensa_write_register, xtensa_read_register): Likewise.
7756 (xtensa_hextochar): Removed.
7757 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7758
dbab50de
MG
77592011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7760
7761 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7762 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7763 (xtensa_alloc_frame_cache): Add initialization for new fields.
7764 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7765 (warning_once): New function.
7766 (xtensa_insn_kind): New item c0opc_and.
7767 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7768 (call0_track_op): Change arguments. New local variable litbase.
7769 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7770 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7771 in the prologue.
dbab50de 7772 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7773 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7774 Add the variety of updates to handle extended prologues, which now can
7775 conduct dynamic stack adjustments.
7776 (call0_frame_cache): Likewise.
7777 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7778 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7779
b2c04452
MS
77802011-03-10 Michael Snyder <msnyder@vmware.com>
7781
f8f67713
MS
7782 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7783 (cmd_qtframe): Ditto.
7784 (cmd_qtbuffer): Ditto.
7785 (cmd_bigqtbuffer): Ditto.
7786
197f0a60
TT
77872011-03-10 Tom Tromey <tromey@redhat.com>
7788
7789 * tracepoint.c (trace_actions_command): Update.
7790 * thread.c (thread_apply_command): Update.
7791 * reverse.c (delete_bookmark_command): Update.
7792 (bookmarks_info): Update.
7793 * printcmd.c (undisplay_command): Update.
7794 * memattr.c (mem_enable_command): Update.
7795 (mem_disable_command): Update.
7796 (mem_delete_command): Update.
7797 * inferior.c (detach_inferior_command): Update.
7798 (kill_inferior_command): Update.
7799 (remove_inferior_command): Update.
7800 * cli/cli-utils.h (struct get_number_or_range_state): New.
7801 (init_number_or_range): Declare.
7802 (get_number_or_range): Update.
7803 * cli/cli-utils.c (init_number_or_range): New function.
7804 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7805 static variables.
7806 (number_is_in_list): Update.
7807 * breakpoint.h (get_tracepoint_by_number): Update.
7808 * breakpoint.c (map_breakpoint_numbers): Update for change to
7809 get_number_or_range.
7810 (find_location_by_number): Use get_number, not
7811 get_number_or_range.
7812 (trace_pass_set_count): New function.
7813 (trace_pass_command): Update for change to get_number_or_range.
7814 Rework loop logic.
7815 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7816 'state' parameter.
7817
ecec24e6
PM
78182011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7819
7820 * python/py-param.c (add_setshow_generic): Add set/show callback
7821 parameters. Register Python object context.
7822 (get_show_value): New function.
7823 (get_set_value): New function.
7824 (call_doc_function): New function.
7825 (get_doc_string): Move behind get_show_value/get_set_value.
7826
6d6c6b1f
JK
78272011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7828
7829 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7830
68d6df83
MG
78312011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7832
dbab50de 7833 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7834 (xtensa_write_register): Likewise.
7835 (xtensa_hextochar): Add comment and update to match coding conventions.
7836 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7837 (execute_l32e, execute_s32e, execute_code): Update comments.
7838 (xtensa_exception_handler_t): Update to match coding conventions.
7839 (xtensa_insn_kind): Likewise.
7840
85c9d6a6
MS
78412011-03-09 Michael Snyder <msnyder@vmware.com>
7842
7843 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7844
91495617
PA
78452011-03-09 Pedro Alves <pedro@codesourcery.com>
7846
7847 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7848
eb8c0621
TT
78492011-03-09 Tom Tromey <tromey@redhat.com>
7850
7851 * thread.c (restore_selected_frame): Handle frame_level == -1.
7852 (make_cleanup_restore_current_thread): Use
7853 get_selected_frame_if_set.
7854 * frame.h (get_selected_frame_if_set): Declare.
7855 * frame.c (get_selected_frame_if_set): New function.
7856
9f37bbcc
PA
78572011-03-09 Pedro Alves <pedro@codesourcery.com>
7858
7859 * cli/cli-cmds.c (shell_escape): Use lbasename.
7860 * coffread.c (coff_start_symtab): Constify parameter.
7861 (complete_symtab): Constify `name' parameter.
7862 (coff_symtab_read): Constify `filestring' local.
7863 (coff_getfilename): Constify return and `result' local.
7864 Use lbasename.
7865 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7866 * linux-fork.c (info_checkpoints_command): Use lbasename.
7867 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7868 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7869 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7870 * procfs.c (procfs_make_note_section): Use lbasename.
7871 * tui/tui-io.c (printable_part): Constity return and parameter.
7872 Use lbasename.
7873 (print_filename): Constify parameters, and local `s'.
7874 (tui_rl_display_match_list): Constify local `temp'.
7875
f8de3c55
JK
78762011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7877
7878 Revert:
7879 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7880 Fix DWARF-3+ DW_AT_accessibility default assumption.
7881 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7882 cu->header.version >= 3.
7883
d9837b00
YQ
78842011-03-09 Yao Qi <yao@codesourcery.com>
7885
7886 * common/Makefile.in: Remove.
7887 * common/configure: Remove.
7888 * common/configure.ac: Remove.
7889
e637a4f5
YQ
78902011-03-09 Yao Qi <yao@codesourcery.com>
7891
7892 Revert:
7893 2011-02-11 Yao Qi <yao@codesourcery.com>
7894
7895 * common/Makefile.in: Add copyright header.
7896
7897 2011-02-11 Yao Qi <yao@codesourcery.com>
7898
7899 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7900 libcommon.a.
7901 * configure.ac: Add common to sub dir.
7902 * configure: Regenerate.
7903
f976a05d
MG
79042011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7905
7906 * xtensa-tdep.c (call0_ret): New function.
7907 (xtensa_skip_prologue): Speed up analysis.
7908
57041825
MG
79092011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7910
7911 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7912 while executing MI command -data-list-changed-registers.
7913
08b9c608
MG
79142011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7915
7916 * xtensa-tdep.c (xtensa_read_register): New function.
7917 (xtensa_write_register): New function.
7918 (xtensa_find_register_by_name): New function.
7919 (xtensa_windowed_frame_cache): Update comments in type description.
7920 (xtensa_frame_cache): Likewise.
7921 (xtensa_window_interrupt_insn): New function.
7922 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7923 (xtensa_insn_kind): Add new instructions.
7924 (rwx_special_register): New function.
7925 (call0_classify_opcode): Add new instructions to the analysis.
7926 (a0_saved, a7_saved, a11_saved): New variables.
7927 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7928 (execute_l32e): New function.
7929 (execute_s32e): New function.
7930 (xtensa_exception_handler_t): New type.
7931 (execute_code): New function.
7932 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7933 analysis for Xtensa Window Exception handlers.
7934
4d1acb11
MG
79352011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7936
98689b25
MG
7937 * xtensa-tdep.c (TX_PS): New.
7938 (windowing_enabled): Update to count for Call0 ABI.
7939 (xtensa_hextochar): New.
7940 (xtensa_init_reggroups): Make algorithm generic.
7941 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7942
79432011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7944
7945 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 7946
d3f323f3
MS
79472011-03-08 Michael Snyder <msnyder@vmware.com>
7948
3dcabaa8
MS
7949 * i386-tdep.c (i386_follow_jump): Check return value of
7950 target_read_memory.
7951 (i386_analyze_struct_return): Ditto.
7952 (i386_skip_probe): Ditto.
7953 (i386_match_insn): Ditto.
7954 (i386_skip_noop): Ditto.
7955 (i386_analyze_frame_setup): Ditto.
7956 (i386_analyze_register_saves): Ditto.
7957 (i386_skip_prologue): Ditto.
7958 (i386_skip_main_prologue): Ditto.
7959
13b3fd9b
MS
7960 * target.c (read_whatever_is_readable): Fix memory leak.
7961
d3f323f3
MS
7962 * i386-tdep.c (i386_process_record): Document fall through.
7963
421d5c74
JK
79642011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7965
7966 Fix DWARF-3+ DW_AT_accessibility default assumption.
7967 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7968 cu->header.version >= 3.
7969
63154eca
PA
79702011-03-08 Pedro Alves <pedro@codesourcery.com>
7971
7972 * remote.c (remote_check_symbols): Skip if the target has no
7973 execution.
7974
f1a507a1
JB
79752011-03-08 Joel Brobecker <brobecker@adacore.com>
7976
7977 * target.c (read_whatever_is_readable): Reformat comment,
7978 with a minor typo fix. Minor reformatting of the code.
7979
36073a92
YQ
79802011-03-08 Yao Qi <yao@codesourcery.com>
7981
7982 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7983 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7984 Use cached result instead of calling displaced_in_arm_mode again.
7985 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7986 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7987 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7988 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7989 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7990 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7991 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7992 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7993 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7994 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7995 (arm_catch_kernel_helper_return): Likewise.
7996 * gdb/arm-tdep.h : Update function declarations.
7997
d3f323f3 79982011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 7999
e0e40094
MS
8000 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8001
0b2381f5
MS
8002 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8003
0350914a
MS
8004 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8005
69feea6f
MS
8006 * elfread.c (elf_symtab_read): Stop memory leak.
8007
e6040cbd
MS
8008 * main.c (captured_main): Fix memory leak.
8009
052874e8
AS
80102011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8011
8012 * ada-lang.c (compare_names): Call is_name_suffix with string1
8013 instead of string2.
8014
b11896a5
TT
80152011-03-07 Tom Tromey <tromey@redhat.com>
8016
8017 * xcoffread.c (xcoff_sym_fns): Update.
8018 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8019 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8020 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8021 (symbol_file_add_with_addrs_or_offsets): Likewise.
8022 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8023 * somread.c (som_sym_fns): Update.
8024 * psymtab.h (require_partial_symbols): Declare.
8025 * psymtab.c (require_partial_symbols): New function.
8026 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8027 (ALL_OBJFILE_PSYMTABS): Undef.
8028 (ALL_PSYMTABS): Move from psympriv.h.
8029 (lookup_partial_symtab, find_pc_sect_psymtab)
8030 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8031 (find_last_source_symtab_from_partial)
8032 (forget_cached_source_info_partial)
8033 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8034 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8035 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8036 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8037 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8038 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8039 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8040 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8041 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8042 psymtabs.
8043 * mipsread.c (ecoff_sym_fns): Update.
8044 * machoread.c (macho_sym_fns): Update.
8045 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8046 (read_psyms): New function.
8047 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8048 (elf_sym_fns_lazy_psyms): New global.
8049 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8050 dwarf2_build_psymtabs.
8051 * dbxread.c (aout_sym_fns): Update.
8052 * coffread.c (coff_sym_fns): Update.
8053
fda326dd
TT
80542011-03-07 Tom Tromey <tromey@redhat.com>
8055
8056 * infrun.c (print_exited_reason): Include inferior id and pid in
8057 message.
8058
aeaec162
TT
80592011-03-07 Tom Tromey <tromey@redhat.com>
8060
8061 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8062 parameter.
8063 (target_has_execution_1): Update.
8064 (target_has_execution_current): Declare.
8065 (target_has_execution): Call target_has_execution_current.
8066 (default_child_has_execution): Update.
8067 * target.c (default_child_has_execution): Add 'the_ptid'
8068 parameter.
8069 (target_has_execution_1): Likewise.
8070 (target_has_execution_current): New function.
8071 (add_target): Update.
8072 (init_dummy_target): Update.
8073 * remote-m32r-sdi.c (m32r_has_execution): New function.
8074 (init_m32r_ops): Use it.
8075 * record.c (record_core_has_execution): Now static. Add
8076 'the_ptid' parameter.
8077 * inferior.c (have_live_inferiors): Don't save current thread.
8078 Use target_has_execution_1.
8079
08e14083
YQ
80802011-03-07 Yao Qi <yao@codesourcery.com>
8081
8082 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8083
c05d19c5
JB
80842011-03-07 Joel Brobecker <brobecker@adacore.com>
8085
8086 * elfread.c (elf_symtab_read): Minor reformatting.
8087
3e6ef9e4
JB
80882011-03-07 Joel Brobecker <brobecker@adacore.com>
8089
8090 * objc-lang.c (selectors_info): Minor reformatting.
8091
dbb8534f
JB
80922011-03-07 Joel Brobecker <brobecker@adacore.com>
8093
8094 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8095
dd70cc93
JB
80962011-03-07 Joel Brobecker <brobecker@adacore.com>
8097 Michael Snyder <msnyder@vmware.com>
8098
8099 * ada-valprint.c (ada_val_print_array): Move the declaration of
8100 "byte_order" and "elttype" inside the block where these variables
8101 are actually used. Remove some special handling for the case
8102 where "elttype" and "eltlen" are null. Replace by a comment
8103 and a couple of assertion checks.
8104
b27cf2b3
MS
81052011-03-05 Michael Snyder <msnyder@vmware.com>
8106
8107 * source.c (add_path): Replace semicolon at end of block.
8108 * dwarf2expr.c (execute_stack_op): Ditto.
8109
5387a0c6
MF
81102011-03-05 Mike Frysinger <vapier@gentoo.org>
8111
8112 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8113 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8114 (bfin-*-*): Likewise.
8115
e3aa49af
MS
81162011-03-05 Michael Snyder <msnyder@vmware.com>
8117
82ae4854
MS
8118 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8119 * mdebugread.c (parse_symbol): Ditto.
8120 * parse.c (parse_exp_in_context): Ditto.
8121 * source.c (add_path): Ditto.
8122 * utils.c (gnu_debuglink_crc32): Ditto.
8123 * varobj.c (variable_language): Ditto.
8124
e3aa49af
MS
8125 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8126
154f592e
MS
81272011-03-04 Michael Snyder <msnyder@vmware.com>
8128
da3ecdc6
MS
8129 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8130
9cc89665
MS
8131 * symfile.c (simple_overlay_update): Check for null return value
8132 from lookup_minimal_symbol.
8133
154f592e
MS
8134 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8135
63ffa6ee
TJB
81362011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8137
8138 * eval.c (parse_and_eval_address_1): Remove function.
8139 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8140 instead of parse_and_eval_address_1.
8141 * value.h (parse_and_eval_address_1): Remove prototype.
8142
a17d146e
MS
81432011-03-04 Michael Snyder <msnyder@vmware.com>
8144
8145 * remote.c (putpkt_binary): Document that case stmt falls through.
8146
1a6a67de
TJB
81472011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8148
8149 * breakpointc (print_it_typical): Move NULL check from here...
8150 (print_bp_stop_message): ... to here.
8151
488919c4
MS
81522011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8153
8154 * breakpoint.c (enable_command): Use break instead of continue,
8155 and fill in a missing break.
8156 (disable_command): Ditto.
8157
1e182ce8
UW
81582011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8159
8160 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8161 (terminal_save_ours): Remove misleading comment.
8162 (inflow_inferior_data_cleanup): Free ttystate.
8163 (inflow_inferior_exit): Likewise.
8164 (copy_terminal_info): Copy ttystate.
8165
8166 * serial.c (serial_copy_tty_state): New function.
8167 * serial.h (serial_copy_tty_state): Add prototype.
8168 (struct serial_ops): Add copy_tty_state callback.
8169 * ser-base.c (ser_base_copy_tty_state): New function.
8170 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8171 * ser-go32.c (dos_copy_tty_state): New function.
8172 (dos_ops): Install copy_tty_state callback.
8173 * ser-mingw.c (_initialize_ser_windows): Likewise.
8174 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8175 * ser-unix.c (hardwire_copy_tty_state): New function.
8176 (_initialize_ser_hardwire): Install it.
8177
b2c5f112
MS
81782011-03-04 Michael Snyder <msnyder@vmware.com>
8179
2abae994
MS
8180 * breakpoint.c (create_breakpoint): Add missing break statement.
8181
7f5936f9
MS
8182 Reverting this patch:
8183 * infcall.c (call_function_by_hand): Add break statements for lint.
8184
b2c5f112
MS
8185 Reverting this patch:
8186 * cli/cli-script.c (script_from_file): Add break for lint.
8187
42b1321c
MS
81882011-03-04 Michael Snyder <msnyder@vmware.com>
8189
8190 * solib.c (reload_shared_libraries_1): Close memory leak.
8191
3e2a0cee
TT
81922011-03-03 Tom Tromey <tromey@redhat.com>
8193
8194 PR gdb/12538:
8195 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8196 DW_STRING is NULL.
8197
58397cb7
MS
81982011-03-03 Michael Snyder <msnyder@vmware.com>
8199
2e3fd767
MS
8200 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8201 fields of struct 'st' to zero.
8202
58397cb7
MS
8203 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8204 sal.pspace before calling set_current_source_symtab_and_line.
8205
ced54c8f
YQ
82062011-03-03 Yao Qi <yao@codesourcery.com>
8207
8208 * Makefile.in (configure-common): Remove. Let Makefile
8209 in dir common to rebuild itself.
8210 (common/Makefile): Likewise.
8211
3351ea09
JB
82122011-03-03 Joel Brobecker <brobecker@adacore.com>
8213
8214 * utils.c (parse_escape): Add i18n markup in error message.
8215
bf9f652a
YQ
82162011-03-03 Yao Qi <yao@codesourcery.com>
8217
8218 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8219 ARM_PC_REGNUM.
8220 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8221 (displaced_write_reg, displaced_read_reg): Likewise.
8222 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8223 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8224 (cleanup_branch): Replace magic number 14 and 15 with
8225 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8226
d42de051
MS
82272011-03-02 Michael Snyder <msnyder@vmware.com>
8228
240f9570
MS
8229 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8230
10dd8b54
MS
8231 * cli/cli-script.c (script_from_file): Add break for lint.
8232
b98bd911
MS
8233 * mdebugread.c (parse_partial_symbols): Fix indent.
8234
3494b66d
MS
8235 * target-descriptions.c (tdesc_gdb_type): No need to call
8236 xstrdup, callee saves a copy.
8237
daac021a
MS
8238 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8239
c38d16a7
MS
8240 * infcall.c (call_function_by_hand): Add break statements for lint.
8241
905b671b
MS
8242 * utils.c (parse_escape): Escape the escape char.
8243
f2eb0bc8 8244 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8245 PyList_Append fails.
8246 (gdbpy_inferiors): Error out if build_inferior_list fails.
8247
8c6a60d1
MS
8248 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8249 a function call.
8250
d42de051
MS
8251 * record.c (record_restore): Move printf to before error return.
8252
4db71c0b
YQ
82532011-03-02 Yao Qi <yao@codesourcery.com>
8254
8255 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8256 is_thumb and insn_size.
8257 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8258 on both ARM and Thumb mode.
8259 (arm_process_displaced_insn): Set is_thumb and insn_size.
8260 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8261 (arm_displaced_step_fixup): Likewise.
8262
a9dc8dcc
MS
82632011-03-01 Michael Snyder <msnyder@vmware.com>
8264
53624a93
MS
8265 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8266
77766669
MS
8267 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8268
62d5b8da
MS
8269 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8270
5e9e105f
MS
8271 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8272
dc19db01
MS
8273 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8274 with xmalloc.
8275
5ce64950
MS
8276 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8277 which shadows function parameter.
8278
a0aa2878
MS
8279 * tracepoint.c (create_tsv_from_upload): Superfluous call
8280 to xstrdup. Callee already calls xstrdup.
8281
e325fb69
MS
8282 * linespec.c (decode_line_1): Remove unnecessary null check.
8283
21cbba77
MS
8284 * tracepoint.c (scope_info): Fix mem leak, remove underused
8285 variable.
8286
63360adc
MS
8287 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8288 superfluous null check.
8289
18ea20ac 8290 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8291 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8292
d014929c
MS
8293 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8294
6e9130cf
MS
8295 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8296 be null.
8297
5f01dbc0
MS
8298 * linespec.c (decode_line_1): Check for null before dereference.
8299
d684ab85
MS
8300 * reverse.c (record_restore): Move null-check to before pointer
8301 dereference.
8302
bfffb7e3
MS
8303 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8304
a9dc8dcc
MS
8305 * objc-lang.c (selectors_info): Add explanitory comment.
8306 (classes_info): Ditto.
8307
478fd957
UW
83082011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8309
8310 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8311 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8312 versions of the trampoline. Handle Thumb vs. ARM addresses.
8313 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8314 (arm_linux_init_abi): Install it.
8315 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8316 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8317
0480cefa
MS
83182011-02-28 Michael Snyder <msnyder@vmware.com>
8319
ac50ab3b
MS
8320 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8321 a little bigger, to avoid possibility of an overflow.
8322
f63fbe86
MS
8323 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8324 buffers a little bigger, to avoid possibility of an overflow.
8325
9e91a352
MS
8326 * coffread.c (coff_getfilename): Add check to avoid overflow.
8327
f2eb0bc8 8328 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8329 avoid overflow.
8330 (classes_info): Error out on too long REGEXP.
8331
098ab512
MS
8332 * infrun.c (handle_inferior_event): Remove unused function call.
8333
bcbd1de9
MS
8334 * fork-child.c (fork_inferior): Remove ifdef'd code and
8335 unused variable.
8336
2e456570
MS
8337 * linux-thread-db.c (attach_thread): Discard unused value.
8338
14571dad
MS
8339 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8340
a9cbf802
MS
8341 * remote.c (remote_get_noisy_reply): Discard unused value.
8342 (remote_vcont_resume): Ditto.
8343 (remote_stop_ns): Ditto.
8344
5715d26e
MS
8345 * linespec.c (decode_objc): Delete unused variable.
8346
4a9bca80
MS
8347 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8348
f47fb265
MS
8349 * dwarf2read.c (add_partial_symbol): Discard unused values.
8350 (read_base_type): Delete unused variable.
8351
e81cff30
MS
8352 * dbxread.c (read_dbx_symtab): Discard unused value.
8353
262acaeb
MS
8354 * eval.c (evaluate_subexp_standard): Delete unused variable,
8355 and discard unused values.
8356
df983543
MS
8357 * infcmd.c (_initialize_infcmd): Discard unused values.
8358
89acf84d
MS
8359 * stabsread.c (rs6000_builtin_type): Missing break statement.
8360
ab8b8aca
MS
8361 * dbxread.c (process_one_symbol): Discard unused value.
8362
6b4511ab
MS
8363 * coffread.c (coff_end_symtab): Delete unused variable.
8364
e8e80198
MS
8365 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8366 (dwarf2_add_typedef): Delete unused variable.
8367 (read_namespace): Ditto.
8368 (dwarf_decode_macros): Ditto.
8369
976aa66e
MS
8370 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8371
5b92b49f
MS
8372 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8373
91e8df85
MS
8374 * p-valprint.c (pascal_val_print): Discard unused value.
8375
899500d6
MS
8376 * utils.c (nquery): Call va_end before return;
8377 (yquery): Ditto.
8378 (query): Ditto.
8379
0480cefa
MS
8380 * proc-service.c (ps_plog): Call va_end before return.
8381
fb6a3ed3
TT
83822011-02-28 Tom Tromey <tromey@redhat.com>
8383
8384 * python/python.c (gdbpy_value_cst): New global.
8385 (_initialize_python): Initialize it.
8386 * python/python-internal.h (gdbpy_value_cst): Declare.
8387 * python/py-value.c (convert_value_from_python): Use
8388 gdbpy_value_cst.
8389
c05202a1
MS
83902011-02-28 Michael Snyder <msnyder@vmware.com>
8391
e463f587
MS
8392 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8393
c38eea1a
MS
8394 * breakpoint.c (catch_syscall_completer): Free malloced list.
8395
3ef09ab5
MS
8396 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8397
8f9a01ee
MS
8398 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8399 (lval_func_check_synthetic_pointer): Ditto.
8400 (lval_func_free_closure): Fix use-after-free.
c05202a1 8401
477d0d57
TT
84022011-02-28 Tom Tromey <tromey@redhat.com>
8403
8404 * psymtab.c (expand_partial_symbol_tables): Use
8405 ALL_OBJFILE_PSYMTABS.
8406
20937029
JK
84072011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8408
8409 * objc-lang.c (selectors_info): Error on too long REGEXP.
8410
907b7f4f
MS
84112011-02-28 Michael Snyder <msnyder@vmware.com>
8412
92e96192
MS
8413 * python/py-param.c (set_parameter_value): Add missing
8414 break statement.
8415
907b7f4f
MS
8416 * linux-record.c (record_linux_system_call): Add missing
8417 break statement.
8418
12c5a436
UW
84192011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8420
8421 * breakpoint.c (print_one_breakpoint_location): Remove unused
8422 argument PRINT_ADDRESS_BITS. Update callers.
8423 (print_one_breakpoint): Likewise.
8424
170b53b2
UW
84252011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8426
8427 * breakpoint.c (wrap_indent_at_field): New function.
8428 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8429 Allocate ui_stream locally instead of using STB argument.
8430 (print_one_breakpoint_location): Update call.
8431 * ui-out.c (ui_out_query_field): New function.
8432 * ui-out.h (ui_out_query_field): Add prototype.
8433
8ab1f94d
JB
84342011-02-28 Joel Brobecker <brobecker@adacore.com>
8435
8436 From Michael Snyder <msnyder@vmware.com>
8437 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8438
7d488639
MS
84392011-02-27 Michael Snyder <msnyder@vmware.com>
8440
ae179fba
MS
8441 * objc-lang.c (selectors_info): Prevent string overrun.
8442
086dbf66
MS
8443 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8444 error in strncpy.
8445
f2eb0bc8 8446 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8447 outer scope.
8448
7d488639
MS
8449 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8450 param with a local variable of the same name.
8451
3bd0f5ef
MS
84522011-02-27 Michael Snyder <msnyder@vmware.com>
8453
8454 * value.c (value_from_history_ref): New function.
8455 * value.h (value_from_history_ref): Export.
8456 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8457 to parse value history references.
8458 * cli/cli-utils.h (get_number_trailer): Update comment.
8459
84602011-02-27 Michael Snyder <msnyder@vmware.com>
8461
8462 * inferior.c (detach_inferior_command): Use get_number_or_range.
8463 (kill_inferior_command): Ditto.
8464 (remove_inferior_command): Ditto.
8465 (initialize_inferiors): Make command names plural.
8466 Update help strings.
8467
766062f6
MS
84682011-02-27 Michael Snyder <msnyder@vmware.com>
8469
8470 * darwin-nat-info.c: Fix comment typo.
8471 * dwarf2expr.h: Ditto.
8472 * fbsd-nat.c: Ditto.
8473 * fbsd-nat.h: Ditto.
8474 * frame-unwind.h: Ditto.
8475 * frame.h: Ditto.
8476 * hppa-hpux-tdep.c: Ditto.
8477 * i386-linux-nat.c: Ditto.
8478 * linux-nat.c: Ditto.
8479 * nbsd-nat.c: Ditto.
8480 * nbsd-nat.h: Ditto.
8481 * ppc-linux-tdep.c: Ditto.
8482 * serial.c: Ditto.
8483 * ui-file.h: Ditto.
8484 * tui/tui-winsource.c: Ditto.
8485
f2c4ead5
MS
84862011-02-26 Michael Snyder <msnyder@vmware.com>
8487
86b887df
MS
8488 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8489
66fd3b1e
MS
8490 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8491
8c814cdd
MS
8492 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8493 with a local variable of the same name.
8494
6d5e094a 8495 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8496 param with a local variable of the same name.
6d5e094a 8497 (i387_supply_xsave): Ditto.
e5b3d7d6 8498
5eee517d
MS
8499 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8500 that it does not shadow a function parameter.
8501
8fbf6b93
MS
8502 * i386-nat.c (i386_length_and_rw_bits): Document that case
8503 statement is meant to fall through.
8504
cb969d61
MS
8505 * expprint.c (dump_subexp_body_standard): Document that case
8506 statement is meant to fall through.
8507
f2c4ead5
MS
8508 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8509 dead if statement. Condition can't be false.
8510
b021a221
MS
85112011-02-25 Michael Snyder <msnyder@vmware.com>
8512
8513 * arm-tdep.c: Fix typos in comments.
8514 * bsd-uthread.c: Ditto.
8515 * completer.c: Ditto.
8516 * corelow.c: Ditto.
8517 * cp-namespace.c: Ditto.
8518 * cp-support.c: Ditto.
8519 * cris-tdep.c: Ditto.
8520 * dbxread.c: Ditto.
8521 * dwarf2read.c: Ditto.
8522 * frame.h: Ditto.
8523 * gdbtypes.h: Ditto.
8524 * inferior.h: Ditto.
8525 * mdebugread.c: Ditto.
8526 * mips-tdep.c: Ditto.
8527 * ppc-linux-nat.c: Ditto.
8528 * ppc-linux-tdep.c: Ditto.
8529 * printcmd.c: Ditto.
8530 * sol-thread.c: Ditto.
8531 * solib-frv.c: Ditto.
8532 * solist.h: Ditto.
8533 * sparc64-tdep.c: Ditto.
8534 * spu-tdep.c: Ditto.
8535 * stabsread.c: Ditto.
8536 * symfile.c: Ditto.
8537 * valops.c: Ditto.
8538 * varobj.c: Ditto.
8539 * vax-nat.c: Ditto.
8540 * python/py-block.c: Ditto.
8541 * python/py-symbol.c: Ditto.
8542 * python/py-symtab.c: Ditto.
8543 * python/py-value.c: Ditto.
8544 * tui/tui-win.c: Ditto.
8545
c82c0b55
MS
85462011-02-25 Michael Snyder <msnyder@vmware.com>
8547
8548 * inferior.c (print_inferior): Accept a string instead of an int
8549 for requested_inferiors, and use get_number_or_range to parse it.
8550 (info_inferiors_command): Pass args string to print_inferior.
8551 (initialize_inferiors): Change help string for info inferiors.
8552 * inferior.h (print_inferior): Export prototype change.
8553
ee00cd23
TT
85542011-02-25 Tom Tromey <tromey@redhat.com>
8555
8556 * common/ax.def (invalid2): Set to 0x31.
8557
0502ed8c
JK
85582011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8559
8560 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8561 L and plongest.
8562 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8563 use L and plongest.
8564 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8565
2c9de912
MS
85662011-02-24 Michael Snyder <msnyder@vmware.com>
8567
8568 * Makefile.in (clean): Make clean should remove generated files
8569 observer.h and observer.inc.
8570
a04b0428
JB
85712011-02-24 Joel Brobecker <brobecker@adacore.com>
8572
8573 Revert the following patch (not approved yet):
8574 2011-02-21 Hui Zhu <teawater@gmail.com>
8575 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8576 * ax-gdb.c (gen_printf_expr_callback): New function.
8577 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8578 * ax-general.c (ax_memcpy): New function.
8579 (ax_print): Handle "printf".
8580 (ax_reqs): Ditto.
8581 * ax.h (ax_memcpy): Forward declare.
8582 * common/ax.def (invalid2): Removed.
8583 (printf): New entry.
8584 * printcmd.c (printcmd.h): New include.
8585 (string_printf): New function.
8586 (ui_printf): Removed.
8587 (printf_command): Remove static. Call string_printf.
8588 (eval_command): Call string_printf.
8589 * printcmd.h: New file.
8590 * tracepoint.c (validate_actionline,
8591 encode_actions_1): handle printf_command.
8592
2b52013f
TT
85932011-02-23 Tom Tromey <tromey@redhat.com>
8594
8595 * ax-general.c (ax_pick): Add missing newline.
8596
e5a67952
MS
85972011-02-23 Michael Snyder <msnyder@vmware.com>
8598
8599 * breakpoint.c (breakpoint_1): Change first argument from an int
8600 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8601 breakpoints rather than just one. Use new function
e5a67952
MS
8602 'number_is_in_list' to implement.
8603 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8604 (watchpoints_info): Ditto.
8605 (tracepoints_info): Ditto.
8606 (maintenance_info_breakpoints): Ditto.
8607 (_initialize_breakpoint): Update help strings to reflect the fact
8608 that these functions can now take more than one argument.
8609 * cli/cli-utils.c (number_is_in_list): New function.
8610 * cli/cli-utils.h (number_is_in_list): Export.
8611
86122011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8613
8614 * memattr.c (mem_enable_command): Use get_number_or_range.
8615 (mem_disable_command): Ditto.
8616 (mem_delete_command): Ditto.
8617 (_initialize_mem): Tweak usage message to reflect multiple
8618 arguments.
8619
6e6fbe60
DE
86202011-02-22 Doug Evans <dje@google.com>
8621
8622 Add gdb.lookup_global_symbol python function.
8623 * NEWS: Add entry.
8624 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8625 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8626 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8627
79b97fa8
TT
86282011-02-22 Tom Tromey <tromey@redhat.com>
8629
8630 * language.c (language_class_name_from_physname): Rename
8631 'curr_language' argument to 'lang'; use in body.
8632
298f437a
MS
86332011-02-22 Michael Snyder <msnyder@vmware.com>
8634
8635 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8636
b7ea3126
PA
86372011-02-22 Pedro Alves <pedro@codesourcery.com>
8638
8639 * frame-unwind.h: Fix comment to mention the this frame, not the
8640 next.
8641
58ee6d60
TT
86422011-02-22 Tom Tromey <tromey@redhat.com>
8643
8644 * symfile.c (auto_solib_limit): Remove.
8645 * symfile.h (auto_solib_limit): Remove.
8646
36238dbc
JB
86472011-02-22 Joel Brobecker <brobecker@adacore.com>
8648
8649 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8650
aea5b279
MS
86512011-02-21 Michael Snyder <msnyder@vmware.com>
8652
8653 * gdbthread.h (print_thread_info): Change prototype.
8654 * thread.c (print_thread_info): Accept char* instead of int for
8655 requested_threads argument. Use new function number_is_in_list
8656 to determine which threads to list.
8657 (info_threads_command): Pass char* to print_thread_info.
8658 * cli/cli-utils.c (number_is_in_list): New function.
8659 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8660 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8661 print_thread_info.
8662 (print_one_inferior): Ditto.
8663 (mi_cmd_list_thread_groups): Ditto.
8664
8caa75ee
JK
86652011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8666
8667 * common/Makefile.in (CFLAGS): New.
8668 (COMPILE): Add $(CFLAGS).
8669
ea666128
TT
86702011-02-21 Tom Tromey <tromey@redhat.com>
8671
8672 * breakpoint.c (catch_syscall_command_1): Fix typo.
8673
e9cafbcc
TT
86742011-02-21 Tom Tromey <tromey@redhat.com>
8675
8676 * reverse.c: Include cli-utils.h.
8677 * printcmd.c: Include cli-utils.h.
8678 (string_printf): Use skip_spaces.
8679 * cli/cli-utils.h: New file.
8680 * cli/cli-utils.c: New file.
8681 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8682 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8683 * breakpoint.h (get_number, get_number_or_range): Move to
8684 cli-utils.h.
8685 * breakpoint.c: Include cli-utils.h.
8686 (get_number_trailer, get_number, get_number_or_range)
8687 (ep_skip_leading_whitespace): Move to cli-utils.c.
8688 (create_breakpoint_sal, find_condition_and_thread)
8689 (decode_static_tracepoint_spec, watch_command_1)
8690 (watch_maybe_just_location, ep_parse_optional_if_clause)
8691 (catch_fork_command_1, catch_exec_command_1)
8692 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8693 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8694 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8695 (HFILES_NO_SRCDIR): Add cli-utils.h.
8696 (cli-utils.o): New target.
8697
f67fd822
PM
86982011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8699
8700 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8701 before calling discard_all_inferiors.
8702
c9def01d
UW
87032011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8704
8705 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8706 (struct builtin_opencl_type): Remove.
8707 (builtin_opencl_type): Change return type to "struct type **".
8708 (lookup_opencl_vector_type): Update caller.
8709 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8710 (build_opencl_types): Install plain array of "struct type *"
8711 instead of "struct builtin_opencl_type".
8712
e3039479
UW
87132011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8714 Ulrich Weigand <uweigand@de.ibm.com>
8715
8716 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8717 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8718 (struct arm_linux_hwbp_cap): New type.
8719 (arm_linux_get_hwbp_cap): New function.
8720 (arm_linux_get_hw_breakpoint_count): Likewise.
8721 (arm_linux_get_hw_watchpoint_count): Likewise.
8722 (arm_linux_can_use_hw_breakpoint): Likewise.
8723 (arm_hwbp_type): New type.
8724 (arm_hwbp_control_t): Likewise.
8725 (struct arm_linux_hw_breakpoint): Likewise.
8726 (struct arm_linux_thread_points): Likewise.
8727 (arm_threads): New global variable.
8728 (arm_linux_find_breakpoints_by_tid): New function.
8729 (arm_hwbp_control_initialize): Likewise.
8730 (arm_hwbp_control_is_enabled): Likewise.
8731 (arm_hwbp_control_disable): Likewise.
8732 (arm_linux_hw_breakpoint_initialize): Likewise.
8733 (arm_linux_get_hwbp_type): Likewise.
8734 (arm_linux_hw_watchpoint_initialize): Likewise.
8735 (arm_linux_hw_breakpoint_equal): Likewise.
8736 (arm_linux_insert_hw_breakpoint1): Likewise.
8737 (arm_linux_remove_hw_breakpoint1): Likewise.
8738 (arm_linux_insert_hw_breakpoint): Likewise.
8739 (arm_linux_remove_hw_breakpoint): Likewise.
8740 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8741 (arm_linux_insert_watchpoint): Likewise.
8742 (arm_linux_remove_watchpoint): Likewise.
8743 (arm_linux_stopped_data_address): Likewise.
8744 (arm_linux_stopped_by_watchpoint): Likewise.
8745 (arm_linux_watchpoint_addr_within_range): Likewise.
8746 (arm_linux_new_thread): Likewise.
8747 (arm_linux_thread_exit): Likewise.
8748 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8749 related target callbacks. Register arm_linux_new_thread and
8750 arm_linux_thread_exit.
8751 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8752 * arm-tdep.c (arm_pc_is_thumb): Make global.
8753 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8754
b5db5dfc
UW
87552011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8756
8757 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8758 per-frame locations while within a function epilogue.
8759
e25b2cfa
PM
87602011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8761
8762 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8763 to GNU coding standards.
8764
4af53f97
PM
87652011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8766
8767 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8768 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8769 (ser_windows_close): Only call CancelIo if function exists.
8770 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8771 to check for existence of CancelIo function in kernel32 DLL.
8772
d0e92d82
HZ
87732011-02-21 Hui Zhu <teawater@gmail.com>
8774
8775 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8776 * ax-gdb.c (gen_printf_expr_callback): New function.
8777 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8778 * ax-general.c (ax_memcpy): New function.
8779 (ax_print): Handle "printf".
8780 (ax_reqs): Ditto.
8781 * ax.h (ax_memcpy): Forward declare.
8782 * common/ax.def (invalid2): Removed.
8783 (printf): New entry.
8784 * printcmd.c (printcmd.h): New include.
8785 (string_printf): New function.
8786 (ui_printf): Removed.
8787 (printf_command): Remove static. Call string_printf.
8788 (eval_command): Call string_printf.
8789 * printcmd.h: New file.
8790 * tracepoint.c (validate_actionline,
8791 encode_actions_1): handle printf_command.
8792
7d357efd
MS
87932011-02-19 Michael Snyder <msnyder@vmware.com>
8794
8795 * reverse.c (delete_one_bookmark): Argument is now bookmark
8796 id rather than pointer to bookmark struct.
8797 (delete_bookmark_command): Use get_number_or_range.
8798 (goto_bookmark_command): Parse with get_number instead of strtoul.
8799 (bookmark_1): New function. Print info for one bookmark.
8800 (bookmarks_info): Use get_number_or_range and bookmark_1.
8801
7a45ebd7
MS
88022011-02-18 Michael Snyder <msnyder@vmware.com>
8803
f2eb0bc8 8804 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8805 get_number_or_range.
65ebfb52 8806 (thread_apply_command): Ditto.
7a45ebd7 8807
94d5e490
TT
88082011-02-18 Tom Tromey <tromey@redhat.com>
8809
8810 * common/ax.def: New file.
8811 * ax.h (enum agent_op): Use ax.def.
8812 * ax-general.c (aop_map): Use ax.def.
8813
c7f96d2b
TT
88142011-02-18 Tom Tromey <tromey@redhat.com>
8815
8816 * ax-general.c (aop_map): Add pick and rot.
8817 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8818 <DW_OP_rot>: Implement.
8819 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8820 (ax_pick): Declare.
8821 * ax-general.c (ax_pick): New function.
8822
66694b75
TT
88232011-02-18 Tom Tromey <tromey@redhat.com>
8824
8825 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8826
eeaafae2
JK
88272011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8828 Tom Tromey <tromey@redhat.com>
8829
8830 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8831 make_symbol_overload_list_block with NULL BLOCK.
8832 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8833
3c3fe74c
PA
88342011-02-18 Pedro Alves <pedro@codesourcery.com>
8835
8836 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8837 * breakpoint.h (get_number_or_range): Declare.
8838 * printcmd.c (ALL_DISPLAYS): Declare.
8839 (delete_display): Reimplement taking a display pointer.
8840 (undisplay_command): Accept a range of displays to delete, using
8841 get_number_or_range.
8842
13163d80
PM
88432011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8844
8845 * c-valprint.c (c_val_print): Add embedded_offset to address
8846 for arrays of unspecified length.
8847 * p-valprint.c (pascal_val_print): Likewise.
8848
b434a28f
YQ
88492011-02-18 Yao Qi <yao@codesourcery.com>
8850
8851 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8852 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8853 (thumb_process_displaced_insn): New.
8854 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8855 call to arm_process_displaced_insn.
8856 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8857
9f6f94ff
TT
88582011-02-17 Tom Tromey <tromey@redhat.com>
8859
8860 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8861 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8862 compile_dwarf_to_ax. No longer static. Call
8863 dwarf2_compile_cfa_to_ax.
8864 (locexpr_tracepoint_var_ref): Update.
8865 (loclist_tracepoint_var_ref): Update.
8866 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8867 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8868 argument; add 'gdbarch' and 'pc'.
8869 (dwarf2_compile_cfa_to_ax): New function.
8870 (dwarf2_frame_cache): Update.
8871
e67ad678
JB
88722011-02-17 Joel Brobecker <brobecker@adacore.com>
8873
8874 * ada-lang.c (ada_type_of_array): Fix the size of the array
8875 in the case of an unconstrained packed array.
8876
946ebb0d
YQ
88772011-02-17 Yao Qi <yao@codesourcery.com>
8878
8879 * common/Makefile.in: Add more targets for make.
8880
1ba1b353
TT
88812011-02-16 Tom Tromey <tromey@redhat.com>
8882
8883 * dwarf2loc.c (unimplemented): Fix typo.
8884
b1bfef65
TT
88852011-02-16 Tom Tromey <tromey@redhat.com>
8886
8887 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8888 (compile_dwarf_to_ax) <default>: Use unimplemented.
8889 <DW_OP_deref>: Update.
8890 (disassemble_dwarf_expression): Update.
8891 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8892 (decode_locdesc): Update.
8893 * dwarf2expr.h (dwarf_stack_op_name): Update.
8894
5f1e6f19
TT
88952011-02-16 Tom Tromey <tromey@redhat.com>
8896
8897 * ax.h (struct aop_map) <name>: Now const.
8898
a0c78a73
PA
88992011-02-16 Tom Tromey <tromey@redhat.com>
8900
8901 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8902 than axs_rvalue.
8903
946ebb0d 89042011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
8905
8906 * infrun.c (get_displaced_step_closure_by_addr): New.
8907 * inferior.h: Declare it.
8908 * arm-tdep.c: (arm_pc_is_thumb): Call
8909 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8910 returns non-NULL.
8911
08807d5a
PA
89122011-02-16 Pedro Alves <pedro@codesourcery.com>
8913 Jan Kratochvil <jan.kratochvil@redhat.com>
8914
8915 gdb/
8916 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8917
29976f3f
PA
89182011-02-16 Pedro Alves <pedro@codesourcery.com>
8919 Jan Kratochvil <jan.kratochvil@redhat.com>
8920
8921 * value.c (value_contents_copy_raw): Extend describing comment.
8922 Assert that the destination contents we're overwriting are wholly
8923 available.
fb68ae73 8924 (value_contents_copy): Extend describing comment.
29976f3f 8925
cd24cfaa
PA
89262011-02-16 Pedro Alves <pedro@codesourcery.com>
8927 Jan Kratochvil <jan.kratochvil@redhat.com>
8928
8929 * value.c (value_available_contents_eq): Remove redundant local
8930 variables. Fix available contents comparision.
8931 * value.h (value_available_contents_eq): Extend describing
8932 comment.
8933
60bbf338
YQ
89342011-02-16 Yao Qi <yao@codesourcery.com>
8935
8936 * thread.c (info_threads_command): Add missing i18n markup and remove
8937 trailing newline.
8938
17450429
PP
89392011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8940
8941 * breakpoint.c (longjmp_names): New variable.
8942 (struct breakpoint_objfile_data): New type.
8943 (breakpoint_objfile_key): New variable.
8944 (msym_not_found): New variable.
8945 (msym_not_found_p): New predicate.
8946 (get_breakpoint_objfile_data): New function.
8947 (create_overlay_event_breakpoint): Check per-objfile cache for
8948 symbols first.
8949 (create_longjmp_master_breakpoint): Likewise.
8950 (create_std_terminate_master_breakpoint): Likewise.
8951 (create_exception_master_breakpoint): Likewise.
8952 (_initialize_breakpoint): Register per-objfile data key.
8953
af02033e
PP
89542011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8955
8956 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8957 parameter value.
8958 (create_longjmp_master_breakpoint): Loop over longjmp names.
8959 (create_std_terminate_master_breakpoint): Const-propagate parameter
8960 value.
8961 (update_breakpoints_after_exec): Adjust.
8962 (breakpoint_re_set): Adjust.
8963
60f98dde
MS
89642011-02-15 Michael Snyder <msnyder@vmware.com>
8965
cdf99611
MS
8966 * thread.c (info_threads_command): Process arg as thread id,
8967 or list of thread ids.
8968 (thread_find_command): New command.
8969 (_initialize_thread): Document argument for info threads.
8970 Document 'thread find' command.
8971 * NEWS: Document new command "thread find".
60f98dde 8972
0feedb2c
JK
89732011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8974
8975 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8976 * aclocal.m4: Regenerated with aclocal-1.11.1.
8977 * common/configure: Regenerate with autoconf-2.64.
8978
648cd113
KW
89792011-02-15 Ken Werner <ken.werner@de.ibm.com>
8980
8981 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8982 bool data type to a size of one byte.
8983
5657161f
PA
89842011-02-15 Pedro Alves <pedro@codesourcery.com>
8985 Jan Kratochvil <jan.kratochvil@redhat.com>
8986
8987 * target.c (memory_xfer_live_readonly_partial): Document where to
8988 look for interface description.
8989
494e194e
YQ
89902011-02-15 Yao Qi <yao@codesourcery.com>
8991
8992 PR tdep/12352
8993 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8994 order to store PC value on stack instead of text section.
8995
d9492458
TJB
89962011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8997
8998 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8999 the EFP register set size.
9000 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9001 data from the VMX register.
9002 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9003 and write data from/to the VMX register.
9004
cdf99611
MS
90052011-02-14 Michael Snyder <msnyder@vmware.com>
9006
9007 * command.h (enum command_class): New class 'no_set_class', for
9008 "show" commands without a corresponding "set" command.
9009 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9010 * copying.c (_initialize_copying): Ditto for "show copying" and
9011 "show warranty".
9012 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9013 "show version".
9014 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9015 which there is no corresponding "set" command (eg. "show copying").
9016
424447ee
PA
90172011-02-14 Pedro Alves <pedro@codesourcery.com>
9018 Jan Kratochvil <jan.kratochvil@redhat.com>
9019
9020 * exec.c (section_table_available_memory): Change `len' parameter
9021 type to ULONGEST.
9022 * exec.h (section_table_available_memory): Ditto.
9023 * value.h (read_value_memory): Rename the `offset' parameter to
9024 `embedded_offset'.
9025
c0f61f9c 90262011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9027 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9028
9029 * memrange.c (compare_mem_ranges): Mention sort order in
9030 describing comment.
9031 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9032 * tracepoint.c (traceframe_available_memory): Extend comment to
9033 mention what happens to RESULT when the target does not support
9034 the query.
9035
6bfc80c7
PA
90362011-02-14 Pedro Alves <pedro@codesourcery.com>
9037 Jan Kratochvil <jan.kratochvil@redhat.com>
9038
9039 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9040 range.
9041
e7303042
PA
90422011-02-14 Pedro Alves <pedro@codesourcery.com>
9043
9044 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9045 No longer handle NULL values.
9046
8af8e3bc
PA
90472011-02-14 Pedro Alves <pedro@codesourcery.com>
9048
9049 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9050 * value.c: Include "exceptions.h".
9051 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9052 generic error.
9053 * cp-abi.c: Include gdb_assert.h.
9054 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9055 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9056 errors.
9057 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9058 parameters. No longer returns -1 on error.
9059 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9060 `val' parameters.
9061 * cp-valprint.c: Include exceptions.h.
9062 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9063 the baseclass_offset. Handle unavailable base classes. Use
9064 val_print_invalid_address.
9065 * p-valprint.c: Include exceptions.h.
9066 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9067 when fetching the baseclass_offset. No longer expect
9068 baseclass_offset returning -1. Handle unavailable base classes.
9069 Use val_print_invalid_address.
9070 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9071 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9072 `embedded_offset' and `val' parameters. Adjust.
9073 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9074 parameter, and change its type to gdb_byte pointer. Add
9075 `embedded_offset' and `val' parameters. Adjust. No longer expect
9076 baseclass_offset returning -1.
9077 (value_dynamic_cast): Use value_contents_for_printing rather than
9078 value_contents. Adjust.
9079 (search_struct_field): No longer expect baseclass_offset returning
9080 -1.
9081 (search_struct_method): If reading memory from the target is
9082 necessary, wrap it in a new value to pass to baseclass_offset. No
9083 longer expect baseclass_offset returning -1.
9084 (find_method_list): No longer expect baseclass_offset returning
9085 -1. Use value_contents_for_printing rather than value_contents.
9086 * valprint.c (val_print_invalid_address): New function.
9087 * valprint.h (val_print_invalid_address): Declare.
9088 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9089 and `val' parameters. No longer expect baseclass_offset returning
9090 -1. Adjust.
9091 * gnu-v2-abi.c: Include "exceptions.h".
9092 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9093 parameters. Handle unavailable memory. Recurse through
9094 gnuv2_baseclass_offset directly, rather than through
9095 baseclass_offset. No longer returns -1 on not found, instead
9096 throw an error.
9097 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9098 `val' parameters. Adjust.
9099
1b28d0b3
PA
91002011-02-14 Pedro Alves <pedro@codesourcery.com>
9101
9102 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9103 almost but not quite adjacent.
9104
ec0a52e1
PA
91052011-02-14 Pedro Alves <pedro@codesourcery.com>
9106
9107 * value.h (value_entirely_available): Declare.
9108 * value.c (value_entirely_available): New function.
9109 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9110 real type if the pointer is unavailable.
9111
24e6bcee
PA
91122011-02-14 Pedro Alves <pedro@codesourcery.com>
9113
9114 * valops.c (value_repeat): Use read_value_memory instead of
9115 read_memory.
9116
39d37385
PA
91172011-02-14 Pedro Alves <pedro@codesourcery.com>
9118
9119 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9120 * value.c (value_contents_copy_raw, value_contents_copy): New
9121 functions.
9122 (value_primitive_field): Use value_contents_copy_raw instead of
9123 memcpy.
9124 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9125 memcpy.
9126 (value_array, value_slice): Ditto.
9127 * valarith.c (value_subscripted_rvalue): Use
9128 value_contents_copy_raw instead of memcpy.
9129
a3d34bf4
PA
91302011-02-14 Pedro Alves <pedro@codesourcery.com>
9131
9132 <unavailable> references.
9133
9134 * valops.c (get_value_at): Use value_from_contents_and_address,
9135 avoiding read_memory.
9136
9fc6d940
PA
91372011-02-14 Pedro Alves <pedro@codesourcery.com>
9138
9139 * c-valprint.c (c_val_print): Print a string with unavailable
9140 contents as an array.
9141
5467c6c8
PA
91422011-02-14 Pedro Alves <pedro@codesourcery.com>
9143
9144 * value.h (unpack_bits_as_long): Delete declaration.
9145 (unpack_value_bits_as_long): Declare.
9146 (unpack_value_field_as_long): Declare.
9147 (value_field_bitfield): Declare.
9148 * value.c (unpack_bits_as_long): Rename to...
9149 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9150 value parameters. Return the extracted result in a new output
9151 parameter. If the value contents are unavailable, return false,
9152 otherwise return true.
9153 (unpack_value_bits_as_long): New.
9154 (unpack_field_as_long): Rename to...
9155 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9156 Add embedded_offset and value parameters. Return the extracted
9157 result in a new output parameter. If the value contents are
9158 unavailable, return false, otherwise return true.
9159 (unpack_value_field_as_long): New.
9160 (unpack_field_as_long_1): New.
9161 (unpack_field_as_long): Reimplement as wrapper around
9162 unpack_value_field_as_long_1.
9163 (value_field_bitfield): New function.
9164 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9165 unpack_value_bits_as_long. Mark the value as unavailable, if it
9166 is unavailable.
9167 * jv-valprint.c (java_print_value_fields): Use
9168 value_field_bitfield.
9169 * p-valprint.c (pascal_object_print_value_fields): Use
9170 value_field_bitfield.
9171 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9172
3158c6ed
PA
91732011-02-14 Pedro Alves <pedro@codesourcery.com>
9174
9175 * value.c (get_internalvar_integer): Also return the int value of
9176 TYPE_CODE_INT INTERNALVAR_VALUE values.
9177 (set_internalvar): Don't special case TYPE_CODE_INT.
9178
9fbdca0d
PA
91792011-02-14 Pedro Alves <pedro@codesourcery.com>
9180
9181 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9182 INTERNALVAR_POINTER.
9183 <pointer>: Delete.
9184 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9185 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9186 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9187
c8c1c22f
PA
91882011-02-14 Pedro Alves <pedro@codesourcery.com>
9189
9190 * value.h (value_available_contents_eq): Declare.
9191 * value.c (find_first_range_overlap): New function.
9192 (value_available_contents_eq): New function.
9193 * valprint.c (val_print_array_elements): Use
9194 value_available_contents_eq.
9195 * ada-valprint.c (val_print_packed_array_elements): Use
9196 value_available_contents_eq.
9197 * jv-valprint.c (java_value_print): Use
9198 value_available_contents_eq.
9199
e6e4e701
PA
92002011-02-14 Pedro Alves <pedro@codesourcery.com>
9201
9202 * target.c (target_read_live_memory): New function.
9203 (memory_xfer_live_readonly_partial): New.
9204 (memory_xfer_partial): If reading from a traceframe, fallback to
9205 reading unavailable read-only memory from read-only regions of
9206 live target memory.
9207 * tracepoint.c (disconnect_tracing): Adjust.
9208 (set_current_traceframe): New, factored out from
9209 set_traceframe_number.
9210 (set_traceframe_number): Reimplement to only change the traceframe
9211 number on the GDB side.
9212 (do_restore_current_traceframe_cleanup): Adjust.
9213 (make_cleanup_restore_traceframe_number): New.
9214 (cur_traceframe_number): New global.
9215 (tfile_open): Set cur_traceframe_number to no traceframe.
9216 (set_tfile_traceframe): New function.
9217 (tfile_trace_find): If looking up a traceframe using any method
9218 other than by number, make sure the current tfile traceframe
9219 matches gdb's current traceframe. Update the current tfile
9220 traceframe if the lookup succeeded.
9221 (tfile_fetch_registers, tfile_xfer_partial)
9222 (tfile_get_trace_state_variable_value): Make sure the remote
9223 traceframe matches gdb's current traceframe.
9224 * remote.c (remote_traceframe_number): New global.
9225 (remote_open_1): Set it to -1.
9226 (set_remote_traceframe): New function.
9227 (remote_fetch_registers, remote_store_registers)
9228 (remote_xfer_memory, remote_xfer_partial)
9229 (remote_get_trace_state_variable_value): Make sure the remote
9230 traceframe matches gdb's current traceframe.
9231 (remote_trace_find): If looking up a traceframe using any method
9232 other than by number, make sure the current remote traceframe
9233 matches gdb's current traceframe. Update the current remote
9234 traceframe if the lookup succeeded.
9235 * infrun.c (fetch_inferior_event): Adjust.
9236 * tracepoint.h (set_current_traceframe): Declare.
9237 (get_traceframe_number, set_traceframe_number): Add describing
9238 comments.
9239
e6ca34fc
PA
92402011-02-14 Pedro Alves <pedro@codesourcery.com>
9241
9242 Mark pieces of values as unavailable if the corresponding memory
9243 is unavailable.
9244
9245 * valops.c: Include tracepoint.h.
9246 (value_fetch_lazy): Use read_value_memory.
9247 (read_value_memory): New.
9248 * value.h (read_value_memory): Declare.
9249 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9250 * exec.c (section_table_available_memory): New function.
9251 * exec.h (section_table_available_memory): Declare.
9252
2a7498d8
PA
92532011-02-14 Pedro Alves <pedro@codesourcery.com>
9254
9255 * Makefile.in (SFILES): Add memrange.c.
9256 (HFILES_NO_SRCDIR): Add memrange.h.
9257 (COMMON_OBS): Add memrange.o.
9258 * memrange.c: New file.
9259 * memrange.h: New file.
9260 * tracepoint.c: Include memrange.h.
9261 (struct mem_range): Delete.
9262 (mem_range_s): Delete.
9263 (traceframe_available_memory): New function.
9264 * tracepoint.h (traceframe_available_memory): Declare.
9265
b3b9301e
PA
92662011-02-14 Pedro Alves <pedro@codesourcery.com>
9267
9268 * target.h (struct traceframe_info): Forward declare.
9269 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9270 (struct target_ops) <to_traceframe_info>: New field.
9271 (target_traceframe_info): New.
9272 * target.c (update_current_target): Inherit and default
9273 to_traceframe_info.
9274 * remote.c (PACKET_qXfer_traceframe_info): New.
9275 (remote_protocol_features): Register qXfer:traceframe-info:read.
9276 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9277 (remote_traceframe_info): New.
9278 (init_remote_ops): Install it.
9279 (_initialize_remote): Install "set/show remote traceframe-info"
9280 commands.
9281 * tracepoint.h (parse_traceframe_info): Declare.
9282 * tracepoint.c (struct mem_range): New.
9283 (mem_range_s): New typedef.
9284 (struct traceframe_info): New.
9285 (traceframe_info): New global.
9286 (free_traceframe_info): New function.
9287 (clear_traceframe_info): New function.
9288 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9289 info.
9290 (build_traceframe_info): New function.
9291 (tfile_traceframe_info): New function.
9292 (init_tfile_ops): Install tfile_traceframe_info.
9293 (traceframe_info_start_memory, free_result): New functions.
9294 (memory_attributes, traceframe_info_elements): New globals.
9295 (parse_traceframe_info, get_traceframe_info): New functions.
9296 * features/traceframe-info.dtd: New file.
9297 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9298
4e07d55f
PA
92992011-02-14 Pedro Alves <pedro@codesourcery.com>
9300
9301 Base support for <unavailable> value contents.
9302
4e07d55f
PA
9303 * value.h (value_bytes_available): Declare.
9304 (mark_value_bytes_unavailable): Declare.
9305 * value.c (struct range): New struct.
9306 (range_s): New typedef.
9307 (ranges_overlap): New function.
9308 (range_lessthan): New function.
9309 (ranges_contain_p): New function.
9310 (struct value) <unavailable>: New field.
9311 (value_bytes_available): New function.
9312 (mark_value_bytes_unavailable): New function.
9313 (require_not_optimized_out): Constify parameter.
9314 (require_available): New function.
9315 (value_contents_all, value_contents): Require all bytes be
9316 available.
9317 (value_free): Free `unavailable'.
9318 (value_copy): Copy `unavailable'.
9319 * valprint.h (val_print_unavailable): Declare.
9320 * valprint.c (valprint_check_validity): Rename `offset' parameter
9321 to `embedded_offset'. If printing a scalar, check whether the
9322 value chunk is available.
9323 (val_print_unavailable): New.
9324 (val_print_scalar_formatted): Check whether the value is
9325 available.
9326 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9327 pretty-printing unavailable values.
9328
bc9a5551
JK
93292011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9330
9331 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9332 * c-typeprint.c (c_type_print_args): Update the function comment. New
9333 variable param_type, initialize it. Remove const/volatile qualifiers
9334 for language_cplus and !show_artificial. Use param_type.
9335
93b55aa1
JK
93362011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9337
9338 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9339 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9340 * symtab.h (struct symtab) <next>: Comment extension.
9341
181d9476
YQ
93422011-02-12 Yao Qi <yao@codesourcery.com>
9343
9344 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9345
b708a5c7
JK
93462011-02-11 Yao Qi <yao@codesourcery.com>
9347
9348 * common/Makefile.in: Add copyright header.
9349
c5187ac6
PA
93502011-02-11 Pedro Alves <pedro@codesourcery.com>
9351
9352 * infrun.c (proceed): Move switching out and in of tfind mode from
9353 here ...
9354 (fetch_inferior_event): ... to here.
9355
4f3e6fb7
YQ
93562011-02-11 Yao Qi <yao@codesourcery.com>
9357
9358 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9359 libcommon.a.
9360 * configure.ac: Add common to sub dir.
9361 * configure: Regenerate.
9362
b708a5c7
JK
93632011-02-11 Yao Qi <yao@codesourcery.com>
9364
9365 Build libcommon.a.
9366
9367 * common/Makefile.in: New.
9368 * common/configure.ac: New.
9369 * common/aclocal.m4: New.
9370 * common/configure: Generate.
9371
2287cc7e
PA
93722011-02-10 Pedro Alves <pedro@codesourcery.com>
9373
9374 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9375 side of the parenthesis.
9376
9377 Merge from GCC:
9378 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9379 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9380
fd62cb89
MS
93812011-02-08 Michael Snyder <msnyder@vmware.com>
9382
9383 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9384
56d2815c
JK
93852011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9386
9387 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9388 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9389 psubd and paddd.
9390
4f7d61a8
JK
93912011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9392
9393 PR 12361.
9394 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9395 phsubsw.
9396 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9397 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9398
54fcddd0
UW
93992011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9400
9401 * dwarf2read.c (read_subroutine_type): Set special calling
9402 convention flag for functions compiled by IBM XL C for OpenCL.
9403 * ppc-sysv-tdep.c: Include "dwarf2.h"
9404 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9405 calling convention.
9406 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9407 IBM OpenCL vector types calling convention.
9408 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9409 (ppc_sysv_abi_broken_return_value): Likewise.
9410 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9411 types calling convention.
9412 (ppc64_sysv_abi_return_value): Likewise.
9413 * spu-tdep.c: Include "dwarf2.h"
9414 (spu_return_value): Implement IBM OpenCL vector types calling
9415 convention.
9416
d6dafb7c
UW
94172011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9418
9419 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9420 correct ABI for AltiVec vector arguments.
9421
32b72a42
PA
94222011-02-07 Pedro Alves <pedro@codesourcery.com>
9423
9424 * valprint.c (val_print): Extend comment.
9425 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9426 interface explanation to val_print.
9427 (ada_val_print_array): Adjust comment to current interface.
9428 (print_field_values): Adjust comment to current interface.
9429 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9430 explanation to val_print.
9431 * f-valprint.c (f_val_print): Ditto.
9432 * jv-valprint.c (java_val_print): Ditto.
9433 * m2-valprint.c (m2_val_print): Ditto.
9434 * p-valprint.c (pascal_val_print): Ditto.
9435
9998af43
TJB
94362011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9437
9438 * breakpoint.c (parse_breakpoint_sals): Fix description.
9439
505500db 94402011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9441 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9442
9443 * python/py-inferior.c (python_on_normal_stop): New function.
9444 (python_on_resume): New function.
9445 (python_inferior_exit): New function.
9446 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9447 inferior_exit observers.
9448 * python/py-evtregistry.c: New file.
9449 * python/py-threadevent.c : New file.
9450 * python/py-event.c: New file.
9451 * python/py-evts.c: New file.
9452 * python/py-continueevent.c: New file.
9453 * python/py-bpevent.c: New file.
9454 * python/py-signalevent.c: New file.
9455 * python/py-exetiedevent.c: New file.
9456 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9457 Move struct breakpoint_object from here...
9458 * python/python-internal.h: ... to here.
9459 * python/py-event.h: New file.
9460 * python/py-events.h: New file.
9461 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9462 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9463 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9464 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9465 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9466 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9467 Add build rules for all the above.
9468
9e0ac564
TT
94692011-02-04 Tom Tromey <tromey@redhat.com>
9470
9471 * dwarf2read.c (dwarf2_section_empty_p): New function.
9472 (dwarf2_read_section): Use dwarf2_section_empty_p.
9473 (dwarf2_section_size): New function.
9474 (dwarf2_get_section_info): Unconditionally read section.
9475 (dwarf2_read_index): Use dwarf2_section_empty_p.
9476 (partial_read_comp_unit_head): Use dwarf2_section_size.
9477 (dwarf2_symbol_mark_computed): Likewise.
9478
eee5b35e
DD
94792011-02-04 David Daney <ddaney@caviumnetworks.com>
9480
9481 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9482
385203ed
DD
94832011-02-04 David Daney <ddaney@caviumnetworks.com>
9484
9485 * mips-linux-tdep.c: Include xml-syscall.h.
9486 (mips_linux_get_syscall_number): New function.
9487 (mips_linux_init_abi): Add calls to
9488 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9489 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9490 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9491 * syscalls/mips-n32-linux.xml: New file.
9492 * syscalls/mips-n64-linux.xml: New file.
9493 * syscalls/mips-o32-linux.xml: New file.
9494
9277c30c
UW
94952011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9496
9497 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9498 Complain about inverted range entries.
9499 (dwarf2_record_block_ranges): Likewise.
9500
a3be7890
TJB
95012011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9502
9503 Fix some typos.
9504 * breakpoint.c (update_watchpoint): Fix name of the
9505 update_global_location_list function.
9506 (print_one_breakpoint): Fix typo.
9507 (_initialize_breakpoint): Remove extra space in hbreak help
9508 string.
9509 * breakpoint.h (struct bp_location) <length>: Fix field
9510 description.
9511
041274d8
PA
95122011-02-04 Pedro Alves <pedro@codesourcery.com>
9513
9514 * regcache.c (registers_changed_ptid): Don't explictly always
9515 clear `current_regcache'. Only clear current_thread_ptid and
9516 current_thread_arch when PTID matches. Only reinit the frame
9517 cache if PTID matches the current inferior_ptid. Move alloca(0)
9518 call to ...
9519 (registers_changed): ... here.
9520
c1c2ab58
UW
95212011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9522
9523 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9524 starts with __stack_chk_guard as stack guard symbol.
9525
9011945e
AB
95262011-02-03 Andrew Burgess <aburgess@broadcom.com>
9527
9528 * disasm.c (compare_lines): Handle the end of sequence markers
9529 within the line table to better support disassembling over
9530 compilation unit boundaries.
9531
e0634ccf
UW
95322011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9533
9534 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9535 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9536 implementation even if no symbols are available.
9537 (thumb_analyze_prologue): Update call to skip_prologue_function.
9538 (arm_analyze_prologue): Likewise.
9539
0e9e9abd
UW
95402011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9541
9542 * arm-tdep.c: Include "observer.h".
9543 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9544 (arm_exidx_data_key): New static variable.
9545 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9546 (struct arm_exidx_data): Likewise.
9547 (arm_exidx_data_free): New function.
9548 (arm_compare_exidx_entries): Likewise.
9549 (arm_obj_section_from_vma): Likewise.
9550 (arm_exidx_new_objfile): Likewise.
9551 (arm_find_exidx_entry): Likewise.
9552 (arm_exidx_fill_cache): Likewise.
9553 (arm_exidx_unwind_sniffer): Likewise.
9554 (arm_exidx_unwind): New global variable.
9555 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9556 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9557 observer. Register arm_exidx_data_key as objfile data.
9558
2e9e421f
UW
95592011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9560
9561 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9562 due to accessing uninitialized variable. Fix indentation.
9563
580688f3
PA
95642011-02-02 Pedro Alves <pedro@codesourcery.com>
9565
9566 * c-valprint.c (c_value_print): When doing virtual base pointer
9567 adjustment, create a new value with adjusted contents rather than
9568 changing the contents of the value being printed (and getting it
9569 wrong).
9570
3d2c1d41
PA
95712011-02-02 Pedro Alves <pedro@codesourcery.com>
9572
9573 * xml-support.c (xml_find_attribute): New.
9574 (xinclude_start_include): Use it.
9575 * xml-support.h (xml_find_attribute): Declare.
9576 * memory-map.c (memory_map_start_memory)
9577 (memory_map_start_property): Use xml_find_attribute.
9578 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9579 xml_find_attribute.
9580 * remote.c (start_thread): Use xml_find_attribute.
9581 * solib-target.c (library_list_start_segment)
9582 (library_list_start_section, library_list_start_library)
9583 (library_list_start_list): Use xml_find_attribute.
9584 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9585 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9586 (tdesc_start_field): Use xml_find_attribute.
9587
0af3e2db
UW
95882011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9589
9590 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9591 (BUILD_OCL_VTYPES): Update.
9592
c1039e3c
JB
95932011-02-02 Joel Brobecker <brobecker@adacore.com>
9594
9595 * configure.ac: Work around non-GNU sed limitation when computing
9596 python version number.
9597 * configure: Regenerate.
9598
600ea1be
JK
95992011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9600
9601 Fix debug printing of TYPE_INSTANCE.
9602 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9603 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9604
56c12414
JK
96052011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9606
9607 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9608 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9609 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9610 * ada-operator.inc: Rename the file to ...
9611 * ada-operator.def: ... here, wrap all the entries by macro OP.
9612 * expprint.c (op_name_standard): Remove all the entries. Include
9613 "std-operator.def" instead.
9614 * expression.h (enum exp_opcode): Include "std-operator.def" and
9615 "ada-operator.def". Move all the entries ...
9616 * std-operator.def: ... here, wrap all the entries by macro OP.
9617
c52b559d
PP
96182011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9619
9620 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9621 * breakpoint.c (remove_jit_event_breakpoints): New function.
9622 * jit.c (jit_descriptor_addr): Delete.
9623 (registering_code): Delete.
9624 (clear_int): Delete.
9625 (jit_inferior_data): New variable.
9626 (struct jit_inferior_data): New type.
9627 (get_jit_inferior_data): New function.
9628 (jit_inferior_data_cleanup): New function.
9629 (jit_read_descriptor): Adjust.
9630 (jit_register_code): Adjust.
9631 (jit_breakpoint_re_set_internal): New function; move code here ...
9632 (jit_inferior_init): ... from here.
9633 (jit_breakpoint_re_set): Adjust.
9634 (jit_reset_inferior_data_and_breakpoints): New function.
9635 (jit_inferior_created_observer): Adjust.
9636 (jit_inferior_exit_hook): Adjust.
9637 (jit_executable_changed_observer): New function.
9638 (jit_event_handler): Adjust.
9639 (_initialize_jit): Adjust.
9640
e839132d
MS
96412011-01-31 Michael Snyder <msnyder@vmware.com>
9642
9643 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9644 line.
9645
47a80e90
TT
96462011-01-31 Tom Tromey <tromey@redhat.com>
9647
9648 PR python/12216:
9649 * python/python.c (execute_gdb_command): Call
9650 prevent_dont_repeat.
9651 * top.c (suppress_dont_repeat): New global.
9652 (dont_repeat): Use it.
9653 (prevent_dont_repeat): New function.
9654 * command.h (prevent_dont_repeat): Declare.
9655
45a43567
TT
96562011-01-31 Tom Tromey <tromey@redhat.com>
9657
9658 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9659 * python/py-breakpoint.c (bppy_set_silent): Use
9660 breakpoint_set_silent.
9661 (bppy_set_thread): Use breakpoint_set_thread.
9662 (bppy_set_task): Use breakpoint_set_task.
9663 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9664 (breakpoint_set_task): Declare.
9665 (make_breakpoint_silent): Remove.
9666 * breakpoint.c (breakpoint_set_silent): New function.
9667 (breakpoint_set_thread): Likewise.
9668 (breakpoint_set_task): Likewise.
9669 (make_breakpoint_silent): Remove.
9670
09d682a4
TT
96712011-01-31 Tom Tromey <tromey@redhat.com>
9672
9673 * breakpoint.h (user_breakpoint_p): Declare.
9674 * breakpoint.c (user_breakpoint_p): New function.
9675 (breakpoint_1): Use it.
9676 (save_breakpoints): Likewise.
9677
9c4ea6c5
JB
96782011-01-31 Joel Brobecker <brobecker@adacore.com>
9679
9680 * configure.ac: Add handling of Python distribution on Windows.
9681 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9682 sysconfig variables are not defined, then do not use them.
9683 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9684 instead. On Windows, return all paths using forward-slashes
9685 rather than backslashes.
9686
ac534cba
JB
96872011-01-31 Joel Brobecker <brobecker@adacore.com>
9688
9689 * configure.ac: Remove fallback behavior for building
9690 against Python. Remove tweaking of Python include path.
9691 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9692 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9693 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9694 Always restore CPPFLAGS and LIBS after linking test.
9695 * configure: Regenerated.
9696 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9697 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9698 * python/python-internal.h: Adjust includes of Python .h files.
9699
c2f0d045
JB
97002011-01-31 Joel Brobecker <brobecker@adacore.com>
9701
9702 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9703 in error message.
9704
6b0c4c1f
JB
97052011-01-31 Joel Brobecker <brobecker@adacore.com>
9706
9707 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9708 value test.
9709
672c9795
YQ
97102011-01-31 Yao Qi <yao@codesourcery.com>
9711
9712 * arm-linux-nat.c: Update calls to regcache_register_status
9713 instead of regcache_valid_p.
9714 * aix-thread.c: Likewise.
9715 * i386gnu-nat.c: Likewise.
9716
80b23b6a
JK
97172011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9718
9719 Fix crash.
9720 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9721 touching TYPE_FIELD_ARTIFICIAL.
9722
4cd712bd
RE
97232011-01-28 Richard Earnshaw <rearnsha@arm.com>
9724
9725 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9726 Committers.
9727
ffd5ec24
PA
97282011-01-28 Pedro Alves <pedro@codesourcery.com>
9729
9730 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9731 selected, don't try iterating over the traceframe's blocks.
9732 (tfile_has_stack): If there's no traceframe selected, then there's
9733 no stack.
9734 (tfile_has_registers): If there's no traceframe selected, then
9735 there's no registers.
9736
e8c9e0a1
PA
97372011-01-28 Pedro Alves <pedro@codesourcery.com>
9738
9739 * target.c (memory_xfer_partial): No need to restore shadows if we
9740 haven't read anything.
9741
de15c4ab
PA
97422011-01-28 Pedro Alves <pedro@codesourcery.com>
9743
9744 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9745 and val_print_scalar_formatted.
9746
9f41c731
PA
97472011-01-27 Pedro Alves <pedro@codesourcery.com>
9748
9749 * tracepoint.c (tfile_read): New.
9750 (tfile_open): Use it.
9751 (tfile_get_traceframe_address): Use it.
9752 (tfile_trace_find): Use it.
9753 (walk_blocks_callback_func): New typedef.
9754 (match_blocktype): New function.
9755 (traceframe_walk_blocks): New function.
9756 (traceframe_find_block_type): New function.
9757 (tfile_fetch_registers, tfile_xfer_partial)
9758 (tfile_get_trace_state_variable_value): Use
9759 traceframe_find_block_type and tfile_read.
9760
cdefc55d
KB
97612011-01-26 Kevin Buettner <kevinb@redhat.com>
9762
9763 * remote-mips.c: Add internationalization mark ups. Remove
9764 trailing \n from already marked up strings.
9765
a81766d8
TT
97662011-01-26 Tom Tromey <tromey@redhat.com>
9767
9768 * python/py-prettyprint.c (print_string_repr): Clear
9769 'addressprint' option when calling val_print_string.
9770 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9771 option when calling val_print_string.
9772
74aedc46
TT
97732011-01-26 Tom Tromey <tromey@redhat.com>
9774
9775 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9776 GDB_PY_LL_ARG.
9777 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9778 macros.
9779 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9780 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9781 (gdb_py_long_as_ulongest): New defines.
9782 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9783 (gdb_py_int_as_long): Declare.
9784 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9785 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9786 (valpy_long): Add comment.
9787 * python/py-utils.c (get_addr_from_python): Use
9788 gdb_py_long_as_ulongest. Handle overflow properly.
9789 (gdb_py_object_from_longest): New function.
9790 (gdb_py_object_from_ulongest): Likewise.
9791 (gdb_py_int_as_long): Likewise.
9792 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9793 * python/py-symtab.c (salpy_get_pc): Use
9794 gdb_py_long_from_ulongest.
9795 (salpy_get_line): Use PyInt_FromLong.
9796 * python/py-param.c (set_parameter_value): Use
9797 gdb_py_int_as_long.
9798 * python/py-lazy-string.c (stpy_get_address): Use
9799 gdb_py_long_from_ulongest.
9800 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9801 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9802 * python/py-breakpoint.c (bppy_set_thread): Use
9803 gdb_py_int_as_long.
9804 (bppy_set_task): Likewise.
9805 (bppy_set_ignore_count): Likewise.
9806 (bppy_set_hit_count): Likewise.
9807 * python/py-block.c (blpy_get_start): Use
9808 gdb_py_object_from_ulongest.
9809 (blpy_get_end): Likewise.
9810 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9811
e4f6d2ec
TJB
98122011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9813
9814 PR/symtab 11766:
9815 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9816 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9817 equality test for objfile, initialize addr_low if needed.
9818
b30aa278
PA
98192011-01-25 Pedro Alves <pedro@codesourcery.com>
9820
9821 * tui/tui-regs.c (tui_register_format): Remove dead code.
9822
ab2188aa
PA
98232011-01-25 Pedro Alves <pedro@codesourcery.com>
9824
9825 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9826 instead of print_scalar_formatted.
9827 (print_scalar_formatted): Don't handle 's' format strings here,
9828 and add an assertion that we never see such format here.
9829 * valprint.h (val_print_scalar_formatted): Declare.
9830 * valprint.c (val_print_scalar_formatted): New.
9831 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9832 instead of print_scalar_formatted.
9833 * jv-valprint.c (java_val_print): Ditto.
9834 * p-valprint.c (pascal_val_print): Ditto.
9835 * ada-valprint.c (ada_val_print_1): Ditto.
9836 * f-valprint.c (f_val_print): Ditto.
9837 * infcmd.c (registers_info): Ditto.
9838 * m2-valprint.c (m2_val_print): Ditto.
9839
66d61a4c
PA
98402011-01-25 Pedro Alves <pedro@codesourcery.com>
9841
9842 * m2-valprint.c (print_unbounded_array): Pass
9843 value_contents_for_printing rather than value_contents, to
9844 m2_print_array_contents. Also pass in the value.
9845
831adc1f
JK
98462011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9847
9848 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9849 (save_gdb_index_command): Switch to .gdb_index version 4.
9850
20622269
PA
98512011-01-25 Pedro Alves <pedro@codesourcery.com>
9852
9853 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9854 than frame_register, and always pass a valid value to val_print.
9855
585fdaa1
PA
98562011-01-25 Pedro Alves <pedro@codesourcery.com>
9857
9858 Centralize printing "<optimized out>".
9859
9860 * valprint.h (val_print_optimized_out): Declare.
9861 * cp-valprint.c (cp_print_value_fields): Use
9862 val_print_optimized_out.
9863 * jv-valprint.c (java_print_value_fields): Ditto.
9864 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9865 * printcmd.c (print_formatted): Ditto.
9866 * valprint.c (valprint_check_validity): Ditto.
9867 (value_check_printable): Ditto.
9868 (val_print_optimized_out): New.
9869
29ec5263
PA
98702011-01-25 Pedro Alves <pedro@codesourcery.com>
9871
9872 * infcmd.c (default_print_registers_info): Allocate values so to
9873 never pass a NULL value to val_print.
9874
de4127a3
PA
98752011-01-25 Pedro Alves <pedro@codesourcery.com>
9876
9877 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9878 boolean. Make sure to always pass a value that matches the
9879 contents buffer to callees. Preserve `address' for following
9880 iterations.
9881 * value.c (value_contents_for_printing_const): New.
9882 (value_address): Constify value argument.
9883 * value.h (value_contents_for_printing_const): Declare.
9884 (value_address): Constify value argument.
9885
ee99023e
PA
98862011-01-25 Pedro Alves <pedro@codesourcery.com>
9887
9888 * regcache.c (struct regcache_descr): Rename
9889 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9890 and sizeof_cooked_register_valid_p to
9891 sizeof_cooked_register_status.
9892 (init_regcache_descr): Adjust.
9893 (struct regcache): Rename register_valid_p field to
9894 register_status.
9895 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9896 (do_cooked_read): Adjust.
9897 (regcache_valid_p): Rename to ...
9898 (regcache_register_status): ... this. Adjust.
9899 (regcache_invalidate): Adjust.
9900 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9901 Adjust.
9902 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9903 as unavailable, not valid.
9904 (regcache_dump): Adjust.
9905 * regcache.h (enum register_status): New.
9906 (regcache_register_status): Declare.
9907 (regcache_invalidate): Delete declaration.
9908 * corelow.c (get_core_registers): Adjust.
9909 * tracepoint.c (tfile_fetch_registers): Adjust.
9910 * trad-frame.c (REG_VALUE): Rename to ...
9911 (TF_REG_VALUE): ... this.
9912 (REG_UNKNOWN): Rename to ...
9913 (TF_REG_UNKNOWN): ... this.
9914 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9915 * mi/mi-main.c (register_changed_p): Adjust.
9916
99e42fd8
PA
99172011-01-25 Pedro Alves <pedro@codesourcery.com>
9918
9919 * regcache.c (struct regcache_descr): Remove outdated comment.
9920 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9921 overallocate hack.
9922 (regcache_xmalloc): Rename to ...
9923 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9924 Allocate the regcache type accordingly.
9925 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9926 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9927 cooked registers, not raw.
9928 (regcache_dup_no_passthrough): Delete.
9929 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9930 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9931 mention obsolete write_register_bytes.
9932 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9933
f7605bc2
PA
99342011-01-25 Pedro Alves <pedro@codesourcery.com>
9935
9936 Stop remote_read_bytes from handling partial reads itself.
9937
9938 * remote-fileio.c: Include target.h.
9939 (remote_fileio_write_bytes): Delete.
9940 (remote_fileio_func_open, remote_fileio_func_write)
9941 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9942 target_read_memory.
9943 (remote_fileio_func_stat): Use target_read_memory and
9944 target_write_memory.
9945 (remote_fileio_func_gettimeofday): Use target_write_memory.
9946 (remote_fileio_func_system): Use target_read_memory.
9947 * remote.c (remote_write_bytes): Make it static.
9948 (remote_read_bytes): Don't handle partial reads here.
9949 * remote.h (remote_read_bytes): Delete declaration.
9950
efc0eabd
PA
99512011-01-25 Pedro Alves <pedro@codesourcery.com>
9952
9953 Simplify XML parsing a bit.
9954
9955 * xml-support.h (gdb_xml_parse_quick): Declare.
9956 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9957 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9958 parameter.
9959 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9960 gdb_xml_create_parser_and_cleanup_1.
9961 (gdb_xml_parse_quick): New.
9962 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9963 * osdata.c (osdata_parse): Ditto.
9964 * remote.c (remote_threads_info): Ditto.
9965 * solib-target.c (solib_target_parse_libraries): Ditto.
9966 * xml-syscall.c (syscall_parse_xml): Ditto.
9967 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9968
314d366a
KB
99692011-01-24 Kevin Buettner <kevinb@redhat.com>
9970
9971 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9972 with remote-mips.o added to gdb_target_obs.
9973 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9974
a491d753
PA
99752011-01-24 Pedro Alves <pedro@codesourcery.com>
9976
9977 * ada-valprint.c (val_print_packed_array_elements): Pass the
9978 correct struct value to val_print.
9979 (ada_val_print_1): Ditto.
9980
490f124f
PA
99812011-01-24 Pedro Alves <pedro@codesourcery.com>
9982
9983 Don't lose embedded_offset in printing routines throughout.
9984
9985 * valprint.h (val_print_array_elements): Change prototype.
9986 * valprint.c (val_print_array_elements): Add `embedded_offset'
9987 parameter, and adjust to pass it down to val_print, while passing
9988 `valaddr' or `address' unmodified. Take embedded_offset into
9989 account when checking repetitions.
9990 * c-valprint.c (c_val_print): Pass embedded_offset to
9991 val_print_array_elements instead of adjusting `valaddr' and
9992 `address'.
9993 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9994 embedded_offset to val_print_array_elements instead of adjusting
9995 `valaddr'.
9996 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9997 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9998 val_print_array_elements and pascal_object_print_value_fields
9999 instead of adjusting `valaddr'.
10000 (pascal_object_print_value_fields): Add `offset' parameter, and
10001 adjust to use it.
10002 (pascal_object_print_value): Add `offset' parameter, and adjust to
10003 use it.
10004 (pascal_object_print_static_field): Use
10005 value_contents_for_printing/value_embedded_offset, rather than
10006 value_contents.
10007 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10008 parameter, and adjust to use it. Use
10009 value_contents_for_printing/value_embedded_offset, rather than
10010 value_contents.
10011 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10012 (ada_val_print_array): Add `offset' parameter, and adjust to use
10013 it.
10014 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10015 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10016 Instead work with offsets. Use
10017 value_contents_for_printing/value_embedded_offset, rather than
10018 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10019 and use value_from_pointer to extract a target pointer, rather
10020 than value_from_longest.
10021 (print_variant_part): Add `offset' parameter. Replace
10022 `outer_valaddr' parameter by a new `outer_offset' parameter.
10023 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10024 (ada_value_print): Use
10025 value_contents_for_printing/value_embedded_offset, rather than
10026 value_contents.
10027 (print_record): Add `offset' parameter, and adjust to pass it
10028 down.
10029 (print_field_values): Add `offset' parameter. Replace
10030 `outer_valaddr' parameter by a new `outer_offset' parameter.
10031 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10032 Use value_contents_for_printing/value_embedded_offset, rather than
10033 value_contents.
10034 * d-valprint.c (dynamic_array_type): Use
10035 value_contents_for_printing/value_embedded_offset, rather than
10036 value_contents.
10037 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10038 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10039 (java_print_value_fields): Take `offset' into account. Don't
10040 re-adjust `valaddr'. Instead pass down adjusted offsets.
10041 (java_val_print): Take `embedded_offset' into account. Pass it to
10042 java_print_value_fields.
10043 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10044 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10045 down adjusted offsets.
10046 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10047 (f_val_print): Take `embedded_offset' into account.
10048
7bfc9434
JB
100492011-01-21 Joel Brobecker <brobecker@adacore.com>
10050
10051 * inflow.c: Include "gdbcmd.h".
10052 (interactive_mode): New static global, moved here from top.c.
10053 (show_interactive_mode): New function, moved here from top.c.
10054 use gdb_has_a_terminal instead of input_from_terminal_p to
10055 determine the current mode.
10056 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10057 setting.
10058 (_initialize_inflow): Add the "set/show interactive-mode"
10059 commands. Moved here from top.c, after having adjusted slightly
10060 the help text.
10061 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10062 to inflow.c.
10063 (input_from_terminal_p): Remove handling of "interactive-mode"
10064 setting, moved to infow.c.
10065 (init_main): Remove creation of the "set/show interactive-mode"
10066 commands, moved to inflow.c.
10067
44603653
JB
100682011-01-19 Joel Brobecker <brobecker@adacore.com>
10069
10070 * NEWS: Add entry for native ia64-hpux support.
10071
4694da01
TT
100722011-01-19 Tom Tromey <tromey@redhat.com>
10073
10074 PR mi/8618:
10075 * thread.c (free_thread): Free 'name'.
10076 (print_thread_info): Emit thread name. Change CLI output.
10077 (thread_name_command): New function.
10078 (do_captured_thread_select): Emit newline.
10079 (_initialize_thread): Register 'thread name' command.
10080 * target.h (struct target_ops) <to_thread_name>: New field.
10081 (target_thread_name): New macro.
10082 * target.c (update_current_target): Handle to_thread_name.
10083 * python/py-infthread.c (thpy_get_name): New function.
10084 (thpy_set_name): Likewise.
10085 (thread_object_getset): Add "name".
10086 * linux-nat.c (linux_nat_thread_name): New function.
10087 (linux_nat_add_target): Set to_thread_name.
10088 * gdbthread.h (struct thread_info) <name>: New field.
10089
10d44370
JB
100902011-01-18 Joel Brobecker <brobecker@adacore.com>
10091
10092 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10093 (ada_val_print_1): Likewise.
10094
e3acb115
JB
100952011-01-18 Joel Brobecker <brobecker@adacore.com>
10096
10097 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10098 upper limit address is not greater than the function end address
10099 when the upper limit could not be computed using the debugging
10100 info.
10101
dc92e161
TT
101022011-01-17 Tom Tromey <tromey@redhat.com>
10103
10104 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10105 get_regcomp_error.
10106 * utils.c: Include gdb_regex.h.
10107 (do_regfree_cleanup): New function.
10108 (make_regfree_cleanup): Likewise.
10109 (get_regcomp_error): Likewise.
10110 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10111
f55af66d
TT
101122011-01-17 Tom Tromey <tromey@redhat.com>
10113
10114 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10115 re_compile_fastmap.
10116
a5a44b53
PM
101172011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10118
10119 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10120 for internal variables.
10121 (last_was_structop): New static variable.
10122 (COMPLETE): New token.
10123 (field_exp): New rule to group all '.' suffix handling.
10124 Add mark_struct_expression calls when approriate to be able
10125 to correctly find fields for completion.
10126 (yylex): Adapt to handle field completion and set INTVAR when
10127 required.
10128
2c291032
YQ
101292011-01-14 Yao Qi <yao@codesourcery.com>
10130
10131 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10132 save_reggroup, restore_reggroup and all_reggroup.
10133
447b483c
JB
101342011-01-14 Joel Brobecker <brobecker@adacore.com>
10135
10136 * ada-valprint. (ada_printchar): Use the correct type length
10137 in call to ada_emit_char.
10138 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10139
7b64a93b
PM
101402011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10141
10142 * solib-som.h (hpux_major_release): Declare variable here.
10143 * solib-som.c: Remove <sys/utsname.h> header.
10144 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10145 (hpux_major_release): Make global, change default value to
10146 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10147 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10148 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10149 Add "solib-som.h" header.
10150 (set_hpux_major_release): New function.
10151 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10152
4e18c053
MF
101532011-01-14 Mike Frysinger <vapier@gentoo.org>
10154
10155 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10156
a9df6b22
JB
101572011-01-14 Joel Brobecker <brobecker@adacore.com>
10158
10159 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10160 new-line at end of warning message.
10161 (ia64_hpux_store_register): Remove trailing new-line at end of
10162 error message.
10163 * ia64-hpux-tdep.c: Rephrase comment.
10164 * solib-ia64-hpux.c (struct dld_info): Change type of field
10165 dld_flags from "long long" to ULONGEST.
10166
ecb956dd
PA
101672011-01-14 Pedro Alves <pedro@codesourcery.com>
10168
10169 * target.h (deprecated_child_ops): Delete declaration.
10170 * target.c (deprecated_child_ops): Delete definition.
10171
76adfcae
PA
101722011-01-14 Pedro Alves <pedro@codesourcery.com>
10173
10174 * Makefile.in (hpux-thread.o): Delete rule.
10175 * configure.ac: Don't check for HPUX DCE threads support.
10176 * configure, config.in: Regenerate.
10177 * hppa-hpux-nat.c (child_suppress_run): Delete.
10178 (hppa_hpux_child_can_run): Delete.
10179 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10180 * hpux-thread.c: Delete.
10181
042e866e
JB
101822011-01-13 Joel Brobecker <brobecker@adacore.com>
10183
10184 * hpux-thread.c (hpux_pid_to_str): Delete.
10185
4ffa5a33
JB
101862011-01-13 Joel Brobecker <brobecker@adacore.com>
10187
10188 * ada-valprint.c (ada_emit_char): Remove strange code.
10189 Check that c is <= UCHAR_MAX before passing it to isascii.
10190 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10191
de8fa76c
JB
101922011-01-13 Joel Brobecker <brobecker@adacore.com>
10193
10194 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10195 to the case where instream is stdin.
10196
c4de7027
JB
101972011-01-13 Joel Brobecker <brobecker@adacore.com>
10198
10199 * ia64-tdep.h (struct regcache): Forward declare.
10200 (struct ia64_infcall_ops): New struct type.
10201 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10202 and "infcall_ops".
10203 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10204 Renames ia64_find_global_pointer.
10205 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10206 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10207 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10208 methods.
10209 (ia64_infcall_ops): New static global constant.
10210 (ia64_gdbarch_init): Set tdep->infcall_ops.
10211 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10212 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10213 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10214 (ia64_hpux_dummy_code): New static global constant.
10215 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10216 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10217 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10218 New function.
10219 (ia64_hpux_infcall_ops): New static global constant.
10220 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10221 for inferior function calls to work properly on ia64-hpux.
10222
77ca787b
JB
102232011-01-13 Joel Brobecker <brobecker@adacore.com>
10224
10225 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10226 * ia64-tdep.h (struct frame_info): forward declaration.
10227 (struct gdbarch_tdep): Add field size_of_register_frame.
10228 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10229 to determine the size of the register frame.
10230 (ia64_size_of_register_frame): New function.
10231 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10232 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10233 (IA64_HPUX_UREG_REASON): New macro.
10234 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10235 New functions.
10236 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10237 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10238 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10239 objects.
10240
92c9a463
JB
102412011-01-13 Joel Brobecker <brobecker@adacore.com>
10242
10243 Add support for ia64-hpux.
10244 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10245 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10246
10247 * configure.host: Add handling for ia64-hpux hosts. Add associated
10248 floatformats.
10249 * configure.tgt: Add handling for ia64-hpux targets.
10250 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10251 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10252 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10253
f688d93f
JB
102542011-01-13 Joel Brobecker <brobecker@adacore.com>
10255
10256 [ttrace] Compute thread list immediately after attach.
10257 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10258 New subprogram.
10259 (inf_ttrace_attach): Use it.
10260
1b89e62f
JB
102612011-01-13 Joel Brobecker <brobecker@adacore.com>
10262
10263 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10264 if we could not determine the frame's function address. Instead,
10265 use the frame's PC, and then continue.
10266
3e5e6e2a
JB
102672011-01-13 Joel Brobecker <brobecker@adacore.com>
10268
10269 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10270 not already defined.
10271
825d6d8a
JB
102722011-01-13 Joel Brobecker <brobecker@adacore.com>
10273
10274 * ia64-tdep.c (ia64_struct_type_p): New function.
10275 (ia64_extract_return_value): Handle integral values that are
10276 less than 8 bytes long.
10277 (ia64_push_dummy_call): Likewise.
10278
7458e667
JB
102792011-01-13 Joel Brobecker <brobecker@adacore.com>
10280
10281 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10282 floatformat_ia64_ext.
10283 (floatformat_ia64_ext_big): New static const.
10284 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10285
1b05df00
TT
102862011-01-12 Tom Tromey <tromey@redhat.com>
10287
10288 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10289 messages.
10290 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10291 (mi_cmd_thread_list_ids): Likewise.
10292 (mi_cmd_data_list_changed_registers): Likewise.
10293 (mi_cmd_data_list_register_values): Likewise.
10294 (mi_cmd_data_write_register_values): Likewise.
10295 (mi_cmd_data_evaluate_expression): Likewise.
10296 (mi_cmd_data_read_memory): Likewise.
10297 (mi_cmd_data_read_memory_bytes): Likewise.
10298 (mi_cmd_data_write_memory): Likewise.
10299 (mi_cmd_enable_timings): Likewise.
10300 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10301 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10302 (mi_cmd_var_delete): Likewise.
10303 (mi_cmd_var_set_format): Likewise.
10304 (mi_cmd_var_show_format): Likewise.
10305 (mi_cmd_var_info_num_children): Likewise.
10306 (mi_cmd_var_list_children): Likewise.
10307 (mi_cmd_var_info_type): Likewise.
10308 (mi_cmd_var_info_expression): Likewise.
10309 (mi_cmd_var_show_attributes): Likewise.
10310 (mi_cmd_var_assign): Likewise.
10311 (mi_cmd_var_update): Likewise.
10312 (mi_cmd_enable_pretty_printing): Likewise.
10313 (mi_cmd_var_set_update_range): Likewise.
10314 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10315 messages.
10316 (mi_cmd_target_file_put): Likewise.
10317 (mi_cmd_target_file_delete): Likewise.
10318 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10319 messages.
10320 (mi_cmd_stack_info_depth): Likewise.
10321 (mi_cmd_stack_list_locals): Likewise.
10322 (mi_cmd_stack_list_args): Likewise.
10323 (mi_cmd_stack_select_frame): Likewise.
10324 (mi_cmd_stack_select_frame): Likewise.
10325 (mi_cmd_stack_info_frame): Likewise.
10326 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10327 messages.
10328 (mi_cmd_file_list_exec_source_files): Likewise.
10329 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10330 (mi_cmd_env_cd): Likewise.
10331 (mi_cmd_env_path): Likewise.
10332 (mi_cmd_env_dir): Likewise.
10333 (mi_cmd_inferior_tty_show): Likewise.
10334 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10335 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10336 (mi_cmd_break_watch): Likewise.
10337
ad422571
TJB
103382011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10339
10340 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10341 (ppc_linux_insert_hw_breakpoint): Likewise.
10342 (ppc_linux_remove_hw_breakpoint): Likewise.
10343 (ppc_linux_insert_watchpoint): Likewise.
10344
c2ff108b
JK
103452011-01-12 Andrew Burgess <aburgess@broadcom.com>
10346 Jan Kratochvil <jan.kratochvil@redhat.com>
10347
10348 PR fortran/11104 and DWARF unbound arrays detection.
10349 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10350 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10351 unspecified upper bound.
10352 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10353 variables array_size_array, tmp_type and offset_item. New variable
10354 array. Remove call to f77_get_upperbound. New variables array_type
10355 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10356 the final call to deprecated_set_value_type.
10357
41e8491f
JK
103582011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10359
10360 Make value allocations more lazy.
10361 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10362 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10363 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10364 instead of allocate_value and set_value_lazy.
10365 * findvar.c (value_of_register_lazy): Likewise.
10366 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10367 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10368 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10369 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10370 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10371 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10372 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10373 the end, remove set_value_lazy there.
10374 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10375 instead of allocate_value and set_value_lazy when possible.
10376 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10377 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10378 of allocate_value and set_value_lazy.
10379 (value_from_contents_and_address): Use allocate_value_lazy instead of
10380 allocate_value and set_value_lazy when possible.
10381
b716877b
AB
103822011-01-12 Andrew Burgess <aburgess@broadcom.com>
10383
10384 * disasm.c (dump_insns): Support dumping opcodes for MI.
10385 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10386 dumping of instruction opcodes.
10387
d5ae309f
JB
103882011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10389
10390 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10391 appropiately.
10392
98871305
TT
103932011-01-11 Tom Tromey <tromey@redhat.com>
10394
10395 * thread.c (do_captured_thread_select): Emit newline before
10396 printing frame.
10397
c378eb4e
MS
103982011-01-11 Michael Snyder <msnyder@vmware.com>
10399
10400 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10401 * score-tdep.c: Ditto.
10402 * score-tdep.h: Ditto.
10403 * ser-base.c: Ditto.
10404 * ser-go32.c: Ditto.
10405 * serial.c: Ditto.
10406 * serial.h: Ditto.
10407 * ser-mingw.c: Ditto.
10408 * ser-pipe.c: Ditto.
10409 * ser-tcp.c: Ditto.
10410 * ser-unix.c: Ditto.
10411 * sh64-tdep.c: Ditto.
10412 * shnbsd-nat.c: Ditto.
10413 * sh-tdep.c: Ditto.
10414 * sh-tdep.h: Ditto.
10415 * solib.c: Ditto.
10416 * solib-darwin.c: Ditto.
10417 * solib-frv.c: Ditto.
10418 * solib.h: Ditto.
10419 * solib-irix.c: Ditto.
10420 * solib-osf.c: Ditto.
10421 * solib-pa64.c: Ditto.
10422 * solib-som.c: Ditto.
10423 * solib-spu.c: Ditto.
10424 * solib-sunos.c: Ditto.
10425 * solib-svr4.c: Ditto.
10426 * solist.h: Ditto.
10427 * sol-thread.c: Ditto.
10428 * somread.c: Ditto.
10429 * source.c: Ditto.
10430 * source.h: Ditto.
10431 * sparc64-linux-tdep.c: Ditto.
10432 * sparc64-tdep.c: Ditto.
10433 * sparc-linux-nat.c: Ditto.
10434 * sparc-linux-tdep.c: Ditto.
10435 * sparc-sol2-nat.c: Ditto.
10436 * sparc-sol2-tdep.c: Ditto.
10437 * sparc-tdep.c: Ditto.
10438 * sparc-tdep.h: Ditto.
10439 * spu-tdep.c: Ditto.
10440 * stabsread.c: Ditto.
10441 * stabsread.h: Ditto.
10442 * stack.c: Ditto.
10443 * symfile.c: Ditto.
10444 * symfile.h: Ditto.
10445 * symmisc.c: Ditto.
10446 * symtab.c: Ditto.
10447 * symtab.h: Ditto.
10448 * target.c: Ditto.
10449 * target-descriptions.c: Ditto.
10450 * target-descriptions.h: Ditto.
10451 * target.h: Ditto.
10452 * target-memory.c: Ditto.
10453 * terminal.h: Ditto.
10454 * thread.c: Ditto.
10455 * top.c: Ditto.
10456 * tracepoint.c: Ditto.
10457 * tracepoint.h: Ditto.
10458 * trad-frame.h: Ditto.
10459 * typeprint.c: Ditto.
10460
581e13c1
MS
104612011-01-11 Michael Snyder <msnyder@vmware.com>
10462
10463 * ui-file.c: Comment cleanup, mostly periods and spaces.
10464 * ui-file.h: Ditto.
10465 * ui-out.c: Ditto.
10466 * ui-out.h: Ditto.
10467 * utils.c: Ditto.
10468 * v850-tdep.c: Ditto.
10469 * valarith.c: Ditto.
10470 * valops.c: Ditto.
10471 * valprint.c: Ditto.
10472 * valprint.h: Ditto.
10473 * value.c: Ditto.
10474 * value.h: Ditto.
10475 * varobj.c: Ditto.
10476 * varobj.h: Ditto.
10477 * vax-tdep.c: Ditto.
10478 * vec.c: Ditto.
10479 * vec.h: Ditto.
10480 * version.h: Ditto.
10481 * windows-nat.c: Ditto.
10482 * windows-tdep.c: Ditto.
10483 * xcoffread.c: Ditto.
10484 * xcoffsolib.c: Ditto.
10485 * xml-support.c: Ditto.
10486 * xstormy16-tdep.c: Ditto.
10487 * xtensa-tdep.c: Ditto.
10488 * xtensa-tdep.h: Ditto.
10489
90e4670f
TJB
104902011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10491
10492 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10493 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10494
e09342b5
TJB
104952011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10496 Thiago Jung Bauermann <bauerman@br.ibm.com>
10497
10498 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10499 * breakpoint.h
e09342b5
TJB
10500 (struct breakpoint_ops) <resources_needed>: New method.
10501 Initialize to NULL in all existing breakpoint_ops instances.
10502 (struct breakpoint) <exact>: New field.
10503 (target_exact_watchpoints): Declare external global.
10504 * breakpoint.c (target_exact_watchpoints): New global flag.
10505 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10506 b->enable_state to bp_enabled before calling
10507 hw_watchpoint_used_count.
10508 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10509 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10510 if available.
10511 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10512 if the watchpoint is exact.
10513 (resources_needed_watchpoint): New function.
10514 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10515 (watch_command_1): Set b->exact if the user asked for an exact
10516 watchpoint and one can be set.
10517 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10518 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10519 the user asks for an exact watchpoint and one can be set. Return
10520 number of needed debug registers to watch the expression.
10521 * gdbtypes.c (is_scalar_type): New function, based on
10522 valprint.c:scalar_type_p.
10523 (is_scalar_type_recursive): New function.
10524 * gdbtypes.h (is_scalar_type_recursive): Declare.
10525 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10526 handle regions when ranged watchpoints are available.
10527 (create_watchpoint_request): New function.
10528 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10529 create_watchpoint_request.
10530 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10531 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10532 `set powerpc' and `show powerpc' commands.
10533 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10534 Mention documentation comment in the target macro.
10535 (target_region_ok_for_hw_watchpoint): Document return value.
10536
9fa40276
TJB
105372011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10538
10539 * breakpoint.c (update_watchpoint): Decide on using a software or
10540 hardware watchpoint after the bp_locations are created.
10541
77b06cd7
TJB
105422010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10543
10544 Convert hardware watchpoints to use breakpoint_ops.
10545 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10546 <insert_location>: ... this. Return int instead of void.
10547 Accept pointer to struct bp_location instead of pointer to
10548 struct breakpoint. Adapt all implementations.
f2eb0bc8 10549 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10550 <remove_location>: ... this. Accept pointer to struct bp_location
10551 instead of pointer to struct breakpoint. Adapt all implementations.
10552 * breakpoint.c (insert_catchpoint): Delete function.
10553 (insert_bp_location): Call the watchpoint or catchpoint's
10554 breakpoint_ops.insert method.
10555 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10556 breakpoint_ops.remove method.
10557 (insert_watchpoint, remove_watchpoint): New functions.
10558 (watchpoint_breakpoint_ops): New structure.
10559 (watch_command_1): Initialize the OPS field.
10560 * inf-child.c (inf_child_insert_fork_catchpoint)
10561 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10562 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10563 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10564 Delete functions.
10565 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10566 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10567 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10568 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10569 * target.c (update_current_target): Change default implementation of
10570 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10571 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10572 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10573 to_set_syscall_catchpoint to return_one.
10574 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10575 (debug_to_insert_exec_catchpoint): Report return value.
10576 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10577 (to_insert_exec_catchpoint): Change declaration to return int instead
10578 of void.
10579
9b20d036
MS
105802011-01-11 Michael Snyder <msnyder@vmware.com>
10581
10582 * arm-tdep.c: Internationalization.
10583 * c-lang.c: Ditto.
10584 * charset.c: Ditto.
10585 * fork-child.c: Ditto.
10586 * nto-procfs.c: Ditto.
10587 * ppc-sysv-tdep.c: Ditto.
10588 * procfs.c: Ditto.
10589 * remote-mips.c: Ditto.
10590 * remote.c: Ditto.
10591 * rs6000-nat.c: Ditto.
10592 * rs6000-tdep.c: Ditto.
10593 * target.c: Ditto.
10594 * valops.c: Ditto.
10595 * value.c: Ditto.
10596 * xml-support.c: Ditto.
10597 * mi/mi-cmd-break.c: Ditto.
10598 * mi/mi-cmd-var.c: Ditto.
10599 * mi/mi-interp.c: Ditto.
10600 * mi/mi-main.c: Ditto.
10601
dae477fe
AB
106022011-01-11 Andrew Burgess <aburgess@broadcom.com>
10603
10604 * remote-sim.c (gdbsim_store_register): Update API to
10605 sim_store_register to check more error conditions.
10606
0df8b418
MS
106072011-01-10 Michael Snyder <msnyder@vmware.com>
10608
10609 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10610 * nto-tdep.c: Ditto.
10611 * nto-tdep.h: Ditto.
10612 * objc-exp.y: Ditto.
10613 * objc-lang.c: Ditto.
10614 * objfiles.c: Ditto.
10615 * objfiles.h: Ditto.
10616 * observer.c: Ditto.
10617 * opencl-lang.c: Ditto.
10618 * osabi.c: Ditto.
10619 * parse.c: Ditto.
10620 * parser-defs.h: Ditto.
10621 * p-exp.y: Ditto.
10622 * p-lang.c: Ditto.
10623 * posix-hdep.c: Ditto.
10624 * ppcbug-rom.c: Ditto.
10625 * ppc-linux-nat.c: Ditto.
10626 * ppc-linux-tdep.c: Ditto.
10627 * ppc-linux-tdep.h: Ditto.
10628 * ppcnbsd-tdep.c: Ditto.
10629 * ppcobsd-tdep.c: Ditto.
10630 * ppcobsd-tdep.h: Ditto.
10631 * ppc-sysv-tdep.c: Ditto.
10632 * ppc-tdep.h: Ditto.
10633 * printcmd.c: Ditto.
10634 * proc-abi.c: Ditto.
10635 * proc-flags.c: Ditto.
10636 * procfs.c: Ditto.
10637 * proc-utils.h: Ditto.
10638 * progspace.h: Ditto.
10639 * prologue-value.c: Ditto.
10640 * prologue-value.h: Ditto.
10641 * psympriv.h: Ditto.
10642 * psymtab.c: Ditto.
10643 * p-typeprint.c: Ditto.
10644 * p-valprint.c: Ditto.
10645 * ravenscar-sparc-thread.c: Ditto.
10646 * ravenscar-thread.c: Ditto.
10647 * ravenscar-thread.h: Ditto.
10648 * record.c: Ditto.
10649 * regcache.c: Ditto.
10650 * regcache.h: Ditto.
10651 * remote.c: Ditto.
10652 * remote-fileio.c: Ditto.
10653 * remote-fileio.h: Ditto.
10654 * remote.h: Ditto.
10655 * remote-m32r-sdi.c: Ditto.
10656 * remote-mips.c: Ditto.
10657 * remote-sim.c: Ditto.
10658 * rs6000-aix-tdep.c: Ditto.
10659 * rs6000-nat.c: Ditto.
10660 * rs6000-tdep.c: Ditto.
10661
0d7a18f7
MS
106622011-01-10 Michael Snyder <msnyder@vmware.com>
10663
10664 * charset.c (validate): Internationalization.
10665 * coffread.c (read_one_sym): Ditto.
10666 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10667 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10668 * inflow.c (new_tty): Ditto.
10669 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10670 * m32c-tdep.c (m32c_return_value): Ditto.
10671 * mep-tdep.c (mep_store_return_value): Ditto.
10672 * score-tdep.c (score7_fetch_insn): Ditto.
10673 * ser-mingw.c (pipe_windows_open): Ditto.
10674 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10675 * spu-tdep.c (spu_register_type): Ditto.
10676 * tracepoint.c (trace_find_command): Ditto.
10677 * valarith.c (value_pos): Ditto.
10678
9a153e0b
JB
106792011-01-10 Joel Brobecker <brobecker@adacore.com>
10680
10681 * ada-valprint.c (printstr): Minor comment reformatting.
10682
35ecd2d6
MS
106832011-01-08 Michael Snyder <msnyder@vmware.com>
10684
10685 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10686 markup.
10687
1777feb0
MS
106882011-01-08 Michael Snyder <msnyder@vmware.com>
10689
10690 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10691 * hppa-hpux-tdep.c: Ditto.
10692 * hppa-linux-nat.c: Ditto.
10693 * hppa-linux-tdep.c: Ditto.
10694 * hppanbsd-tdep.c: Ditto.
10695 * hppa-tdep.c: Ditto.
10696 * hppa-tdep.h: Ditto.
10697 * hpux-thread.c: Ditto.
10698 * i386-cygwin-tdep.c: Ditto.
10699 * i386-darwin-nat.c: Ditto.
10700 * i386gnu-nat.c: Ditto.
10701 * i386-linux-nat.c: Ditto.
10702 * i386-linux-tdep.c: Ditto.
10703 * i386-nat.c: Ditto.
10704 * i386-nat.h: Ditto.
10705 * i386nbsd-tdep.c: Ditto.
10706 * i386-sol2-nat.c: Ditto.
10707 * i386-stub.c: Ditto.
10708 * i386-tdep.c: Ditto.
10709 * i386-tdep.h: Ditto.
10710 * i387-tdep.c: Ditto.
10711 * ia64-linux-nat.c: Ditto.
10712 * ia64-linux-tdep.c: Ditto.
10713 * ia64-tdep.c: Ditto.
10714 * infcall.c: Ditto.
10715 * infcall.h: Ditto.
10716 * infcmd.c: Ditto.
10717 * inferior.c: Ditto.
10718 * inferior.h: Ditto.
10719 * infloop.c: Ditto.
10720 * inflow.c: Ditto.
10721 * infrun.c: Ditto.
10722 * interps.c: Ditto.
10723 * interps.h: Ditto.
10724 * iq2000-tdep.c: Ditto.
10725 * irix5-nat.c: Ditto.
10726 * jit.c: Ditto.
10727 * jit.h: Ditto.
10728 * jv-exp.y: Ditto.
10729 * jv-lang.c: Ditto.
10730 * jv-lang.h: Ditto.
10731 * jv-typeprint.c: Ditto.
10732 * jv-valprint.c: Ditto.
10733 * language.c: Ditto.
10734 * language.h: Ditto.
10735 * linespec.c: Ditto.
10736 * linux-fork.c: Ditto.
10737 * linux-nat.c: Ditto.
10738 * linux-thread-db.c: Ditto.
10739 * lm32-tdep.c: Ditto.
10740
025bb325
MS
107412011-01-08 Michael Snyder <msnyder@vmware.com>
10742
10743 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10744 * m2-lang.c: Ditto.
10745 * m2-typeprint.c: Ditto.
10746 * m2-valprint.c: Ditto.
10747 * m32c-tdep.c: Ditto.
10748 * m32r-linux-nat.c: Ditto.
10749 * m32r-rom.c: Ditto.
10750 * m32r-tdep.c: Ditto.
10751 * m32r-tdep.h: Ditto.
10752 * m68hc11-tdep.c: Ditto.
10753 * m58klinux-nat.c: Ditto.
10754 * m68k-tdep.c: Ditto.
10755 * m88k-tdep.c: Ditto.
10756 * m88k-tdep.h: Ditto.
10757 * machoread.c: Ditto.
10758 * macrocmd.c: Ditto.
10759 * macroexp.c: Ditto.
10760 * macrotab.c: Ditto.
10761 * main.c: Ditto.
10762 * maint.c: Ditto.
10763 * mdebugread.c: Ditto.
10764 * mdebugread.h: Ditto.
10765 * memattr.c: Ditto.
10766 * memattr.h: Ditto.
10767 * memory-map.h: Ditto.
10768 * mep-tdep.c: Ditto.
10769 * microblaze-rom.c: Ditto.
10770 * microblaze-tdep.c: Ditto.
10771 * minsyms.c: Ditto.
10772 * mips-irix-tdep.c: Ditto.
10773 * mips-linux-nat.c: Ditto.
10774 * mips-linux-tdep.c: Ditto.
10775 * mips-linux-tdep.h: Ditto.
10776 * mipsnbsd-nat.c: Ditto.
10777 * mipsnbsd-tdep.c: Ditto.
10778 * mipsread.c: Ditto.
10779 * mips-tdep.c: Ditto.
10780 * mips-tdep.h: Ditto.
10781 * mn10300-linux-tdep.c: Ditto.
10782 * mn10300-tdep.c: Ditto.
10783 * mn10300-tdep.h: Ditto.
10784 * monitor.c: Ditto.
10785 * monitor.h: Ditto.
10786 * moxie-tdep.c: Ditto.
10787 * moxie-tdep.h: Ditto.
10788 * mt-tdep.c: Ditto.
10789
1642781b
MF
107902011-01-08 Mike Frysinger <vapier@gentoo.org>
10791
10792 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10793
394b0adb
JB
107942011-01-08 Robert Millan <rmh@gnu.org>
10795
10796 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10797
b670013c
MS
107982011-01-07 Michael Snyder <msnyder@vmware.com>
10799
10800 * charset.c (_initialize_charset): Fix typo in string.
10801
a743e542
MS
108022011-01-07 Michael Snyder <msnyder@vmware.com>
10803
10804 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10805 for i18n.
f2eb0bc8 10806 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10807 Split line so that operator goes to beginning of line.
10808 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10809 assignment out of if statement.
10810
0963b4bd
MS
108112011-01-07 Michael Snyder <msnyder@vmware.com>
10812
10813 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10814 * ada-lang.h: Ditto.
10815 * ada-tasks.c: Ditto.
10816 * ada-valprint.c: Ditto.
10817 * aix-threads.c: Ditto.
10818 * alpha-linux-nat.c: Ditto.
10819 * alpha-linux-tdep.c: Ditto.
10820 * alpha-mdebug-tdep.c: Ditto.
10821 * alpha-nat.c: Ditto.
10822 * alpha-osf1-tdep.c: Ditto.
10823 * alpha-tdep.c: Ditto.
10824 * alphabsd-nat.c: Ditto.
10825 * alphabsd-tdep.c: Ditto.
10826 * amd64-darwin-tdep.c: Ditto.
10827 * amd64-linux-nat.c: Ditto.
10828 * amd64-linux-tdep.c: Ditto.
10829 * amd64-sol2-tdep.c: Ditto.
10830 * amd64-tdep.c: Ditto.
10831 * amd64-fbsd-tdep.c: Ditto.
10832 * amd64-nbsd-tdep.c: Ditto.
10833 * amd64-obsd-tdep.c: Ditto.
10834 * amd64-linux-nat.c: Ditto.
10835 * amd64-linux-tdep.c: Ditto.
10836 * arm-tdep.c: Ditto.
10837 * arm-tdep.h: Ditto.
10838 * armnbsd-nat.c: Ditto.
10839 * avr-tdep.c: Ditto.
10840 * bfin-tdep.c: Ditto.
10841 * bsd-kvm.c: Ditto.
10842 * c-typeprintc: Ditto.
10843 * c-valprint.c: Ditto.
10844 * coff-pe-read.h: Ditto.
10845 * coffreead.c: Ditto.
10846 * cris-tdep.c: Ditto.
10847 * d-lang.c: Ditto.
10848 * darwin-nat-info.c: Ditto.
10849 * darwin-nat.c: Ditto.
10850 * dbug-rom.c: Ditto.
10851 * dbxread.c: Ditto.
10852 * dcache.c: Ditto.
10853 * dcache.h: Ditto.
10854 * dec-thread.c: Ditto.
10855 * defs.h: Ditto.
10856 * demangle.c: Ditto.
10857 * dicos-tdep.c: Ditto.
10858 * dictionary.c: Ditto.
10859 * dictionary.h: Ditto.
10860 * dink32-rom.c: Ditto.
10861 * disasm.c: Ditto.
10862 * doublest.c: Ditto.
10863 * dsrec.c: Ditto.
10864 * dummy-frame.c: Ditto.
10865 * dwarf2-frame.c: Ditto.
10866 * dwarf2expr.c: Ditto.
10867 * dwarf2loc.c: Ditto.
10868 * dwarf2read.c: Ditto.
10869 * elfread.c: Ditto.
10870 * environ.c: Ditto.
10871 * eval.c: Ditto.
10872 * event-top.h: Ditto.
10873 * exceptions.c: Ditto.
10874 * exceptions.h: Ditto.
10875 * exec.c: Ditto.
10876 * expprint.c: Ditto.
10877 * expression.h: Ditto.
10878 * f-exp.y: Ditto.
10879 * f-lang.c: Ditto.
10880 * f-lang.h: Ditto.
10881 * f-typeprint.c: Ditto.
10882 * f-valprint.c: Ditto.
10883 * fbsd-nat.c: Ditto.
10884 * findvar.c: Ditto.
10885 * fork-child.c: Ditto.
10886 * frame.c: Ditto.
10887 * frame.h: Ditto.
10888 * frv-linux-tdep.c: Ditto.
10889 * frv-tdep.c: Ditto.
10890 * gcore.c: Ditto.
10891 * gdb-stabs.h: Ditto.
10892 * gdb_assert.h: Ditto.
10893 * gdb_string.h: Ditto.
10894 * gdb_thread_db.h: Ditto.
10895 * gdb_wait.h: Ditto.
10896 * gdbarch.sh: Ditto.
10897 * gdbcore.h: Ditto.
10898 * gdbthread.h: Ditto.
10899 * gdbtypes.c: Ditto.
10900 * gdbtypes.h: Ditto.
10901 * gnu-nat.c: Ditto.
10902 * gnu-nat.h: Ditto.
10903 * gnu-v2-abi.c: Ditto.
10904 * gnu-v3-abi.c: Ditto.
10905 * go32-nat.c: Ditto.
10906 * gdbarch.c: Regenerate.
10907 * gdbarch.h: Regenerate.
10908
ac74f770
MS
109092011-01-07 Michael Snyder <msnyder@vmware.com>
10910
10911 * ax-gdb.c: Adjust some long output strings.
10912 * breakpoint.c: Ditto.
10913 * charset.c: Ditto.
10914 * cp-abi.c: Ditto.
10915 * infcall.c: Ditto.
10916 * infrun.c: Ditto.
10917 * linux-nat.c: Ditto.
10918 * solib-pa64.c: Ditto.
10919 * solib-som.c: Ditto.
10920
d8e22779
TT
109212011-01-06 Tom Tromey <tromey@redhat.com>
10922
10923 PR python/12367:
10924 * NEWS: Add item.
10925 * python/python.c (GdbMethods): Add "newest_frame" method.
10926 * python/python-internal.h (gdbpy_newest_frame): Declare.
10927 * python/py-frame.c (gdbpy_newest_frame): New function.
10928
a255712f
PP
109292010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10930
10931 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10932 * jit.c (jit_debug): New variable.
10933 (show_jit_debug): New function.
10934 (struct target_buffer): Use ULONGEST.
10935 (bfd_open_from_target_memory): Likewise.
10936 (jit_register_code, jit_inferior_init): Add debug output.
10937 (_initialize_jit): Register "debug jit" command.
10938
ccfc3d6e
TT
109392011-01-06 Tom Tromey <tromey@redhat.com>
10940
10941 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10942 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10943 and ARCH_FRAME.
10944
57126e4a
TT
109452011-01-06 Tom Tromey <tromey@redhat.com>
10946
10947 * python/py-frame.c (frapy_block): Use get_frame_block.
10948
16dfc9ce
JB
109492011-01-06 Joel Brobecker <brobecker@adacore.com>
10950
10951 Do not stop on SIGPRIO signals by default
10952 * infrun.c (_initialize_infrun): Unset signal_stop and
10953 signal_print for TARGET_SIGNAL_PRIO.
10954
b1ce2347
JB
109552011-01-06 Joel Brobecker <brobecker@adacore.com>
10956
10957 * ada-tasks.c: Fix style violation in comment.
10958
8f7e195f
JB
109592011-01-06 Joel Brobecker <brobecker@adacore.com>
10960
10961 * linespec.c (decode_compound, find_method): Remove trailing \n
10962 at end of error string.
10963 * solib-irix.c (irix_current_sos): Likewise.
10964 * varobj.c (uninstall_variable): Likewise.
10965
e9bdf92c
JB
109662011-01-06 Joel Brobecker <brobecker@adacore.com>
10967
10968 * copyright.py: New script.
10969 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10970 Launch emacs without exec'ing. Call copyright.py afterwards.
10971
3e43a32a
MS
109722011-01-05 Michael Snyder <msnyder@vmware.com>
10973
10974 * addrmap.c: Shorten lines of >= 80 columns.
10975 * arch-utils.c: Ditto.
10976 * arch-utils.h: Ditto.
10977 * ax-gdb.c: Ditto.
10978 * ax-general.c: Ditto.
10979 * bcache.c: Ditto.
10980 * blockframe.c: Ditto.
10981 * breakpoint.c: Ditto.
10982 * buildsym.c: Ditto.
10983 * c-lang.c: Ditto.
10984 * c-typeprint.c: Ditto.
10985 * charset.c: Ditto.
10986 * coffread.c: Ditto.
10987 * command.h: Ditto.
10988 * corelow.c: Ditto.
10989 * cp-abi.c: Ditto.
10990 * cp-namespace.c: Ditto.
10991 * cp-support.c: Ditto.
10992 * dbug-rom.c: Ditto.
10993 * dbxread.c: Ditto.
10994 * defs.h: Ditto.
10995 * dfp.c: Ditto.
10996 * dfp.h: Ditto.
10997 * dictionary.c: Ditto.
10998 * disasm.c: Ditto.
10999 * doublest.c: Ditto.
11000 * dwarf2-frame.c: Ditto.
11001 * dwarf2expr.c: Ditto.
11002 * dwarf2loc.c: Ditto.
11003 * dwarf2read.c: Ditto.
11004 * elfread.c: Ditto.
11005 * eval.c: Ditto.
11006 * event-loop.c: Ditto.
11007 * event-loop.h: Ditto.
11008 * exceptions.h: Ditto.
11009 * exec.c: Ditto.
11010 * expprint.c: Ditto.
11011 * expression.h: Ditto.
11012 * f-lang.c: Ditto.
11013 * f-valprint.c: Ditto.
11014 * findcmd.c: Ditto.
11015 * frame-base.c: Ditto.
11016 * frame-unwind.c: Ditto.
11017 * frame-unwind.h: Ditto.
11018 * frame.c: Ditto.
11019 * frame.h: Ditto.
11020 * gcore.c: Ditto.
11021 * gdb-stabs.h: Ditto.
11022 * gdb_assert.h: Ditto.
11023 * gdb_dirent.h: Ditto.
11024 * gdb_obstack.h: Ditto.
11025 * gdbcore.h: Ditto.
11026 * gdbtypes.c: Ditto.
11027 * gdbtypes.h: Ditto.
11028 * inf-ttrace.c: Ditto.
11029 * infcall.c: Ditto.
11030 * infcmd.c: Ditto.
11031 * inflow.c: Ditto.
11032 * infrun.c: Ditto.
11033 * inline-frame.h: Ditto.
11034 * language.c: Ditto.
11035 * language.h: Ditto.
11036 * libunwind-frame.c: Ditto.
11037 * libunwind-frame.h: Ditto.
11038 * linespec.c: Ditto.
11039 * linux-nat.c: Ditto.
11040 * linux-nat.h: Ditto.
11041 * linux-thread-db.c: Ditto.
11042 * machoread.c: Ditto.
11043 * macroexp.c: Ditto.
11044 * macrotab.c: Ditto.
11045 * main.c: Ditto.
11046 * maint.c: Ditto.
11047 * mdebugread.c: Ditto.
11048 * memattr.c: Ditto.
11049 * minsyms.c: Ditto.
11050 * monitor.c: Ditto.
11051 * monitor.h: Ditto.
11052 * objfiles.c: Ditto.
11053 * objfiles.h: Ditto.
11054 * osabi.c: Ditto.
11055 * p-typeprint.c: Ditto.
11056 * p-valprint.c: Ditto.
11057 * parse.c: Ditto.
11058 * printcmd.c: Ditto.
11059 * proc-events.c: Ditto.
11060 * procfs.c: Ditto.
11061 * progspace.c: Ditto.
11062 * progspace.h: Ditto.
11063 * psympriv.h: Ditto.
11064 * psymtab.c: Ditto.
11065 * record.c: Ditto.
11066 * regcache.c: Ditto.
11067 * regcache.h: Ditto.
11068 * remote-fileio.c: Ditto.
11069 * remote.c: Ditto.
11070 * ser-mingw.c: Ditto.
11071 * ser-tcp.c: Ditto.
11072 * ser-unix.c: Ditto.
11073 * serial.c: Ditto.
11074 * serial.h: Ditto.
11075 * solib-frv.c: Ditto.
11076 * solib-irix.c: Ditto.
11077 * solib-osf.c: Ditto.
11078 * solib-pa64.c: Ditto.
11079 * solib-som.c: Ditto.
11080 * solib-sunos.c: Ditto.
11081 * solib-svr4.c: Ditto.
11082 * solib-target.c: Ditto.
11083 * solib.c: Ditto.
11084 * somread.c: Ditto.
11085 * source.c: Ditto.
11086 * stabsread.c: Ditto.
11087 * stabsread.c: Ditto.
11088 * stack.c: Ditto.
11089 * stack.h: Ditto.
11090 * symfile-mem.c: Ditto.
11091 * symfile.c: Ditto.
11092 * symfile.h: Ditto.
11093 * symmisc.c: Ditto.
11094 * symtab.c: Ditto.
11095 * symtab.h: Ditto.
11096 * target-descriptions.c: Ditto.
11097 * target-memory.c: Ditto.
11098 * target.c: Ditto.
11099 * target.h: Ditto.
11100 * terminal.h: Ditto.
11101 * thread.c: Ditto.
11102 * top.c: Ditto.
11103 * tracepoint.c: Ditto.
11104 * tracepoint.h: Ditto.
11105 * ui-file.c: Ditto.
11106 * ui-file.h: Ditto.
11107 * ui-out.h: Ditto.
11108 * user-regs.c: Ditto.
11109 * user-regs.h: Ditto.
11110 * utils.c: Ditto.
11111 * valarith.c: Ditto.
11112 * valops.c: Ditto.
11113 * valprint.c: Ditto.
11114 * valprint.h: Ditto.
11115 * value.c: Ditto.
11116 * varobj.c: Ditto.
11117 * varobj.h: Ditto.
11118 * vec.h: Ditto.
11119 * xcoffread.c: Ditto.
11120 * xcoffsolib.c: Ditto.
11121 * xcoffsolib.h: Ditto.
11122 * xml-syscall.c: Ditto.
11123 * xml-tdesc.c: Ditto.
11124
9a2b4c1b
MS
111252011-01-05 Michael Snyder <msnyder@vmware.com>
11126
11127 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11128 * cli/cli-decode.c: Ditto.
11129 * cli/cli-dump.c: Ditto.
11130 * cli/cli-logging.c: Ditto.
11131 * cli/cli-script.c: Ditto.
11132 * cli/cli-setshow.c: Ditto.
11133 * common/signals.c: Ditto.
11134 * mi/mi-cmd-break.c: Ditto.
11135 * mi/mi-cmd-disas.c: Ditto.
11136 * mi/mi-cmd-stack.c: Ditto.
11137 * mi/mi-cmd-var.c: Ditto.
11138 * mi/mi-cmds.c: Ditto.
11139 * mi/mi-common.h: Ditto.
11140 * mi/mi-console.c: Ditto.
11141 * mi/mi-interp.c: Ditto.
11142 * mi/mi-main.c: Ditto.
11143 * osf-share/cma_attr.c: Ditto.
11144 * osf-share/cma_deb_core.h: Ditto.
11145 * osf-share/cma_debug_client.h: Ditto.
11146 * osf-share/cma_handle.h: Ditto.
11147 * osf-share/cma_mutex.h: Ditto.
11148 * osf-share/cma_stack_int.h: Ditto.
11149 * osf-share/cma_tcb_defs.h: Ditto.
11150 * python/py-auto-load.c: Ditto.
11151 * python/py-breakpoint.c: Ditto.
11152 * python/py-cmd.c: Ditto.
11153 * python/py-frame.c: Ditto.
11154 * python/py-objfile.c: Ditto.
11155 * python/py-param.c: Ditto.
11156 * python/py-progspace.c: Ditto.
11157 * python/py-symbol.c: Ditto.
11158 * python/py-value.c: Ditto.
11159 * python/python-internal.h: Ditto.
11160 * python/python.c: Ditto.
11161 * tui/tui-data.c: Ditto.
11162 * tui/tui-disasm.c: Ditto.
11163 * tui/tui-hooks.c: Ditto.
11164 * tui/tui-io.c: Ditto.
11165 * tui/tui-layout.c: Ditto.
11166 * tui/tui-regs.c: Ditto.
11167 * tui/tui-source.c: Ditto.
11168 * tui/tui-stack.c: Ditto.
11169 * tui/tui-win.c: Ditto.
11170 * tui/tui-windata.c: Ditto.
11171 * tui/tui-winsource.c: Ditto.
11172
44944448
JB
111732011-01-05 Joel Brobecker <brobecker@adacore.com>
11174
11175 * configure.ac, gdb.1: Copyright year update.
11176
ebedcab5
JK
111772011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11178
11179 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11180 this_pc_in_block, morestack_msym and morestack_name. Check for
11181 "__morestack" minimal symbol there.
11182
e5cc9f32
JB
111832011-01-03 Joel Brobecker <brobecker@adacore.com>
11184
11185 * symfile.c (find_sym_fns): Add call to dont_repeat.
11186
7b6bb8da
JB
111872011-01-01 Joel Brobecker <brobecker@adacore.com>
11188
11189 Copyright year update in most files (performed by copyright.sh).
11190
71ce852c
JB
111912011-01-01 Joel Brobecker <brobecker@adacore.com>
11192
11193 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11194
c3c1ebe8 11195For older changes see ChangeLog-2010.
c906108c
SS
11196\f
11197Local Variables:
11198mode: change-log
11199left-margin: 8
11200fill-column: 74
11201version-control: never
57da7796 11202coding: utf-8
c906108c 11203End:
This page took 1.735885 seconds and 4 git commands to generate.