* gdb.cp/nextoverthrow.exp: Skip test if debug info for
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8443c207
KY
12011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
2
3 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
4 the case where osdata->items is empty. Rename column names to a
5 canonical form to avoid problems with unusual column names.
6
97643830
YQ
72011-11-21 Yao Qi <yao@codesourcery.com>
8
9 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
10
f196051f
SS
112011-11-20 Stan Shebs <stan@codesourcery.com>
12
13 * NEWS: Mention tracepoint additions.
14 * breakpoint.h (struct tracepoint): New field traceframe_usage.
15 * breakpoint.c (print_one_breakpoint_location): Identify
16 tracepoints as such when reporting hit counts, report
17 trace buffer usage.
18 (create_tracepoint_from_upload): Copy status info.
19 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
20 add fields user_name, notes, start_time, stop_time.
21 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
22 * tracepoint.c (trace_user): New global.
23 (trace_notes): New global.
24 (trace_stop_notes): New global.
25 (start_tracing): Add argument and trace note handling.
26 (stop_tracing): Ditto.
27 (trace_start_command): Add notes argument.
28 (trace_stop_command): Ditto.
29 (trace_status_command): Report additional status info.
30 (trace_status_mi): Similarly.
31 (trace_save): Update, record tracepoint status.
32 (set_disconnected_tracing): Call target method directly.
33 (send_disconnected_tracing_value): Remove.
34 (set_trace_user): New function.
35 (set_trace_notes): New function.
36 (set_trace_stop_notes): New function.
37 (parse_trace_status): Handle additional status.
38 (parse_tracepoint_status): New function.
39 (parse_tracepoint_definition): Call it.
40 (tfile_get_tracepoint_status): New function.
41 (init_tfile_ops): Use it.
42 (_initialize_tracepoint): Add new setshows.
43 * target.h (struct target_ops): New methods to_get_tracepoint_status
44 and to_set_trace_notes.
45 (target_get_tracepoint_status): New macro.
46 (target_set_trace_notes): New macro.
47 * target.c (update_current_target): Add new methods.
48 * remote.c (remote_get_tracepoint_status): New function.
49 (remote_set_trace_notes): New function.
50 (init_remote_ops): Add them.
51 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
52 (mi_cmd_trace_stop): Ditto.
53
3623dc3a
SD
542011-11-20 Sanjoy Das <sdas@igalia.com>
55
56 * jit.c: Include regcache.h.
57 (jit_gdbarch_data, jit_frame_unwind): New static variables.
58 (jit_unwind_reg_set_impl, free_reg_value_impl)
59 (jit_unwind_reg_get_impl, jit_frame_sniffer)
60 (jit_frame_unwind_stop_reason, jit_frame_this_id)
61 (jit_frame_prev_register, jit_dealloc_cache)
62 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
63 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
64 jit_prepend_unwinder.
65 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
66
1825a88d
SD
672011-11-20 Sanjoy Das <sdas@igalia.com>
68
69 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
70 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
71 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
72 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
73 (finalize_symtab, jit_object_close_impl)
74 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
75 (free_objfile_data): New functions.
76 (_initialize_jit): Register jit_objfile_data with a proper cleanup
77 function.
78
784c47ee
SD
792011-11-20 Sanjoy Das <sdas@igalia.com>
80
81 * jit.c: Include gdb-dlfcn.h.
82 (loaded_jit_reader, reader_init_fn_sym): New static variables.
83 (jit_reader_load, jit_reader_load_command)
84 (jit_reader_unload_command): New functions.
85 (_initialize_jit): Add commands "jit-reader-load" and
86 "jit-reader-unload".
87
a2d08b9e
SD
882011-11-20 Sanjoy Das <sdas@igalia.com>
89
90 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
91 * config.in: Add new #define HAVE_LIBDL.
92 * configure.ac: Add check for -ldl.
93 * configure: Re-generated by autoconf.
94 * gdb-dlfcn.c: New file.
95 * gdb-dlfcn.h: New file.
96
b8e0a31c
SD
972011-11-20 Sanjoy Das <sdas@igalia.com>
98
99 * config.in: Add new #defines: JIT_READER_DIR and
100 JIT_READER_DIR_RELOCATABLE.
101 * configure.ac: New GDB directory entry for jit-reader-dir.
102 * configure: Re-generated by autoconf.
103 * jit.c: New static variable: const char *jit_reader_dir.
104 (_initialize_jit): Relocate jit_reader_dir.
105
f997c383
SD
1062011-11-20 Sanjoy Das <sdas@igalia.com>
107
108 * Makefile.in: Add jit-reader.h as a header. Have it installed in
109 $(includedir)/gdb.
110 * configure.ac: Generate a correct value for TARGET_PTR for
111 jit-reader.h. Tell configure to generate jit-reader.h from
112 jit-reader.in.
113 * configure: Re-generated by autoconf.
114 * jit-reader.in: New file.
115 * jit.c: Include jit-reader.h.
116
dc8c0494
SD
1172011-11-20 Sanjoy Das <sdas@igalia.com>
118
119 * MAINTAINERS (Write After Approval): Add myself to the list.
120
01efb936
UW
1212011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
122
123 * findvar.c (read_frame_register_value): Respect value_offset
124 of the register value. Remove big-endian special case.
125
732f3f12
TT
1262011-11-18 Tom Tromey <tromey@redhat.com>
127
128 PR build/7196:
129 * remote.c (putpkt_for_catch_errors): New function.
130 (remote_kill): Use it.
131
bfccc43c
YQ
1322011-11-18 Yao Qi <yao@codesourcery.com>
133
134 * breakpoint.c (create_breakpoint): Produce query message according to
135 breakpoint's type.
136 Allocate tracepoint per correct type.
137 Don't check SALs for pending fast tracepoints.
138 * tracepoint.c (process_tracepoint_on_disconnect): New.
139 (disconnect_tracing): Call process_tracepoint_on_disconnect.
140
3ea46bff
YQ
1412011-11-18 Yao Qi <yao@codesourcery.com>
142
143 * breakpoint.c (install_breakpoint): Add one more parameter so that
144 update_global_location_list is called conditionally.
145 (create_fork_vfork_event_catchpoint): Update.
146 (create_syscall_event_catchpoint): Update.
147 (create_breakpoint_sal): Update.
148 (create_breakpoint_sal): Update. Call do_cleanups before
149 install_breakpoint.
150 * ada-lang.c (create_ada_exception_catchpoint): Update.
151 * breakpoint.h (install_breakpoint): Update declaration.
152
598cfb71
UW
1532011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
154
155 * spu-tdep.c (spu_return_value): Fix handling of
156 TYPE_CALLING_CONVENTION annotation.
157
caf4328c
UW
1582011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
159
160 * skip.c (skip_function_command): Work around uninitialized
161 variable warning.
162
2b54dda2
DM
1632011-11-16 David S. Miller <davem@davemloft.net>
164
165 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
166 'tv_usec' to long for printf since these fields have a type which
167 varies.
168
93bf33fd
DE
1692011-11-15 Doug Evans <dje@google.com>
170
171 * buildsym.c (add_symbol_to_list): Delete outdated comment.
172
9cc10fd1
PK
1732011-11-15 Paul Koning <paul_koning@dell.com>
174
175 * python/py-type.c (typy_get_composite): New function.
176 (typy_nonzero): New function.
177 (typy_values): Rename from typy_fields.
178 (typy_fields): New function.
179 (typy_length): Raise exception if not struct, union, or enum type.
180 (typy_getitem): Ditto.
181 (typy_has_key): Ditto.
182 (typy_make_iter): Ditto.
183
c011a4f4
DE
1842011-11-15 Doug Evans <dje@google.com>
185
186 * NEWS: Mention new parameter basenames-may-differ.
187 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
188 ! basenames_may_differ.
189 * psymtab.c (lookup_partial_symtab): Ditto.
190 * symtab.c (lookup_symtab): Ditto.
191 (basenames_may_differ): New global.
192 (_initialize_symtab): New parameter basenames-may-differ.
193 * symtab.h (basenames_may_differ): Declare.
194
865ecab4
LM
1952011-11-15 Pedro Alves <pedro@codesourcery.com>
196 Luis Machado <lgustavo@codesourcery.com>
197
198 * auxv.c: Include observer.h.
199 (auxv_inferior_data_cleanup): New.
200 (invalidate_auxv_cache_inf): New.
201 (invalidate_auxv_cache): New.
202 (get_auxv_inferior_data): New.
203 (auxv_inferior_data): New static global.
204 (auxv_info): New structure.
205 (target_auxv_search): Use get_auxv_inferior_data instead of
206 target_read_alloc and don't free cached buffers.
207 (fprint_target_auxv): Likewise
208 (_initialize_auxv): Register per-inferior auxv cache and register
209 observers to invalidate auxv cache when needed.
210
ed59ded5
DE
2112011-11-14 Doug Evans <dje@google.com>
212
213 Make "!" an alias for "shell".
214 * NEWS: Add mention.
215 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
216 adding "!" command, always add it.
217 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
218 command of length one.
219
405f8e94
SS
2202011-11-14 Stan Shebs <stan@codesourcery.com>
221 Kwok Cheung Yeung <kcy@codesourcery.com>
222
223 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
224 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
225 the minimum instruction size for fast tracepoints.
226 * target.h (struct target_ops): Add new method
227 to_get_min_fast_tracepoint_insn_len.
228 (target_get_min_fast_tracepoint_insn_len): New.
229 * target.c (update_current_target): Set up new target operation.
230 * remote.c (remote_write_bytes_aux): Fix typo.
231 (remote_get_min_fast_tracepoint_insn_len): New.
232 (init_remote_ops): Initialize new field.
233
3e05895e
TT
2342011-11-14 Tom Tromey <tromey@redhat.com>
235
236 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
237 (encode_actions): Likewise.
238
1e4d1764
YQ
2392011-11-14 Yao Qi <yao@codesourcery.com>
240
241 * remote.c (struct remote_state): <install_in_trace> new field.
242 (PACKET_InstallInTrace): New enum value.
243 (remote_install_in_trace_feature): Support InstallInTrace.
244 (remote_supports_install_in_trace): Likewise.
245 (remote_protocol_features): Likewise.
246 (_initialize_remote): Likewise.
247 (remote_can_download_tracepoint): New.
248 * target.h (struct target): New field
249 `to_can_download_tracepoint'.
250 (target_can_download_tracepoint): New macro.
251 * target.c (update_current_target): Update.
252 * breakpoint.h (struct bp_location): Add comment on field
253 `duplicate'.
3ccd4ac6
YQ
254 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
255 and tracepoint.
1e4d1764
YQ
256 (remove_breakpoints): Don't remove tracepoints.
257 (tracepoint_locations_match ): New.
258 (breakpoint_locations_match): Call it.
259 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
260 (download_tracepoint_locations): New.
261 (update_global_location_list): Call it.
262 * tracepoint.c (find_matching_tracepoint): Delete.
263 (find_matching_tracepoint_location): Renamed from
264 find_matching_tracepoint. Return bp_location rather than
265 tracepoint.
266 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
267 tracepoint is found.
268
e8ba3115
YQ
2692011-11-14 Yao Qi <yao@codesourcery.com>
270
271 * target.h (struct target): <to_download_tracepoint> Change type
272 of parameter from tracepoint to bp_location.
273 * target.c (update_current_target): Update.
274 * tracepoint.c (start_tracing): Update.
275 * remote.c (remote_download_tracepoint): Remove loop for each location
276 of a tracepoint.
277
edcc485a
MR
2782011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
279
280 * i386-nat.c (i386_insert_hw_breakpoint): Call
281 i386_update_inferior_debug_regs.
282 (i386_remove_hw_breakpoint): Likewise.
283
3742cc8b
YQ
2842011-11-14 Yao Qi <yao@codesourcery.com>
285
286 * breakpoint.c (init_raw_breakpoint): Call
287 add_location_to_breakpoint to replace duplicated code.
288 (add_location_to_breakpoint): Adjust the breakpoint's
289 address prior to allocating a location.
290
71eba9c2 2912011-11-12 Matt Rice <ratmice@gmail.com>
292
293 * macrocmd.c (macro_no_macro_info): New function.
294 (macro_expand_command): Use macro_no_macro_info.
295 (macro_expand_once_command): Ditto.
296 (info_macro_command): Add argument processing,
297 move info_definitions_command here.
298 (_initialize_macrocmd): Remove info definitions command.
299 Add arguments to info macro help text.
300 * NEWS: Replace info definitions command with new info macro options.
301
731971ed
KS
3022011-11-11 Keith Seitz <keiths@redhat.com>
303
304 PR gdb/12843
305 * linespec.c (locate_first_half): Keep ':' if it looks
306 like it could be part of a Windows path starting with
307 a drive letter.
308
6953d224
PA
3092011-11-10 Pedro Alves <pedro@codesourcery.com>
310
311 * linux-nat.c (linux_nat_wait): Don't force waking up the event
312 loop when returning a TARGET_WAITKIND_NO_RESUMED.
313
0c94aa73
PA
3142011-11-10 Pedro Alves <pedro@codesourcery.com>
315
316 * target.c (target_waitstatus_to_string): Handle
317 TARGET_WAITKIND_NO_RESUMED.
318
f6b47be4
DE
3192011-11-10 Doug Evans <dje@google.com>
320
74e2f255
DE
321 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
322 `need_fullname'.
323 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
324 (map_partial_symbol_filenames): Ditto. All callers updated.
325 * psymtab.h (map_partial_symbol_filenames): Update prototype.
326 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
327 parameter need_fullname.
328
256f06f3
DE
329 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
330 * source.c (symtab_to_fullname): Ditto.
331
50f182aa
DE
332 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
333 * gdb-demangle.h: ... here. New file.
334 * demangle.c: #include "gdb-demangle.h".
335 (_initialize_demangler): Use initialize_file_ftype for prototype.
336 Move "set demangle" and "set asm-demangle" parameters here from utils.c
337 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
338 from utils.c
339 * utils.c: Update. #include "gdb-demangle.h".
340 * symtab.h (asm_demangle): Delete.
341 (demangle): Move declaration next to use.
342 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
343 * dwarf2read.c: #include "gdb-demangle.h".
344 * gnu-v2-abi.c: Ditto.
345 * jv-typeprint.c: Ditto.
346 * mdebugread.c: Ditto.
347 * p-typeprint.c: Ditto.
348 * stabsread.c: Ditto.
349 * printcmd.c: Ditto.
350 (asm_demangle): Delete declaration.
351 * tui/tui-stack.c: #include "gdb-demangle.h".
352
f6b47be4
DE
353 * python/py-type.c (typy_fields_items): Call check_typedef.
354
22355c90
JB
3552011-11-10 Joel Brobecker <brobecker@adacore.com>
356
357 * findvar.c (read_frame_register_value): Read the correct bytes
358 from registers on big-endian architectures.
359
bd119cf1 3602011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
361
362 * procfs.c (load_syscalls): Make a cleanup.
363 (open_procinfo_files): fd==0 is ok.
364
0a86f364
JB
3652011-11-10 Joel Brobecker <brobecker@adacore.com>
366
367 * procfs.c (iterate_over_mappings): Call do_cleanups before
368 returning.
369
9bc118a5
DE
3702011-11-09 Doug Evans <dje@google.com>
371
372 * gdbtypes.c (check_typedef): Document that this function can
373 throw an exception.
374
a7860e76
TT
3752011-11-09 Tom Tromey <tromey@redhat.com>
376
377 PR c++/13342:
378 * valops.c (value_full_object): Return early if real type is
379 smaller than the enclosing type.
380
60965737
YQ
3812011-11-08 Yao Qi <yao@codesourcery.com>
382
383 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
384
72a2e3dc
MI
3852011-11-08 Meador Inge <meadori@codesourcery.com>
386
387 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
388 register when the frame can't be determined.
389 * arm-tdep.c (arm_analyze_prologue): Ditto.
390
ce3b0ff7
SS
3912011-11-07 Stan Shebs <stan@codesourcery.com>
392
393 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
394
2b914b52
JB
3952011-11-07 Joel Brobecker <brobecker@adacore.com>
396
397 * infrun.c (handle_inferior_event): Minor reformatting.
398
6f809020
DE
3992011-11-05 Doug Evans <dje@google.com>
400
401 * source.c (forget_cached_source_info_for_objfile): Move call to
402 objfile->sf->qf->forget_cached_source_info outside of
403 ALL_OBJFILE_SYMTABS loop.
404 (forget_cached_source_info): Delete unused variable `s'.
405
75d12218
JK
4062011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
407
408 * i386-nat.c (dr_ref_count): Remove unused variable.
409
e565b837
DE
4102011-11-05 Doug Evans <dje@google.com>
411
412 * main.c (captured_main): Set lim_at_start before calling
413 make_command_stats_cleanup.
414
0a1c4d10
DE
4152011-11-04 Doug Evans <dje@google.com>
416
417 * utils.c: #include "timeval-utils.h".
418 (cmd_stats): Rename start_time to start_cpu_time.
419 New member start_wall_time.
420 (report_command_stats): Report wall time.
421 (make_command_stats_cleanup): Record start wall time.
422
a1d705ee
TT
4232011-11-04 Tom Tromey <tromey@redhat.com>
424
425 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
426
81de56be
RO
4272011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
428
429 * coff-pe-read.c: Include defs.h before bfd.h.
430
3ab1ec27
PM
4312011-11-04 Phil Muldoon <pmuldoon@redhat.com>
432
433 PR Python/13345
434
435 * python/python.c (python_run_simple_file): Expand tilde in path.
436
cd829959
PM
4372011-11-04 Phil Muldoon <pmuldoon@redhat.com>
438
439 PR Python/13363
440
441 * python/py-type.c (typy_lookup_type): Do not return a type in
442 an exception handler.
443
080ad648
JK
4442011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
445 Eli Zaretskii <eliz@gnu.org>
446
447 * linux-nat.c (_initialize_linux_nat): Improve help
448 for `info proc stat', `info proc status', `info proc cwd',
449 `info proc cmdline' and `info proc exe'.
450
3065dfb6
SS
4512011-11-02 Stan Shebs <stan@codesourcery.com>
452
453 String collection for tracepoints.
454 * NEWS: Mention string collection.
455 * common/ax.def (tracenz): New bytecode.
456 * ax-gdb.h (trace_string_kludge): Declare.
457 * ax-gdb.c: Include valprint.h and c-lang.h.
458 (trace_string_kludge): New global.
459 (gen_traced_pop): Add string case.
460 (agent_command): Add string case.
461 * tracepoint.h (decode_agent_options): Declare.
462 * tracepoint.c: Include cli-utils.h.
463 (decode_agent_options): New function.
464 (validate_actionline): Call it.
465 (encode_actions_1): Ditto.
466 * target.h (struct target_ops): New method to_supports_string_tracing.
467 (target_supports_string_tracing): New macro.
468 * target.c (update_current_target): Add to_supports_string_tracing.
469 * remote.c (struct remote_state): New field string_tracing.
470 (remote_string_tracing_feature): New function.
471 (remote_protocol_features): New feature tracenz.
472 (remote_supports_string_tracing): New function.
473 (init_remote_ops): Set to_supports_string_tracing.
474
f179e162
JK
4752011-11-02 Pedro Alves <pedro@codesourcery.com>
476 Jan Kratochvil <jan.kratochvil@redhat.com>
477
478 * linux-nat.c: Include cli/cli-utils.h.
479 (enum info_proc_what): New.
480 (linux_nat_info_proc_cmd): Rename to ...
481 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
482 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
483 status_f and stat_f from WHAT. Throw error on extra parameters.
484 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
485 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
486 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
487 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
488 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
489 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
490 `info proc cmdline', `info proc exe' and `info proc all' as real
491 subcommands of `info proc'.
492
7b35ec7f 4932011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
494
495 * Makefile.in: (SFILES): Add skip.c.
496 (HFILES_NO_SRCDIR): Add skip.h.
497 (COMMON_OBS): Add skip.o.
498 * skip.h, skip.c: New.
499 * breakpoint.h (set_default_breakpoint): Remove.
500 (get_sal_arch): Declare.
501 * breakpoint.c: Remove default_breakpoint_valid,
502 default_breakpoint_address, default_breakpoint_symtab,
503 default_breakpoint_line, default_breakpoint_pspace variables.
504 (get_sal_arch): Make public.
505 (set_default_breakpoint): Remove.
506 (parse_breakpoint_sals, create_breakpoint, clear_command,
507 decode_line_spec_1): Remove uses of default_breakpoint variables;
508 replaced with function calls into stack.c.
509 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
510 * cli/cli-cmds.c: Add skiplist.
511 (init_cmd_lists): Initialize skiplist.
512 (init_cli_cmds): Fix comment (classes of commands appear in
513 alphabetical order).
514 * infrun.c (handle_inferior_event): Add check that we don't step into
515 a function whose pc is marked for skip.
516 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
517 last_displayed_addr, last_displayed_symtab, last_displayed_line
518 variables.
519 (set_last_displayed_sal): New static function.
520 (print_frame_info): Switch call to set_default_breakpoint to call to
521 set_last_displayed_sal.
522 (clear_last_displayed_sal, last_displayed_sal_is_valid,
523 get_last_displayed_pspace, get_last_displayed_addr,
524 get_last_displayed_symtab, get_last_displayed_line,
525 get_last_displayed_sal): New public functions.
526 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
527 get_last_displayed_pspace, get_last_displayed_addr,
528 get_last_displayed_symtab, get_last_displayed_line,
529 get_last_displayed_sal): Declare.
530
b60e1588
JL
5312011-11-01 Justin Lebar <justin.lebar@gmail.com>
532
533 * MAINTAINERS (Write After Approval): Add myself to the list.
534
d31647d2
YQ
5352011-10-29 Yao Qi <yao@codesourcery.com>
536
537 * infcmd.c (disconnect_command): Call disconnect_tracing.
538
b1d96efd
JK
5392011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
540
541 Code cleanup.
542 * symtab.c (skip_prologue_sal): Code reformatting.
543
4dfb2365
JK
5442011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
545
546 PR symtab/13208
547 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
548 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
549 SAI.
550
0e5bf2a8
PA
5512011-10-28 Pedro Alves <pedro@codesourcery.com>
552
553 * linux-nat.c (linux_nat_filter_event): Remove `options'
554 parameter, and dead code that used it. If we're handling a
555 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
556 in our lwp list, re-add it.
557 (check_zombie_leaders): New.
558 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
559 wait for children with WNOHANG, and always wait for all children.
560 Don't check for no resumed children upfront. Simplify wait loop.
561 Check for zombie thread group leaders after handling all wait
562 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
563 unwaited-for children left.
564 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
565 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
566 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
567 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
568
821296b7
SA
5692011-10-28 Sterling Augustine <saugustine@google.com>
570
571 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
572 * symtab.c (free_completion_list): New function.
573 (do_free_completion_list): Likewise.
574 (default_make_symbol_completion_list_break_on): New variable
575 back_to. Call make_cleanup and discard_cleanups.
576 (make_source_files_completion_list): Likewise.
577
03c3051a
PK
5782011-10-28 Paul Koning <paul_koning@dell.com>
579
580 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
581 * NEWS: Mention deep_items.
582
8e7ebaf5
PA
5832011-10-28 Alen Skondro <askondro@gmail.com>
584
8de33dc2 585 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
586 defined.
587
e0c6ef61
MI
5882011-10-27 Meador Inge <meadori@codesourcery.com>
589
590 * MAINTAINERS (Write After Approval): Add myself to the list.
591
b56d6f31
JB
5922011-10-27 Joel Brobecker <brobecker@adacore.com>
593
594 * value.h (read_frame_register_value): Add declaration.
595 * findvar.c (read_frame_register_value): New function.
596 (value_from_register): Use read_frame_register_value
597 instead of get_frame_register_value + value_contents_copy
598 to get value contents.
599
d234ef5c
DE
6002011-10-27 Doug Evans <dje@google.com>
601
602 * cli/cli-cmds.c (source_script_with_search): Pass full path to
603 source_script_from_stream if it may have been found on the search path.
604 * python/py-auto-load.c (source_section_scripts): Pass full path to
605 source_python_script_for_objfile.
606 * python/python.c (source_python_script): Delete stream parameter.
607 All callers updated.
608 (source_python_script_for_objfile): Ditto.
609 * python/python-internal.h (source_python_script_for_objfile): Update.
610 * python/python.h (source_python_script): Update.
611
d849d44f
TT
6122011-10-27 Tom Tromey <tromey@redhat.com>
613
614 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
615 (ada_sals_for_line): Remove declarations.
616
2231f1fb
KP
6172011-10-27 Kevin Pouget <kevin.pouget@st.com>
618
619 Move unwind reasons to an external .def file
620 * frame.c (frame_stop_reason_string): Rewrite using
621 unwind_stop_reasons.def.
622 * frame.h (enum unwind_stop_reason): Likewise.
623 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
624 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
625 constants for bound-checking.
626 * unwind_stop_reasons.def: New file.
627 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
628 instead of a distinct value.
629
f77b9a5d
PM
6302011-10-27 Phil Muldoon <pmuldoon@redhat.com>
631
632 PR python/13331
633
634 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
635 (convert_values_to_python): Return on Python tuple allocation
636 failure. Return NULL on value conversion error.
637
76dce0be
PM
6382011-10-27 Phil Muldoon <pmuldoon@redhat.com>
639
640 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
641 (bppy_set_task): Ditto.
642 (bppy_delete_breakpoint): Ditto.
643 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
644 (gdbpy_lookup_global_symbol): Ditto.
645 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
646 * python/py-frame.c (frapy_is_valid): Ditto.
647 (frame_info_to_frame_object): Ditto.
648 * python/py-type.c (typy_lookup_type): Ditto.
649 (typy_getitem): Ditto.
650 (typy_has_key): Ditto.
651 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
652
f17b6955
JB
6532011-10-26 Joel Brobecker <brobecker@adacore.com>
654
655 * gdbarch.h: Regenerate.
656
86ba1042
JB
6572011-10-26 Meador Inge <meadori@codesourcery.com>
658
659 * gdbarch.sh (function_list): Use 'pstring' when printing
660 'gcore_bfd_target'.
661 * gdbarch.c: Regenerate.
662
c34fd852
UW
6632011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
664
665 * regcache.c (registers_changed_ptid): Invalidate thread architecture
666 and frame caches if PTID refers to all threads of a process.
667
931bb47f
UW
6682011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
669
670 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
671 to create_breakpoint.
672
88aed45e
UW
6732011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
674
675 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
676 (ppc_sysv_abi_push_dummy_call): Use it.
677 (do_ppc_sysv_return_value): Likewise.
678 (ppc64_sysv_abi_push_dummy_call): Likewise.
679 (ppc64_sysv_abi_return_value): Likewise.
680
3eaf3fa2
PK
6812011-10-26 Paul Koning <paul_koning@dell.com>
682
683 * python/lib/gdb/types.py (deepitems): New function.
684
913460fc
PK
6852011-10-25 Paul Koning <paul_koning@dell.com>
686
687 PR python/13327
688
689 * python/py-value.c (value_to_value_object): Remove fetching of
690 the value if it was lazy.
691 (valpy_get_is_lazy): New function.
692 (valpy_fetch_lazy): New function.
693
2b5b9d09
JB
6942011-10-24 Joel Brobecker <brobecker@adacore.com>
695
696 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
697 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
698
e21ffe51
PA
6992011-10-24 Pedro Alves <pedro@codesourcery.com>
700
701 * linux-nat.c (linux_handle_extended_wait): When handling a clone
702 event, in non-stop, if not stopping, make sure the new lwp has
703 last_resume_kind set to resume_continue. Assert that when we're
704 resuming the new lwp, its last_resume_kind is resume_continue.
705
7aee8dc2
PA
7062011-10-24 Pedro Alves <pedro@codesourcery.com>
707
708 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
709 already set when marking the event thread as not executing in
710 non-stop mode.
711
4b4e080e
PA
7122011-10-24 Pedro Alves <pedro@codesourcery.com>
713
714 * infrun.c (handle_inferior_event): Add debug output for
715 TARGET_WAITKIND_NO_HISTORY.
716
baacfb07
PM
7172011-10-24 Phil Muldoon <pmuldoon@redhat.com>
718
719 * NEWS: Move set/show extended-prompt to "New Options". Expand
720 description. Fix typos.
721
8432bc41
PM
7222011-10-24 Phil Muldoon <pmuldoon@redhat.com>
723
724 PR python/13310
725
726 * python/py-param.c (call_doc_function): Correctly deference on
727 function exit.
728
6cda5a20
JB
7292011-10-21 Joel Brobecker <brobecker@adacore.com>
730
731 * ada-tasks.c (print_ada_task_info): Fix computation of
732 number of tasks displayed in command output.
733
13294f7d
JK
7342011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
735 Ulrich Weigand <uweigand@de.ibm.com>
736
737 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
738 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
739 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
740 gdbarch_pc_regnum and frame_unwind_register_unsigned by
741 gdbarch_unwind_pc.
742
460c1c54
CC
7432011-10-20 Cary Coutant <ccoutant@google.com>
744
745 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
746 section to...
747 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
748 flag. Adjust all callers.
749 (process_psymtab_comp_unit): Remove adjustment for type section.
750
a10964d1
AR
7512011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
752
753 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
754 arguments by adding OBJFILE. Instead of getting objfile from
755 symbol's symtab, use new argument OBJFILE.
756 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
757 arguments by adding OBJFILE.
758 * gdb/dwarf2read.c (new_symbol_full): Change call to
759 cp_scan_for_anonymous_namespaces to match new signature.
760 * gdb/stabsread.c (define_symbol): Change call to
761 cp_scan_for_anonymous_namespaces to match new signature.
762
27ca1a5b
PM
7632011-10-20 Phil Muldoon <pmuldoon@redhat.com>
764
765 PR python/13308
766 PR python/13309
767
768 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
769 leak.
770 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
771 leak. Delete unused variables.
772
9df2fbc4
PM
7732011-10-20 Phil Muldoon <pmuldoon@redhat.com>
774
775 PR python/12656
776
777 * python/py-frame.c (frapy_read_var): Use const struct *block.
778 * python/py-type.c (typy_lookup_typename): Likewise.
779 (typy_lookup_type): Likewise.
780 (typy_legacy_template_argument): Likewise.
781 (typy_template_argument): Likewise.
782 (gdbpy_lookup_type): Likewise.
783 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
784 * python/py-block.c (blpy_block_object): Likewise.
785 (blpy_iter): Likewise.
786 (blpy_get_start): Likewise.
787 (blpy_get_end): Likewise.
788 (blpy_get_function): Likewise.
789 (blpy_get_superblock): Likewise.
790 (set_block): Likewise.
791 (block_to_block_object): Likewise.
792 (block_object_to_block): Likewise.
793 (blpy_is_valid): Likewise.
794 (blpy_get_global_block): New function.
795 (blpy_get_static_block): New function.
796 (blpy_is_global): New function.
797 (blpy_is_static): New function.
798 * blockframe.c (block_innermost_frame): Likewise.
799 * valops.c (value_of_variable): Likewise.
800 * frame.h: Update prototypes.
801 * python/python-internal.h: Likewise.
802 * value.h: Likewise.
803
4743b735
CC
8042011-10-19 Cary Coutant <ccoutant@google.com>
805
806 * dwarf2read.c (create_debug_types_hash_table): Fix size of
807 type_offset field.
808
6caca83c
CC
8092011-10-19 Cary Coutant <ccoutant@google.com>
810
811 * dwarf2read.c (peek_abbrev_code): New function.
812 (dw2_get_file_names): Check for dummy compilation units.
813 (create_debug_types_hash_table): Likewise.
814 (process_psymtab_comp_unit): Likewise.
815 (load_partial_comp_unit): Likewise.
816 (load_full_comp_unit): Likewise.
817
43136979
AR
8182011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
819
820 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
821 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
822 pt_phdr if PT_PHDR was found.
823
0a07729b
TT
8242011-10-17 Joost van der Sluis <joost@cnoc.nl>
825
826 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
827 type or "<unnamed type"> when there is no name assigned.
828 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
829 avoid a sigint when no name is assigned.
830
21ae7a4d
JK
8312011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
832
833 Revert:
834 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
835 * dwarf2expr.c (ctx_no_read_reg): New function.
836 * dwarf2expr.h (ctx_no_read_reg): New declaration.
837 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
838 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
839 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
840
32d1c362
DE
8412011-10-16 Doug Evans <dje@google.com>
842
843 * NEWS: Document python gdb.printing.register_pretty_printer's new
844 `replace' parameter.
845
da096638
KS
8462011-10-14 Keith Seitz <keiths@redhat.com>
847
848 PR c++/13225
849 * eval.c (evaluate_subexp_standard): Do not construct
850 an array of types; pass the value array directly to
851 find_overload_match.
852 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
853 (rank_function): Take an array of values instead of types.
854 (rank_one_type): Add struct value * parameter.
855 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
856 (rank_function): For each argument, pass the argument's
857 value to rank_one_type.
858 (rank_one_type): Add VALUE parameter.
859 If the parameter type is a pointer and the argument type
860 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
861 VALUE is zero.
862 Update all calls to rank_one_type, passing NULL for new
863 VALUE parameter.
864 * valarith.c (value_user_defined_cpp_op): Do not construct
865 an array of types; pass the value array directly to
866 find_overload_match.
867 * valops.c (find_overload_method_list): Take an array of
868 values instead of types.
869 Save the type of OBJP for later use.
870 Update calls to find_oload_champ, and find_oload_champ_namespace.
871 (find_oload_champ_namespace): Take an array of values instead
872 of types.
873 (find_oload_champ_namespace_loop): Likewise.
874 (find_oload_champ): Likewise.
875 (classify_oload_match): Inspect all arguments
876 until INCOMPATIBLE is found. Return the worst badness found
877 otherwise.
878 (compare_parameters): Update call to rank_one_type.
879 * value.h (find_overload_match): Take an array of values instead
880 of types.
881
3957565a
JK
8822011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
883
884 Drop lazy lm_info reading.
885 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
886 l_addr_inferior, l_ld, l_next, l_prev and l_name.
887 (lm_info_read): New function.
888 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
889 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
890 lm_dynamic_from_link_map.
891 (lm_next, lm_prev, lm_name): Remove.
892 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
893 initialization incl. read_memory. No longer use lm_name.
894 (svr4_free_so): Drop lm_info->lm freeing.
895 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
896 explicit lm_addr and lm initialization.
897 (svr4_read_so_list): Use lm_info_read, drop the initailization of
898 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
899 lm_name.
900
cb08cc53
JK
9012011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
902 Paul Pluzhnikov <ppluzhnikov@google.com>
903
904 * defs.h (struct so_list): New forward declaration.
905 (make_cleanup_free_so): New declaration.
906 * solib-svr4.c (ignore_first_link_map_entry): Remove.
907 (svr4_free_so): Move the function here from downwards. Handle NULL
908 so->lm_info.
909 (svr4_free_library_list): New.
910 (svr4_read_so_list): New, moved here code from svr4_current_sos.
911 Use more cleanups. Use new parameter ignore_first instead of
912 ignore_first_link_map_entry.
913 (svr4_current_sos): New variable ignore_first, initialize it. New
914 variable back_to, use it for svr4_free_library_list protection.
915 (svr4_free_so): Remove - move upwards.
916 * utils.c: Include solist.h.
917 (do_free_so, make_cleanup_free_so): New functions.
918
22c05d8a
JK
9192011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
920
921 Fix internal error regression.
922 * value.c (value_primitive_field): Handle value_optimized_out. Move
923 packed bitfields comment.
924
d930d06e
TT
9252011-10-13 Tom Tromey <tromey@redhat.com>
926
927 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
928 always released.
929
2ff6b080
TT
9302011-10-13 Tom Tromey <tromey@redhat.com>
931
932 * python/py-type.c (typy_has_key): Make 'field' const.
933
d6c5869f
LM
9342011-10-13 Luis Machado <lgustavo@codesourcery.com>
935
936 * remote.c (remote_save_trace_data): Invert comparison.
937
a70633a2
LM
9382011-10-13 Luis Machado <lgustavo@codesourcery.com>
939
940 * tracepoint.c (trace_save_command): Use filename instead of
941 args when printing.
942
e103e986
JK
9432011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
944
945 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
946 if .size is 0.
947
db24da6d
YQ
9482011-10-13 Yao Qi <yao@codesourcery.com>
949
950 PR gdb/12703
951 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
952 whether insn is a 32-bit Thumb-2 instruction.
953 (thumb_in_function_epilogue_p): Likewise.
954 (thumb_get_next_pc_raw): Likewise.
955 (arm_breakpoint_from_pc): Likewise.
956
1d6edc3c
JK
9572011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
958
959 Fix empty DWARF expressions DATA vs. SIZE conditionals.
960 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
961 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
962 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
963 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
964 zero DATA.
965 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
966 validity.
967 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
968 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
969 clear DATA on zero SIZE.
970
adabb602
DE
9712011-10-12 Doug Evans <dje@google.com>
972
973 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
974 header->first_die_offset here. All callers updated.
975
5048e516
JK
9762011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
977
978 Fix compatibility with texinfo versions older than 4.12.
979 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
980 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
981 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
982 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
983 * configure: Regenerate.
984 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
985 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
986 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
987
0574c78f
GB
9882011-10-12 Gary Benson <gbenson@redhat.com>
989
990 * breakpoint.h (pc_at_non_inline_function): Declare.
991 * breakpoint.c (is_non_inline_function,
992 pc_at_non_inline_function): New functions.
993 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
994 if the stop is at a location where functions cannot be inlined.
995
12d9289a
PA
9962011-10-12 Pedro Alves <pedro@codesourcery.com>
997
998 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
999 the core wanted them stopped, or if they now have a pending event
1000 to report.
ecf8e7f5
PA
1001 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1002 down to stop_and_resume_callback.
1003 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1004 having new pending events after calling linux_nat_filter_event.
12d9289a 1005
96408a79
SA
10062011-10-11 Sterling Augustine <saugustine@google.com>
1007
1008 * dwarf2read.c: Undo inadvertent changes in previous commit.
1009
9c6c53f7
SA
10102011-10-11 Sterling Augustine <saugustine@google.com>
1011
1012 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1013 logic.
1014
0e8aefe7
UW
10152011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1016
1017 * symfile.c (separate_debug_file_exists): Fix condition.
1018
349d1385
DM
10192011-10-11 David S. Miller <davem@davemloft.net>
1020
1021 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1022 static.
1023 * regcache.h (regcache_restore): Remove declaration.
1024
205c306f
DM
1025 * gdbarch.sh: New field 'long_long_align_bit'.
1026 * gdbarch.c, gdbarch.h: Regenerate.
1027 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1028 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1029
941b2081
JK
10302011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1031
1032 Revert this part of:
1033 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 Support @entry in input expressions.
1035 * c-exp.y (ENTRY, unknown_cpp_name): New.
1036 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1037 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1038 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1039 (name_not_typename: ENTRY): New.
1040 (yylex): Recognize ENTRY.
1041
1042 Reimplement @entry in input expressions.
1043 * c-exp.y (ENTRY): New.
1044 (variable: name_not_typename ENTRY): New.
1045 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1046
3c4d7e12
PA
10472011-10-11 Pedro Alves <pedro@codesourcery.com>
1048
1049 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1050 parent and child's pids as soon as we detect a clone event.
1051 Adjust another debug message.
1052
ea23808b
PA
10532011-10-11 Pedro Alves <pedro@codesourcery.com>
1054
1055 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1056 not zombie instead of reading the whole file.
1057
904578ed
JK
10582011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1059
1060 Fix separate debuginfo warning with "remote:" access.
1061 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1062 * symfile.c (get_file_crc): New function with the code moved from ...
1063 (separate_debug_file_exists): ... this function, specifically variables
1064 buffer and count. New variable verified_as_different, set it. Remove
1065 file_crc initialization. Verify also if both files are not the same
1066 manually, if needed.
1067
51370a33
YQ
10682011-10-11 Yao Qi <yao@codesourcery.com>
1069
1070 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1071 to get address.
1072
0838fb57
DE
10732011-10-10 Doug Evans <dje@google.com>
1074
1075 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1076 libthread_db when we load libpthread or the main symbol file.
1077 (thread_db_inferior_created): New function.
1078 (_initialize_thread_db): Attach inferior_created observer.
1079 * linux-nat.c (linux_child_post_attach): Remove call to
1080 check_for_thread_db.
1081 (linux_child_post_startup_inferior): Ditto.
1082 * objfiles.h (OBJF_MAINLINE): Define.
1083 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1084 allocate_objfile when appropriate.
1085
623bd5b7
UW
10862011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1087
1088 PR gdb/13218
1089 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1090 Remove unused variables.
1091 (get_linux_version): Remove function.
1092 (_initialize_arm_linux_nat): Do not call it.
1093
79395f92
PA
10942011-10-10 Pedro Alves <pedro@codesourcery.com>
1095
1096 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1097 new clone lwp if the core asked it to stop. Don't pass on
1098 unexpected signals to the new clone; leave them pending instead.
1099
eff3df78
PA
11002011-10-10 Pedro Alves <pedro@codesourcery.com>
1101
1102 * linux-nat.c (resume_lwp): Remove redundant debug output.
1103
4b60df3d
PA
11042011-10-10 Pedro Alves <pedro@codesourcery.com>
1105
1106 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1107 last_resume_kind before clearing it, and use the copy instead to
1108 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1109 resume_clear_callback in the non-stop path too.
1110
6501578c
YQ
11112011-10-09 Yao Qi <yao@codesourcery.com>
1112
1113 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1114 Honor OPTIONS and VAL's type.
1115 (common_val_print, value_print): Update to pass one more parameter.
1116
5a56e9c5
DE
11172011-10-09 Doug Evans <dje@google.com>
1118
1119 Add new "alias" command.
1120 * NEWS: Mention new command.
1121 * command.h (valid_user_defined_cmd_name_p): Declare.
1122 * defs.h (make_cleanup_dyn_string_delete): Declare.
1123 * utils.c: #include "dyn-string.h".
1124 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1125 * cli/cli-cmds.c: #include "dyn-string.h".
1126 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1127 (init_cli_cmds): Add new command.
1128 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1129
509f0fd9
JK
11302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1131
1132 Fix compatibility with older GCCs.
1133 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1134 * stack.c (read_frame_arg): Initialize val_deref.
1135
2bda9cc5
JK
11362011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 Entry values NEWS entries, DWARF disassembly support.
1139 * NEWS: New entry values entry.
1140 (set print entry-values, show print entry-values)
1141 (set debug entry-values, show debug entry-values): New entries.
1142 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1143 indent. Remove variable start. Move header printing out. Respect
1144 INDENT. Support DW_OP_GNU_entry_value.
1145 (locexpr_describe_location_1): Move the header printing here, extend
1146 the disassemble_dwarf_expression passed parameters.
1147
a471c594
JK
11482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1149
1150 Display @entry parameter values even for references.
1151 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1152 coerce_ref_if_computed.
1153 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1154 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1155 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1156 existing push_dwarf_reg_entry_value call. Add new detection calling
1157 dwarf_block_to_dwarf_reg_deref. Update the error message.
1158 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1159 * dwarf2expr.h
1160 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1161 parameter deref_size, describe it in the comment.
1162 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1163 (dwarf_block_to_dwarf_reg_deref): New declaration.
1164 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1165 deref_size, describe it in the function comment. New variables
1166 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1167 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1168 describe it in the function comment. Fetch the alternative block
1169 accoring to DEREF_SIZE.
1170 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1171 (entry_data_value_free_closure, entry_data_value_funcs): New.
1172 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1173 outer_val, target_val, val and addr. Try to fetch and create also
1174 referenced value content.
1175 (pieced_value_funcs): NULL value for coerce_ref.
1176 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1177 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1178 coerce_ref_if_computed.
1179 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1180 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1181 * stack.c (read_frame_arg): Compare also dereferenced values.
1182 * value.c (value_computed_funcs): Make the parameter v const, use
1183 value_lval_const for it.
1184 (value_lval_const, coerce_ref_if_computed): New function.
1185 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1186 * value.h (struct lval_funcs): New field coerce_ref.
1187 (value_computed_funcs): Make the parameter v const.
1188 (value_lval_const, coerce_ref_if_computed): New declarations.
1189
36b11add
JK
11902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1191
1192 Support @entry in input expressions.
1193 * c-exp.y (ENTRY, unknown_cpp_name): New.
1194 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1195 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1196 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1197 (name_not_typename: ENTRY): New.
1198 (yylex): Recognize ENTRY.
1199 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1200 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1201 Likewise.
1202 * parse.c (operator_length_standard): Likewise.
1203 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1204
3343315b
JK
12052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1206
1207 Display referenced values in backtraces.
1208 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1209 * stack.c (print_frame_arg): Likewise.
1210
ac71a68c
JK
12112011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1212
1213 Make some lval_funcs methods to default on NULL.
1214 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1215 NULL.
1216 (value_assign): Check if lval_computed write method is NULL.
1217 * value.h (struct lval_funcs): Comment NULL values for read and write
1218 methods.
1219
e18b2753
JK
12202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1221
1222 Display @entry parameter values (without references).
1223 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1224 New functions.
1225 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1226 New declarations.
1227 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1228 entry record.
1229 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1230 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1231 functions.
1232 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1233 (loclist_read_variable_at_entry): New function.
1234 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1235 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1236 DW_AT_location, call dwarf_block_to_sp_offset for it.
1237 * frame.h (print_entry_values_no, print_entry_values_only)
1238 (print_entry_values_preferred, print_entry_values_if_needed)
1239 (print_entry_values_both, print_entry_values_compact)
1240 (print_entry_values_default, print_entry_values): New declarations.
1241 (struct frame_arg): New field entry_kind.
1242 (read_frame_arg): New parameter entryargp.
1243 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1244 arg->entry_kind. Optionally print the `@entry' suffix.
1245 (list_args_or_locals): New variable entryarg, initialize it.
1246 Initialize also entry_kind of arg and entryarg. Conditionalize
1247 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1248 xfree for entryarg.error.
1249 * stack.c (print_entry_values_no, print_entry_values_only)
1250 (print_entry_values_preferred, print_entry_values_if_needed)
1251 (print_entry_values_both, print_entry_values_compact)
1252 (print_entry_values_default, print_entry_values_choices)
1253 (print_entry_values): New variables.
1254 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1255 print the `@entry' suffix, possibly in combination for
1256 print_entry_values_compact.
1257 (read_frame_arg): New parameter entryargp, new variables entryval,
1258 entryval_error and val_equal. Read in also entryargp, respect
1259 print_entry_values, compare the values using val_equal, fill in also
1260 argp->entry_kind (together with entryargp->entry_kind).
1261 (print_frame_args): New variable entryarg, initialize it.
1262 Conditionalize print_frame_arg for arg, add print_frame_arg for
1263 entryarg. Call xfree for entryarg.error.
1264 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1265 * symtab.h (struct symbol_computed_ops): New field
1266 read_variable_at_entry.
1267
93d86cef
JK
12682011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1269
1270 Code reshuffle.
1271 * frame.h (struct frame_arg): New definition.
1272 (read_frame_arg): New declaration.
1273 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1274 (list_args_or_locals): ... the code here. New variable arg, call
1275 read_frame_arg and list_arg_or_local with it. Unify the
1276 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1277 arg.error.
1278 * stack.c (print_frame_arg): New functiom from the code of
1279 print_frame_args.
1280 (read_frame_arg): New function.
1281 (print_frame_args): Remove variable val. New variable arg, call
1282 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1283
2d6c5dc2
JK
12842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1285
1286 Protect entry values against self tail calls.
1287 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1288 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1289
111c6489
JK
12902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1291
1292 Recognize virtual tail call frames.
1293 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1294 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1295 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1296 * dwarf2-frame-tailcall.c: New file.
1297 * dwarf2-frame-tailcall.h: New file.
1298 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1299 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1300 REGS.PREV only after CIE execution.
1301 (struct dwarf2_frame_cache): New field tailcall_cache.
1302 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1303 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1304 parts, try to find entry_cfa_sp_offset. Call
1305 dwarf2_tailcall_sniffer_first.
1306 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1307 when appropriate.
1308 (dwarf2_frame_dealloc_cache): New function.
1309 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1310 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1311 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1312 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1313 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1314 * dwarf2loc.c (func_addr_to_tail_call_list)
1315 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1316 (call_site_find_chain_1, call_site_find_chain): New.
1317 * dwarf2loc.h (struct call_site_chain): New.
1318 (call_site_find_chain): New declaration.
1319 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1320 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1321 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1322 * stack.c (frame_info): Support also TAILCALL_FRAME.
1323
bb984ff1
JK
13242011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1325
1326 Tail call sites reader implementation.
1327 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1328 fill in TYPE_TAIL_CALL_LIST.
1329 * gdbtypes.h (struct func_type): New field tail_call_list.
1330 (struct call_site): New field tail_call_next.
1331 (TYPE_TAIL_CALL_LIST): New definition.
1332
8e3b41a9
JK
13332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1334
1335 Implement basic support for DW_TAG_GNU_call_site.
1336 * block.c: Include gdbtypes.h and exceptions.h.
1337 (call_site_for_pc): New function.
1338 * block.h (call_site_for_pc): New declaration.
1339 * defs.h: Include hashtab.h.
1340 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1341 declarations.
1342 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1343 ctx_no_push_dwarf_reg_entry_value.
1344 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1345 (dwarf_block_to_dwarf_reg): New function.
1346 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1347 (ctx_no_push_dwarf_reg_entry_value): New function.
1348 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1349 push_dwarf_reg_entry_value.
1350 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1351 declarations.
1352 * dwarf2loc.c: Include gdbcmd.h.
1353 (dwarf_expr_ctx_funcs): New forward declaration.
1354 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1355 (dwarf_expr_reg_to_entry_parameter)
1356 (dwarf_expr_push_dwarf_reg_entry_value): New.
1357 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1358 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1359 (needs_dwarf_reg_entry_value): New function.
1360 (needs_frame_ctx_funcs): Install it.
1361 (_initialize_dwarf2loc): New function.
1362 * dwarf2loc.h (entry_values_debug): New declaration.
1363 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1364 (read_call_site_scope): New forward declaration.
1365 (process_full_comp_unit): Copy call_site_htab.
1366 (process_die): Support DW_TAG_GNU_call_site.
1367 (read_call_site_scope): New function.
1368 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1369 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1370 (cleanup_htab): Delete.
1371 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1372 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1373 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1374 FIELD_LOC_KIND_DWARF_BLOCK.
1375 * gdbtypes.h (enum field_loc_kind): New entry
1376 FIELD_LOC_KIND_DWARF_BLOCK.
1377 (struct main_type): New loc entry dwarf_block.
1378 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1379 (TYPE_FIELD_DWARF_BLOCK): New.
1380 * python/py-type.c: Include dwarf2loc.h.
1381 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1382 internal_error call on unknown FIELD_LOC_KIND.
1383 * symtab.h (struct symtab): New field call_site_htab.
1384 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1385 (core_addr_hash, core_addr_eq): New functions.
1386
b6cdc2c1
JK
13872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1388
1389 Code reshuffle.
1390 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1391 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1392 calling_convention under func_stuff there.
1393 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1394 (init_type) <TYPE_CODE_FUNC>: Likewise.
1395 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1396 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1397 * gdbtypes.h (enum type_specific_kind): Change
1398 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1399 (struct main_type) <type_specific>: Change calling_convention to
1400 func_stuff. Move calling_convention to ...
1401 (struct func_type): ... this new struct.
1402 (INIT_FUNC_SPECIFIC): New #define.
1403 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1404
181cebd4
JK
14052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1406
1407 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1408 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1409 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1410 ctx->ref_addr_size. Handle its invalid value.
1411 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1412 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1413 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1414 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1415 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1416 (dwarf2_per_cu_ref_addr_size): New function.
1417
c471e790
JK
14182011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1419
1420 Code cleanup.
1421 * dwarf2read.c (per_cu_header_read_in): New function.
1422 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1423 variables cu_header_local and cu_headerp.
1424
741f5e3c
JK
14252011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1426
1427 Fix initial language detection with -readnow.
1428 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1429 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1430 searches only for global symbols.
1431
a73d2258
JK
14322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1433
1434 Fix printed anonymous struct name.
1435 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1436 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1437 (anonymous_struct_prefix): New function.
1438 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1439 (dwarf2_name): Strip for anonymous structs any prefixes.
1440
749fd4ea
DE
14412011-10-07 Doug Evans <dje@google.com>
1442
1fa57852
DE
1443 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1444 `replace'.
1445
690a4937
DE
1446 * python/lib/gdb/printing.py: Whitespace cleanup.
1447
749fd4ea
DE
1448 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1449 warning.
1450
4c38200f
PA
14512011-10-07 Pedro Alves <pedro@codesourcery.com>
1452
1453 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1454 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1455 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1456 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1457 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1458 (arm_linux_remove_watchpoint): Adjust.
1459 * i386-linux-nat.c (i386_linux_dr_set_control)
1460 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1461 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1462 (ia64_linux_remove_watchpoint): Adjust.
1463 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1464 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1465 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1466 (ppc_linux_insert_mask_watchpoint)
1467 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1468 (ppc_linux_remove_watchpoint): Adjust.
1469 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1470 Adjust.
1471
b7ff339d
CV
14722011-10-07 Corinna Vinschen <vinschen@redhat.com>
1473
1474 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1475 (clear_win32_environment): New function for Cygwin to clear out
1476 Win32 environment.
1477 (windows_create_inferior): Prepare new environment from in_env
1478 for Cygwin, too.
1479
f287c1f3
PM
14802011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1481
5631e596 1482 PR python/13264
f287c1f3
PM
1483 * python/py-value.c (valpy_call): Check that arguments are
1484 a tuple.
1485 (is_intlike): Remove call to CHECK_TYPEDEF.
1486 (valpy_nonzero): Catch GDB exceptions.
1487 (valpy_absolute): Ditto.
1488 (valpy_lazy_string): Ditto.
1489 (valpy_call): Ditto.
1490 (valpy_get_is_optimized_out): Ditto.
1491 (valpy_long): Ditto.
1492 (valpy_float): Ditto.
1493 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1494 (valpy_richcompare): Ditto.
1495
03583c20
UW
14962011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1497
1498 * inferior.h (disable_randomization): Declare.
1499 * infrun.c (disable_randomization): New global variable.
1500 (show_disable_randomization): New function.
1501 (set_disable_randomization): Likewise.
1502 (_initialize_infrun): Install set/show disable-randomization
1503 commands.
1504 * linux-nat.c (disable_randomization): Remove.
1505 (show_disable_randomization): Likewise.
1506 (set_disable_randomization): Likewise.
1507 (_initialize_linux_nat): No longer install set/show
1508 disable-randomization commands here.
1509 (linux_nat_supports_disable_randomization): New function.
1510 (linux_nat_add_target): Install it.
1511 * remote.c (PACKET_QDisableRandomization): New enum value.
1512 (remote_protocol_packets): Support QDisableRandomization.
1513 (_initialize_remote): Likewise.
1514 (remote_supports_disable_randomization): New function.
1515 (init_remote_ops): Install it.
1516 (extended_remote_supports_disable_randomization): New function.
1517 (init_extended_remote_ops): Install it.
1518 (extended_remote_disable_randomization): New function.
1519 (extended_remote_create_inferior_1): Call it.
1520 * target.h (struct target_ops): Add to_supports_disable_randomization.
1521 (target_supports_disable_randomization): Add prototype.
1522 * target.c (target_supports_disable_randomization): New function.
1523 (find_default_supports_disable_randomization): Likewise.
1524 (init_dummy_target): Install it.
1525
20c168b5
KP
15262011-10-07 Kevin Pouget <kevin.pouget@st.com>
1527
1528 Allow Python notification of new object-file loadings.
1529 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1530 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1531 Add build rule for this file.
1532 * python/py-event.h (emit_new_objfile_event): New prototype.
1533 (newobjfile): New Python event emitter.
1534 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1535 Python event registry.
1536 * python/py-inferior.c: Include objfiles.h
1537 (python_new_objfile): New function.
1538 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1539 observers.
1540 * python/py-newobjfileevent.c: New file.
1541 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1542 prototype.
1543 * python/python.c (_initialize_python): Add
1544 gdbpy_initialize_new_objfile_event call.
1545 * NEWS: Add item for new Python event "gdb.newobjfile"
1546
b1c8db38
TG
15472011-10-05 Tristan Gingold <gingold@adacore.com>
1548
1549 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1550 Extract the ravenscar task name from the symbol for the atcb.
1551
0dab82e9
PK
15522011-10-04 Paul Koning <paul_koning@dell.com>
1553
1554 * python/py-type.c (typy_make_iter): Add forward declaration.
1555 (typy_fields_items): Use the gdb.Type iterator.
1556
84ad80e6
PK
15572011-10-04 Paul Koning <paul_koning@dell.com>
1558
1559 * NEWS: Add entry for Python gdb.Type mapping methods.
1560
cb6be26b
KP
15612011-10-04 Kevin Pouget <kevin.pouget@st.com>
1562
1563 PR python/12691: Add the inferior to Python exited event
1564 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1565 to exited_event.
1566 * python/py-event.h (emit_exited_event): Likewise
1567 * python/-inferior.c (python_inferior_exit): Likewise
1568
6005b210
JB
15692011-10-03 Joel Brobecker <brobecker@adacore.com>
1570
1571 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1572 in output of -ada-task-info GDB/MI command.
1573
75082e8c
JB
15742011-10-03 Joel Brobecker <brobecker@adacore.com>
1575
1576 * ada-lang.h (struct inferior): Declare.
1577 (print_ada_task_info): Add declaration.
1578 * ada-tasks.c (print_ada_task_info): Make non-static.
1579 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1580 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1581 * mi/mi-main.c: #include "ada-lang.h".
1582 (mi_cmd_list_features): Add "ada-task-info" to the list
1583 of supported features.
1584 (mi_cmd_ada_task_info): New function.
1585
7ed7d719
JB
15862011-10-03 Joel Brobecker <brobecker@adacore.com>
1587
1588 * python/python.c (python_run_simple_file): New function.
1589 (source_python_script, source_python_script_for_objfile):
1590 Replace call to PyRun_SimpleFile by call to
1591 python_run_simple_file.
1592
3fcaed38
PK
15932011-10-03 Paul Koning <paul_koning@dell.com>
1594
1595 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1596 (value_to_value_object): Fetch value if it was lazy.
1597
8e5c319d
JK
15982011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1599
1600 Code cleanup.
1601 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1602 Rearrange the code for it.
1603
dd11a36c
JB
16042011-10-02 Joel Brobecker <brobecker@adacore.com>
1605
1606 * breakpoint.c (bkpt_print_recreate): Add call to
1607 print_recreate_thread.
1608
723b724b
MF
16092011-09-29 Mike Frysinger <vapier@gentoo.org>
1610
1611 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1612 PTRACE_GETFDPIC_INTERP): Define.
1613
412946b6
YQ
16142011-09-28 Yao Qi <yao@codesourcery.com>
1615
1616 * symfile.c (add_symbol_file_command): Update message on usage.
1617
a73bb892
PK
16182011-09-28 Paul Koning <paul_koning@dell.com>
1619
1620 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1621 (typy_length, typy_get, typy_has_key, typy_make_iter)
1622 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1623 (typy_iterator_iter, typy_iterator_iternext)
1624 (typy_iterator_dealloc): New functions to implement standard
1625 Python mapping methods on gdb.Type object.
1626 (gdb.TypeIterator): New Python type.
1627 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1628
fe10a582
DM
16292011-09-28 David S. Miller <davem@davemloft.net>
1630
1631 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1632 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1633 * sparc-tdep.c (sparc_complex_floating_p): New function.
1634 (sparc32_store_arguments): Handle complex floats.
1635 (sparc32_extract_return_value): Likewise.
1636 (sparc32_store_return_value): Likewise.
1637 (sparc32_stabs_argument_has_addr): Likewise.
1638 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1639 (sparc64_store_floating_fields): Handle complex floats.
1640 (sparc64_store_arguments): Likewise.
1641 (sparc64_store_return_value): Likewise.
1642
c93dbcba
EZ
16432011-09-28 Eli Zaretskii <eliz@gnu.org>
1644
1645 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1646 before the change on 2006-12-09.
1647 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1648 generates the environment block for CreateProcessA, modulo the
1649 Cygwin-specific parts that are not needed here.
1650
f00c55f8
TG
16512011-09-27 Tristan Gingold <gingold@adacore.com>
1652
1653 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1654 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1655 (darwin_solib_get_all_image_info_addr_at_init): New function.
1656 (darwin_solib_read_all_image_info_addr): Likewise.
1657 (darwin_solib_create_inferior_hook): Use the above two functions.
1658 * darwin-nat.c (darwin_execvp): Renames retval to res.
1659 (darwin_read_write_inferior): Update comment.
1660 (darwin_read_dyld_info): New function.
1661 (darwin_xfer_partial): Handle DYLD_INFO.
1662
6710bf39
SS
16632011-09-27 Stan Shebs <stan@codesourcery.com>
1664
1665 Add return address collection for tracepoints.
1666 * tracepoint.c (encode_actions_1): Add case for $_ret.
1667 (validate_actionline): Check for $_ret.
1668 (trace_dump_actions): Ditto.
1669 * ax-gdb.h (gen_trace_for_return_address): Declare.
1670 * ax-gdb.c: Include arch-utils.h.
1671 (gen_trace_for_return_address): New function.
1672 (agent_command): Add return address special case.
1673 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1674 (amd64_gen_return_address): New function.
1675 (amd64_init_abi): Call it.
1676 * i386-tdep.c: Include ax.h and ax-gdb.h.
1677 (i386_gen_return_address): New function.
1678 (i386_init_abi): Call it.
1679 * arch-utils.h (default_gen_return_address): Declare.
1680 * arch-utils.c (default_gen_return_address): New function.
1681 * gdbarch.sh (gen_return_address): New method.
1682 * gdbarch.h, gdbarch.c: Regenerate.
1683
e04e5beb
JM
16842011-09-23 Joseph Myers <joseph@codesourcery.com>
1685
1686 PR gdb/13079
1687 * i386-tdep.c (i386_frame_align): New.
1688 (i386_gdbarch_init): Use i386_frame_align.
1689
f3d6df6d
YQ
16902011-09-23 Yao Qi <yao@codesourcery.com>
1691
1692 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1693 to get address.
1694
e69860f1
TG
16952011-09-22 Tristan Gingold <gingold@adacore.com>
1696
1697 * fork-child.c (fork_inferior): Add exec_fun parameter.
1698 Call exec_fun or execvp.
1699 * inferior.h: Adjust prototype.
1700 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1701 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1702 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1703 * procfs.c (procfs_create_inferior): Ditto.
1704 * darwin-nat.c (darwin_execvp): New function.
1705 (darwin_create_inferior): Use it.
1706
4b51d87b
YQ
17072011-09-22 Yao Qi <yao@codesourcery.com>
1708
1709 * infrun.c (context_switch): Print debug message when switching to
1710 a different thread.
1711
56b9d9ac
UW
17122011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1713
1714 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1715 complex and vector types.
1716 (s390_return_value_convention): Likewise.
1717
1718 (s390_value_from_register): Call check_typedef.
1719 (extend_simple_arg): Likewise.
1720 (alignment_of): Likewise.
1721 (s390_push_dummy_call): Likewise.
1722 (s390_return_value): Likewise.
1723
b2cd6b29
JM
17242011-09-21 Joseph Myers <joseph@codesourcery.com>
1725
1726 * event-top.c (async_disconnect): If an exception is thrown from
1727 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1728 catch_errors.
1729 * top.c (quit_cover): Return void and take no arguments.
1730 * top.h (quit_cover): Update prototype.
1731
67ba4e42
JM
17322011-09-20 Joseph Myers <joseph@codesourcery.com>
1733
1734 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1735 current_uiout, not uiout.
1736
562f943b
DE
17372011-09-19 Doug Evans <dje@google.com>
1738
1739 * python/py-auto-load.c (source_section_scripts): Fix file
1740 descriptor leak.
1741 * python/python.c (source_python_script_for_objfile): Tweak comments.
1742
34518530
YQ
17432011-09-18 Yao Qi <yao@codesourcery.com>
1744 Ulrich Weigand <ulrich.weigand@linaro.org>
1745
1746 Support displaced stepping for Thumb 16-bit insns.
1747 * arm-tdep.c (THUMB_NOP) Define.
1748 (thumb_copy_unmodified_16bit): New.
1749 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1750 (thumb_copy_alu_reg): New.
1751 (arm_copy_svc): Move some common code to ...
1752 (install_svc): ... here. New.
1753 (thumb_copy_svc): New.
1754 (install_pc_relative): New.
1755 (thumb_copy_pc_relative_16bit): New.
1756 (thumb_decode_pc_relative_16bit): New.
1757 (thumb_copy_16bit_ldr_literal): New.
1758 (thumb_copy_cbnz_cbz): New.
1759 (cleanup_pop_pc_16bit_all): New.
1760 (thumb_copy_pop_pc_16bit): New.
1761 (thumb_process_displaced_16bit_insn): New.
1762 (thumb_process_displaced_32bit_insn): New.
1763 (thumb_process_displaced_insn): process thumb instruction.
1764
1765 Support displaced stepping for Thumb 32-bit insns.
1766 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1767 (thumb2_copy_preload): New.
1768 (thumb2_copy_copro_load_store): New.
1769 (thumb2_copy_b_bl_blx): New.
1770 (thumb2_copy_alu_imm): New.
1771 (thumb2_copy_load_reg_imm): New.
1772 (thumb2_copy_load_literal): New
1773 (thumb2_copy_block_xfer): New.
1774 (thumb_32bit_copy_undef): New.
1775 (thumb_32bit_copy_unpred): New.
1776 (thumb2_decode_ext_reg_ld_st): New.
1777 (thumb2_decode_svc_copro): New.
1778 (decode_thumb_32bit_store_single_data_item): New.
1779 (thumb_copy_pc_relative_32bit): New.
1780 (thumb_decode_pc_relative_32bit): New.
1781 (decode_thumb_32bit_ld_mem_hints): New.
1782 (thumb2_copy_table_branch): New
1783 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1784 instructions.
1785
2b16b2e3
YQ
17862011-09-18 Yao Qi <yao@codesourcery.com>
1787
1788 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1789 (install_b_bl_blx): Likewise.
1790
0f6f04ba
YQ
17912011-09-17 Yao Qi <yao@codesourcery.com>
1792
1793 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1794 (install_load_store): ... this. New.
1795 Change parameter BYTE to SIZE.
1796 (arm_copy_ldr_str_ldrb_strb): Update caller.
1797 (arm_decode_ld_st_word_ubyte): Update caller.
1798
e2d96639
YQ
17992011-09-17 Yao Qi <yao@codesourcery.com>
1800
1801 * infrun.c (displaced_step_fixup): Move some code ...
1802 (displaced_step_restore): ... here. New function.
1803 (handle_inferior_event): Cleanup displaced stepping state for both
1804 child and parent when get forked or vforked event.
1805 * regcache.c (get_thread_arch_aspace_regcache): New function.
1806 get_thread_arch_regcache (): Call it.
1807
a8123151
JB
18082011-09-16 Joel Brobecker <brobecker@adacore.com>
1809
1810 * ada-tasks.c (print_ada_task_info): New function, merging
1811 short_task_info and info_tasks together. Reimplement using
1812 ui-out instead of printing to stdout directly. Move the code
1813 building and checking the task list here, instead of leaving it
1814 in info_tasks_command.
1815 (info_task): Move the code building and checking the task
1816 list here, instead of leaving it in info_tasks_command.
1817 (info_tasks_command): Delete code building and checking
1818 the task list - moved elsewhere. Update calls to info_tasks
1819 and info_task.
1820
fbf06824
JB
18212011-09-16 Joel Brobecker <brobecker@adacore.com>
1822
1823 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1824
34a0bc90
JB
18252011-09-16 Joel Brobecker <brobecker@adacore.com>
1826
1827 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1828
79779fa9
JB
18292011-09-16 Joel Brobecker <brobecker@adacore.com>
1830
1831 * ada-lang.h (ada_build_task_list): Remove parameter
1832 `warn_if_null'.
1833 * ada-tasks.c (ada_build_task_list): Remove parameter
1834 `warn_if_null'. Adjust implementation and documentation.
1835 (valid_task_id, ada_get_environment_task)
1836 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1837 (info_tasks_command): Adjust implementation.
1838 (task_command): Likewise.
1839 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1840 to ada_build_task_list.
1841
e225eb91
JB
18422011-09-16 Joel Brobecker <brobecker@adacore.com>
1843
1844 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1845 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1846 (ada_tasks_inferior_data_handle): New static global.
1847 (get_ada_tasks_inferior_data): New function.
1848 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1849 (ada_get_environment_task, iterate_over_live_ada_tasks)
1850 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1851 Adjust.
1852 (ada_set_current_inferior_known_tasks_addr): New function.
1853 (read_known_tasks, ada_build_task_list, short_task_info)
1854 (info_tasks, info_task, info_tasks_command, task_command_1)
1855 (task_command, ada_task_list_changed): Adjust.
1856 (ada_tasks_invalidate_inferior_data): New function.
1857 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1858 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1859 * ada-lang.h (struct inferior): Add declaration.
1860 (ada_task_list_changed): Update profile.
1861 * remote-wtx-pd.c: #include "inferior.h".
1862 (switch_to_pd_internal): Update call to ada_task_list_changed.
1863
6da9ca05
JB
18642011-09-16 Joel Brobecker <brobecker@adacore.com>
1865
1866 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1867 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1868 (atcb_fieldno): Delete these static globals.
1869 (struct ada_tasks_pspace_data): New struct.
1870 (ada_tasks_pspace_data_handle): New static global.
1871 (get_ada_tasks_pspace_data): New function.
1872 (ada_tasks_invalidate_pspace_data): New function.
1873 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1874 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1875 (_initialize_tasks): Create this module's per-progspace
1876 data handle.
1877
dccd3cbd
JB
18782011-09-16 Joel Brobecker <brobecker@adacore.com>
1879
1880 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1881
f877b031
TG
18822011-09-16 Tristan Gingold <gingold@adacore.com>
1883
1884 * fork-child.c (fork_inferior): Update comment. Use alloca
1885 instead of xmalloc for argv. Move len and shell_command
1886 declarations in the block where they are used.
1887 Only call execvp. Factorize failure code.
1888
ae0c443d
JK
18892011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1890
1891 Code cleanup.
1892 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1893 `exp_element' instead of an element of the same and make the function
1894 static.
1895 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1896 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1897 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1898 Change argument of `write_exp_elt' function call.
1899 Remove extra spaces from comments.
1900 * parser-defs.h (write_exp_elt): Remove prototype.
1901
5af65ec0
PK
19022011-09-15 Paul Koning <paul_koning@dell.com>
1903
1904 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1905 count of item appended to list.
1906 * python/py-type.c (typy_fields): Likewise.
1907
72be8ccc
PK
19082011-09-15 Paul Koning <paul_koning@dell.com>
1909
883640a8 1910 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1911
92f6badc
KP
19122011-09-15 Kevin Pouget <kevin.pouget@st.com>
1913
1914 PR threads/12628
1915 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1916 processes with multiple threads.
1917 (inf_has_multiple_thread_cb): New function.
1918 (inf_has_multiple_threads): New function.
1919
0672bf41 19202011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
1921
1922 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1923 * python/py-inferior.c (GdbMethods): New Python method definition.
1924
6839b47f
KP
19252011-09-15 Kevin Pouget <kevin.pouget@st.com>
1926
1927 Handle multiple breakpoint hits in Python interface:
1928 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1929 variable to breakpoints.
1930 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1931 bps instead of single breakpoint. Fix some space typos.
1932 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1933 variable to breakpoints.
1934
672f9b60
KP
19352011-09-15 Kevin Pouget <kevin.pouget@st.com>
1936
1937 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1938 note if the breakpoint is internal.
1939
43675ae4
KP
19402011-09-15 Kevin Pouget <kevin.pouget@st.com>
1941
0672bf41 1942 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 1943
15148d6a
PA
19442011-09-14 Pedro Alves <pedro@codesourcery.com>
1945
1946 * infrun.c (prepare_for_detach, wait_for_inferior)
1947 (fetch_inferior_event): Don't flush the register cache.
1948 * remote.c (struct stop_reply) <regcache>: Add comment.
1949
d83e736b
JK
19502011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1951
1952 Remove excessive DWARF expressions memory duplication.
1953 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1954 for block.data.
1955 (indirect_pieced_value): Remove variable result. Remove variable
1956 back_to and its use for baton.data.
1957 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1958 block.data.
1959 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1960 Update the function comment.
1961
c65b3e0d
PA
19622011-09-13 Pedro Alves <pedro@codesourcery.com>
1963
1964 * inferior.h (ALL_INFERIORS): New.
1965 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1966 for a stopped thread.
1967 (thread_db_find_new_threads): Look for threads in all inferiors.
1968
a1398e0c
PA
19692011-09-13 Pedro Alves <pedro@codesourcery.com>
1970
1971 * breakpoint.c (update_watchpoint): Handle the case of the
1972 watchpoint to update not being in the breakpoint list yet.
1973 (hw_watchpoint_use_count): New, factored out from
1974 hw_watchpoint_used_count.
1975 (hw_watchpoint_used_count): Rename to ...
1976 (hw_watchpoint_used_count_others): ... this. Add `except'
1977 parameter. Don't count resources of `except'. Use
1978 hw_watchpoint_use_count.
1979
30596231
PA
19802011-09-13 Pedro Alves <pedro@codesourcery.com>
1981
1982 * gdbthread.h (enum thread_state): Moved here.
1983 (struct thread_info): Rename `executing_' field to `executing' and
1984 `state_' to `state'.
1985 * thread.c (enum thread_state): Moved to gdbthread.h.
1986 (new_thread, add_thread_silent, delete_thread_1)
1987 (any_live_thread_of_process, thread_alive, set_running)
1988 (set_running, is_thread_state, any_running, is_executing)
1989 (set_executing, finish_thread_state, print_thread_info)
1990 (do_captured_thread_select): Adjust.
1991
bede5f5f
JK
19922011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1993
1994 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1995 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1996
4801a9a3
PA
19972011-09-12 Pedro Alves <pedro@codesourcery.com>
1998 Matt Rice <ratmice@gmail.com>
1999
2000 PR gdb/13175
2001
2002 * interps.c (struct interp) <interpreter_out>: Delete field.
2003 (interp_new): Remove the data and uiout parameters and adjust.
2004 (interp_set): Only set the current_uiout from the interpreter's
2005 uiout after initializing the interpreter. Adjust call to
2006 init_proc.
2007 (interp_ui_out): Adjust to call procs->ui_out_proc.
2008 (interp_data, interp_name): New.
2009 * interps.h (interp_init_ftype): Add `self' parameter.
2010 (interp_ui_out_ftype): New typedef.
2011 (struct interp_procs) <ui_out_proc>: New method pointer.
2012 (interp_new): Remove the data and uiout parameters.
2013 (interp_data, interp_name): Declare.
2014 * tui/tui-interp.c (tui_init): Adjust prototype.
2015 (tui_ui_out): New.
2016 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2017 tui_out here. Adjust call to interp_new.
2018 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2019 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2020 (cli_ui_out): New.
2021 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2022 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2023 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2024 Initialize mi->uiout depending on the mi_version as extracted from
2025 the interpreter's name.
2026 (mi_ui_out): New.
2027 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2028 interp_new. Don't allocate the ui_out's of the interpreters here.
2029
d0afda03 20302011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2031
d0afda03 2032 * solib.c (solib_used): New function.
59145f8c
AR
2033 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2034 by another so_list object before freeing it.
2035
bdaf8d4a
JK
20362011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2037
2038 Code cleanup.
2039 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2040 values.
2041
df15bd07
JK
20422011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2043
2044 Code cleanup.
2045 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2046 (amd64_skip_xmm_prologue): ... this new function. Describe its
2047 parameters. No longer use amd64_prologue_line_bug.
2048 * defs.h (producer_is_gcc_ge_4): New declaration.
2049 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2050 (process_full_comp_unit): Update its caller. Remove
2051 amd64_prologue_line_bug initialization.
2052 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2053 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2054
25289eb2
PA
20552011-09-09 Pedro Alves <pedro@codesourcery.com>
2056
2057 * linux-nat.h (enum resume_kind): New.
2058 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2059 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2060 resume_stop on the new lwp.
25289eb2
PA
2061 (add_lwp): Set last_resume_kind as resume_continue by default.
2062 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2063 (resume_lwp): New, factored out from resume_callback. Also check
2064 for pending status in lp->waitstatus.
2065 (resume_callback): Reimplement.
2066 (resume_clear_callback): Set last_resume_kind as resume_stop.
2067 (resume_set_callback): Set last_resume_kind as resume_continue.
2068 (linux_nat_resume, linux_handle_extended_wait): Set
2069 last_resume_kind.
2070 (running_callback): Also check lp->waitstatus for pending events.
2071 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2072 is resume_step.
2073 (stop_and_resume_callback): Don't re-resume if the core wanted the
2074 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2075 using an invalidated pointer.
2076 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2077 SIGSTOPs if the core wanted the LWP to stop.
2078 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2079 wanted the lwp to stop. If the core wanted the lwp to stop, and
2080 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2081 of TARGET_SIGNAL_STOP.
2082 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2083 here. Instead, signal the lwp, and set the last_resume_kind to
2084 resume_stop.
2085
f687d035
PA
20862011-09-09 Pedro Alves <pedro@codesourcery.com>
2087
2088 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2089 -1 (error), if the lwp exits right after attaching.
2090
bc587a6b
DE
20912011-09-08 Doug Evans <dje@google.com>
2092
63d97a20
DE
2093 * py-cmd.c: Some minor formatting fixes.
2094 (gdbpy_parse_command_name): Rename text arg to name, make const.
2095 All callers updated.
2096 * python-internal.h (gdbpy_parse_command_name): Update.
2097
bc587a6b
DE
2098 * cli/cli-decode.c (add_cmd): Add comment.
2099
08711b9a
JK
21002011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2101
2102 PR breakpoints/12435
2103 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2104 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2105 * dwarf2read.c (process_full_comp_unit): Initialize
2106 amd64_prologue_line_bug.
2107 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2108
b2e7f004
JK
21092011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2110
2111 Fix TUI screen corruption.
2112 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2113 batch_flag.
2114
8afd712c
JK
21152011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2116
2117 * findvar.c (read_var_value): Never return NULL, throw an error
2118 instead. Update the function comment. State symbol name in the error
2119 messages.
2120 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2121 read_var_value.
2122 * stack.c (print_frame_args): Likewise.
2123 * valops.c (value_of_variable): Likewise.
2124
b99b5f66
JK
21252011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2126
2127 * stack.c (print_frame_args): New variable except. Wrap
2128 read_var_value and common_val_print into TRY_CATCH.
2129
85bc8cb7
JK
21302011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2131
2132 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2133 caller to value_of_this.
2134 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2135 Twice.
2136 * valops.c (value_of_this): Remove parameter complain and variable ret.
2137 Update function comment. Never return NULL by this code.
2138 (value_of_this_silent): New function.
2139 * value.h (value_of_this): Remove parameter complain.
2140 (value_of_this_silent): New declaration.
2141
ede1849f
YQ
21422011-09-07 Yao Qi <yao@codesourcery.com>
2143
2144 * gdbthread.h (struct thread_info): Remove fields
2145 `stepping_through_solib_after_catch' and
2146 `stepping_through_solib_catchpoints'.
2147 * infrun.c (init_thread_stepping_state): Update.
2148 (process_event_stop_test, currently_stepping): Update.
2149 (currently_stepping_or_nexting_callback): Update.
2150
6aa27652
YQ
21512011-09-07 Yao Qi <yao@codesourcery.com>
2152
2153 * gdbthread.h (struct thread_info): Comment on field
2154 `step_after_step_resume_breakpoint'.
2155
00db5b94
PA
21562011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2157
2158 * remote.c (remote_console_output): Reindent.
2159
861152be
LM
21602011-09-06 Luis Machado <lgustavo@codesourcery.com>
2161
2162 * frame.c (has_stack_frames): Check for currently selected
2163 traceframe.
2164
ab821bc6
PA
21652011-09-06 Pedro Alves <pedro@codesourcery.com>
2166
2167 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2168 (set_async_annotation_level, set_async_prompt, pop_prompt)
2169 (push_prompt, new_async_prompt): Delete declarations.
2170 * top.h (get_prompt, set_prompt): Change prototype.
2171 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2172 declarations.
2173 * top.c (command_loop):
2174 (top_prompt): New global.
2175 (get_prefix, set_prefix, get_suffix, ): Delete.
2176 (get_prompt, set_prompt): Rewrite.
2177 (show_new_async_prompt): Rename to ...
2178 (show_prompt): ... this.
2179 (init_main): Adjust. Don't handle --annotate=2 here.
2180 * event-top.c (new_async_prompt): Delete.
2181 (the_prompts): Delete.
2182 (more_to_come): Make static.
2183 (display_gdb_prompt): Use top_level_prompt() to compute the top
2184 level prompt, and don't notify the before_prompt observers
2185 directly here. Always trick readline into not trying to display
2186 the prompt if sync_execution and displaying the primary prompt.
2187 If displaying a local/secondary prompt, always show it, even if
2188 sync_execution is set.
2189 (change_annotation_level): Delete.
2190 (top_level_prompt): New, based on change_annotation_level.
2191 (push_prompt, pop_prompt): Delete.
2192 (async_disable_stdin): No longer pushes prompt.
2193 (command_line_handler): No longer pushes or pops prompt. If more
2194 input is expected, call display_gdb_prompt with an explicit empty
2195 prompt.
2196 (async_stop_sig): Adjust.
2197 (set_async_annotation_level, set_async_prompt): Delete.
2198 * python/python.c (before_prompt_hook): Adjust.
2199
f1d90504
PA
22002011-09-05 Pedro Alves <pedro@codesourcery.com>
2201
2202 PR cli/13110
2203
2204 * infrun.c (fetch_inferior_event): Check if there's a selected
2205 thread before checking if the selected thread is executing.
2206
0f641c01
PA
22072011-09-05 Pedro Alves <pedro@codesourcery.com>
2208
2209 * inf-loop.c (execute_command): Don't check if the current thread
2210 if running before synchronously waiting for command completion.
2211 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2212 here.
2213 (normal_stop): Call async_enable_stdin here.
2214 * inf-loop.c (inferior_event_handler): Don't call
2215 async_enable_stdin, nor handle "set exec-done-display" here.
2216
30368258 22172011-09-04 Joel Brobecker <brobecker@adacore.com>
2218
2219 GDB 7.3.1 released.
2220
31916278
JB
22212011-09-04 Joel Brobecker <brobecker@adacore.com>
2222
2223 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2224
e8d56f18
JB
22252011-09-04 Joel Brobecker <brobecker@adacore.com>
2226
2227 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2228
5dd05d8c
JK
22292011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2230
2231 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2232
7d8e6458 22332011-09-02 Matt Rice <ratmice@gmail.com>
2234
2235 PR gdb/10720
2236 * event-top.c (cli_command_loop): Replace readline setup with
2237 direct call to display_gdb_prompt.
2238 (display_gdb_prompt): Do not call observer mechanism during
2239 synchronous execution.
2240
84636d28
PA
22412011-09-02 Pedro Alves <pedro@codesourcery.com>
2242
2243 * linux-nat.c (in_pid_list_p): New.
2244 (linux_record_stopped_pid): Delete.
2245 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2246 already attached to the LWP. Return an indication if so.
2247 (linux_nat_filter_event): Adjust.
2248 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2249 returning an indication to ignore this thread.
2250
b4a14fd0
PA
22512011-09-02 Pedro Alves <pedro@codesourcery.com>
2252
2253 * top.c: Include interps.h.
2254 (execute_command): If the target can async, but the interpreter is
2255 in sync mode, synchronously wait for the command to finish before
2256 returning.
2257 (execute_command_to_string): Force the interpreter to sync mode.
2258 * infrun.c: Include interps.h.
2259 (fetch_inferior_event): Don't restore the prompt yet if the
2260 interpreter is in sync mode.
2261 * interps.c (interpreter_async): New global.
2262 * interps.h (interpreter_async): Declare.
2263 * inf-loop.c: Include interps.h.
2264 (inferior_event_handler): Don't print the language change or run
2265 breakpoint commands yet if the interpreter in is sync mode.
2266 * main.c (captured_command_loop): Flip the interpreter to async
2267 mode.
2268 * cli/cli-script.c: Include interps.h.
2269 (execute_user_command, while_command, if_command): Force the
2270 interpreter to sync mode.
2271 * python/python.c: Include interps.h.
2272 (python_command, execute_gdb_command): Force the interpreter to
2273 sync mode.
2274
c709acd1
PA
22752011-09-02 Pedro Alves <pedro@codesourcery.com>
2276
2277 * value.c (show_convenience): Catch errors thrown while printing
2278 each internal variable.
2279 * infrun.c (validate_siginfo_access): New function.
2280 (siginfo_value_read, siginfo_value_write): Call it.
2281
9655e943
JK
22822011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2283
2284 Revert:
2285 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2286 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2287 attribute.
2288
cb457ae2
YQ
22892011-08-29 Yao Qi <yao@codesourcery.com>
2290
2291 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2292 (cmp_name): New.
2293 (enable_break2): Update caller.
2294 * solib-frv.c (bfd_lookup_symbol): Removed.
2295 (cmp_name): New.
2296 (enable_break2): Update caller.
2297 * solib-pa64.c (bfd_lookup_symbol): Removed.
2298 (cmp_name): New.
2299 * solib-svr4.c (bfd_lookup_symbol): Removed.
2300 (cmp_name_and_sec_flags): New.
2301 (enable_break): Update caller.
2302 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2303 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2304 (gdb_bfd_lookup_symbol): New.
2305 * solib.h: Functions declarations.
2306
83d1a36a
YQ
23072011-08-29 Yao Qi <yao@codesourcery.com>
2308
2309 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2310 and solib-dsbt.o.
2311
c04b3e8f
JK
23122011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2313
2314 Fix TUI stepi on code without symbols.
2315 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2316 current PC instead.
2317
cb0fd152
JK
23182011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2319
2320 Code cleanup.
2321 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2322 and the static keyword.
2323 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2324 Make prefix an array.
2325 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2326 * mi/mi-main.c (get_register): Remove stb initialization and the static
2327 keyword.
2328
91174723
JK
23292011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2330
2331 Code cleanup - make mi_opt const.
2332 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2333 opts const.
2334 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2335 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2336 (mi_cmd_env_dir): Likewise.
2337 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2338 (mi_cmd_target_file_put): Likewise.
2339 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2340 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2341 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2342 (mi_valid_noargs): Make opts const.
2343 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2344 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2345 (mi_cmd_data_read_memory): Likewise.
2346 (mi_cmd_data_read_memory_bytes): Likewise.
2347 (mi_cmd_data_write_memory): Likewise.
2348
5068b8e8 23492011-08-26 Matt Rice <ratmice@gmail.com>
2350
2351 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2352 bcache_xmalloc, replace bcache_xmalloc with call to
2353 psymbol_bcache_init for psymbol_cache.
2354 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2355
a4f2ce05
JK
23562011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2357
2358 * inf-loop.c (inferior_event_handler): Add exception_print in
2359 INF_EXEC_COMPLETE.
2360
353d1d73
JK
23612011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2362
2363 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2364 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2365 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2366 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2367 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2368 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2369 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2370 * infrun.c (fetch_inferior_event): Call
2371 make_bpstat_clear_actions_cleanup.
2372 * top.c (execute_command): New variable cleanup_if_error, call
2373 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2374 * utils.c (do_bpstat_clear_actions_cleanup)
2375 (make_bpstat_clear_actions_cleanup): New functions.
2376
3ced3da4
PA
23772011-08-26 Pedro Alves <pedro@codesourcery.com>
2378
2379 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2380 either the parent or the child forks. Rename a couple locals.
2381
a9f4bb21
PA
23822011-08-26 Pedro Alves <pedro@codesourcery.com>
2383
2384 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2385 library call. Avoid reading the `status' local if all waitpid
2386 calls failed.
2387
e5798bef
PA
23882011-08-26 Pedro Alves <pedro@codesourcery.com>
2389
2390 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2391 opening /proc/PID/task always succeeds.
2392
edb2aadf
AR
23932011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2394
2395 * linespec.c (symtab_from_filename): Check for the end of string.
2396
0d932b2f
MK
23972011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2398
2399 PR mi/11912
2400 * varobj.c (cplus_describe_child): Add the keyword
2401 'class' to the output of the method when dealing
2402 with a cast to a base class.
2403
e93ca019
JK
24042011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2405
2406 No functionality change.
2407 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2408 function comment a reference, new variables tp and bs, move here code
2409 from throw_exception.
2410 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2411 describe it in the comment.
2412 * exceptions.c (throw_exception): Remove variable tp, move the code for
2413 bpstat_clear_actions to bpstat_clear_actions.
2414
13da1c97
LM
24152011-08-24 Luis Machado <lgustavo@codesourcery.com>
2416
2417 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2418 * linux-nat.c: Include linux-procfs.h.
2419 (linux_proc_get_tgid): Move to ...
2420 * common/linux-procfs.c: ... here. New file.
2421 * common/linux-procfs.h: New file.
2422 * linux-thread-db.c: Include linux-procfs.h.
2423 * Makefile.in: Update dependencies.
2424 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2425 * config/arm/linux.mh: Likewise.
2426 * config/i386/linux.mh: Likewise.
2427 * config/i386/linux64.mh: Likewise.
2428 * config/ia64/linux.mh: Likewise.
2429 * config/m32r/linux.mh: Likewise.
2430 * config/m68k/linux.mh: Likewise.
2431 * config/mips/linux.mh: Likewise.
2432 * config/pa/linux.mh: Likewise.
2433 * config/pa/linux.mh: Likewise.
2434 * config/powerpc/linux.mh: Likewise.
2435 * config/powerpc/ppc64-linux.mh: Likewise.
2436 * config/powerpc/spu-linux.mh: Likewise.
2437 * config/sparc/linux.mh: Likewise.
2438 * config/sparc/linux64.mh: Likewise.
2439 * config/xtensa/linux.mh: Likewise.
2440
4e5c165d
HZ
24412011-08-24 Hui Zhu <teawater@gmail.com>
2442
2443 * tracepoint.c (cond_string_is_same): New function.
2444 (find_matching_tracepoint): Add condition check
2445 by cond_string_is_same.
2446
6e2f5b22
JK
24472011-08-23 Josh Matthews <josh@joshmatthews.net>
2448
2449 Fix build error in Darwin port.
2450 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2451
abf85f46
JK
24522011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2453
2454 Code cleanup.
2455 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2456 (command_line_is_silent): New function.
2457 (bpstat_do_actions_1): No longer use commands_left, use
2458 command_line_is_silent for commands.
2459 (bpstat_alloc): Remove clearing of commands_left.
2460 (bpstat_stop_status): Remove initialization of commands_left, use
2461 command_line_is_silent.
2462 * breakpoint.h (struct bpstats): Remove commands_left.
2463
3a93a0c2
KS
24642011-08-18 Keith Seitz <keiths@redhat.com>
2465
2466 PR c++/12266
2467 * cp-name-parser.y (struct demangle_info): Remove unused
2468 member PREV.
2469 (d_grab): Likewise.
2470 (allocate_info): Change return type to struct demangle_info *.
2471 Always allocate a new demangle_info.
2472 Remove unused PREV pointer.
2473 (cp_new_demangle_parse_info): New function.
2474 (cp_demangled_name_parse_free): New function.
2475 (do_demangled_name_parse_free_cleanup): New function.
2476 (make_cleanup_cp_demangled_name_parse_free): New function.
2477 (cp_demangled_name_to_comp): Change return type to
2478 struct demangle_parse_info *.
2479 Allocate a new storage for each call.
2480 (main): Update usage for cp_demangled_name_to_comp
2481 API change.
2482 * cp-support.h (struct demangle_parse_info): New structure.
2483 (cp_demangled_name_to_comp): Update API change for
2484 return type.
2485 (cp_new_demangle_parse_info): Declare.
2486 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2487 (cp_demangled_name_parse_free): Declare.
2488 * cp-support.c (cp_canonicalize_string): Update API
2489 change for cp_demangled_name_to_comp.
2490 (mangled_name_to_comp): Likewise.
2491 Return struct demangle_parse_info, too.
2492 (cp_class_name_from_physname): Update mangled_name_to_comp
2493 API change.
2494 (method_name_from_physname): Likewise.
2495 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2496 (cp_remove_params): Likewise.
2497 * python/py-type.c (typy_legacy_template_argument): Likewise.
2498
2499 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2500 (cp_merge_demangle_parse_infos): Declare.
2501 * cp-support.c (ignore_typedefs): New file global.
2502 (copy_string_to_obstack): New function.
2503 (inspect_type): New function.
2504 (replace_typedefs): New function.
2505 (replace_typedefs_qualified_name): New function.
2506 (cp_canonicalize_string_no_typedefs): New function.
2507 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2508 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2509 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2510 instead of cp_canonicalize_string.
2511 (find_method): Likewise.
2512 (decode_compound): Before looking up the name, call
2513 cp_canonicalize_string_no_typedefs.
2514 (decode_variable): Likewise.
2515
fa3a4f15
PM
25162011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2517 Tom Tromey <tromey@redhat.com>
2518 Matt Rice <ratmice@gmail.com>
2519
2520 * python/lib/gdb/prompt.py: New file.
2521 * python/lib/gdb/command/prompt.py: New file.
2522 * NEWS: Document set extended-prompt and gdb.prompt library
2523
85661b1e
YQ
25242011-08-16 Yao Qi <yao@codesourcery.com>
2525
2526 * tic6x-linux-tdep.c: Move const arrays definition from here...
2527 * tic6x-tdep.c: to here ...
2528
11315641
YQ
25292011-08-14 Yao Qi <yao@codesourcery.com>
2530
2531 * NEWS: New port to Texas Instruments TMS320C6x.
2532
8cd64e00
YQ
25332011-08-14 Andrew Jenner <andrew@codesourcery.com>
2534 Bernd Schmidt <bernds@codesourcery.com>
2535 Yao Qi <yao@codesourcery.com>
2536
2537 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2538 * solib-dsbt.c: New file. Support DSBT shared object.
2539 * tic6x-linux-tdep.c: New file.
2540 * tic6x-tdep.c: New file.
2541 * tic6x-tdep.h: New file.
2542
78d85199
YQ
25432011-08-14 Andrew Stubbs <ams@codesourcery.com>
2544 Yao Qi <yao@codesourcery.com>
2545
2546 * remote.c (PACKET_qXfer_fdpic): New enum value.
2547 (remote_protocol_features): Add qXfer:fdpic:read packet.
2548 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2549 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2550 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2551
224bbe49
YQ
25522011-08-14 Yao Qi <yao@codesourcery.com>
2553
2554 Target description for tic6x.
2555 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2556 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2557 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2558 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2559 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2560 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2561 * features/tic6x-c64xp-linux.xml: New.
2562 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2563 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2564 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2565 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2566 * regformats/tic6x-c64xp.dat,
2567 regformats/tic6x-c62x-linux.dat: Generated.
2568 * regformats/tic6x-c64x-linux.dat,
2569 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2570 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2571 features/tic6x-*.c files.
2572 Add regformats/tic6x-*.dat files.
2573
457e09f0
DE
25742011-08-12 Doug Evans <dje@google.com>
2575
2576 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2577 * python/py-symbol.c (sympy_get_type): New function.
2578 (symbol_object_getset): Add "type".
2579
d20c1c3f
PA
25802011-08-12 Pedro Alves <pedro@codesourcery.com>
2581
2582 PR tui/13073
2583
2584 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2585 empty name.
2586 (tui_show_register_group): Don't store a byte buffer in the data
2587 element's value.
2588 (tui_register_format): Skip registers with an empty name.
2589 (tui_get_register): Store a struct value in the data element's
2590 value field instead of a byte buffer holding the raw register
2591 contents. Account for optimized-out and unavailable registers
2592 when comparing register contents.
2593
9d8fa392
PA
25942011-08-09 Pedro Alves <pedro@codesourcery.com>
2595
2596 * printcmd.c (current_display_number): Update comment.
2597 (disable_current_display_cleanup): Delete.
2598 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2599 catch errors thrown while evaluating and printing the display.
2600
401a70b8
TT
26012011-08-09 Tom Tromey <tromey@redhat.com>
2602
2603 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2604
7f86f058
PA
26052011-08-09 Pedro Alves <pedro@codesourcery.com>
2606
94b71cca 2607 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2608 * maint.c (maintenance_command): Ditto.
2609 * somread.c (som_symtab_read): Ditto.
2610 * solib.c (solib_find, solib_map_sections, update_solib_list)
2611 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2612 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2613 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2614 * solib-irix.c (locate_base, disable_break, enable_break)
2615 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2616 (irix_current_sos, irix_open_symbol_file_object)
2617 (irix_special_symbol_handling): Ditto.
2618 * solib-sunos.c (locate_base, first_link_map_member)
2619 (sunos_current_sos, disable_break, enable_break)
2620 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2621 Ditto.
2622 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2623 (open_symbol_file_object, svr4_current_sos, enable_break)
2624 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2625 Ditto.
2626 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2627 (frv_current_sos, enable_break, frv_special_symbol_handling)
2628 (frv_solib_create_inferior_hook): Ditto.
2629 * solist.h (struct target_so_ops): Extend the comments of the
2630 special_symbol_handling, current_sos and open_symbol_file_object
2631 methods.
2632
5e239b84
PM
26332011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2634
2635 * python/lib/gdb/__init__.py: Auto-load files in command and
2636 function directories.
2637 * python/python.c (finish_python_initialization): Use
2638 os.path.join.
2639 * python/lib/gdb/command/pretty_printers.py: Self register
2640 command.
2641 * NEWS: Document auto-loading.
2642
b6cede78
JK
26432011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2644
2645 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2646 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2647 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2648
29d0bb3d
TT
26492011-08-08 Tom Tromey <tromey@redhat.com>
2650
2651 * breakpoint.c (clean_up_filters): Remove.
2652 (catch_syscall_split_args): Use VEC_cleanup.
2653
2f7fb8e4
JK
26542011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2655
2656 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2657 (main): Uncomment "Demangling error\n".
2658
d6c10e95
PP
26592011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2660
2661 * solib-target.c (segment_attributes): Make them static.
2662 (section_attributes, library_children, library_attributes): Likewise.
2663 (library_list_children, library_list_attributes): Likesise.
2664 (library_list_elements): Likewise.
2665
af6e93b2
PA
26662011-08-05 Pedro Alves <pedro@codesourcery.com>
2667
2668 * exceptions.c (throw_exception): Don't disable the current
2669 display.
2670 * printcmd.c (disable_current_display_cleanup): New function.
2671 (do_one_display): Install a cleanup to disable the current display
2672 if doing the display throws.
2673
6a1b1664
EZ
26742011-08-05 Eli Zaretskii <eliz@gnu.org>
2675
2676 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2677 initialization of the tp_new member to the corresponding
2678 gdbpy_initialize_* function.
2679 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2680 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2681 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2682 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2683 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2684
31a0ae49
JK
26852011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2686
2687 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2688 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2689 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2690 references to current_uiout.
2691
e0dd0826
PA
26922011-08-04 Pedro Alves <pedro@codesourcery.com>
2693
2694 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2695 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2696 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2697 * top.c (gdb_readline_wrapper): Adjust.
2698 * tui/tui-interp.c (tui_command_loop):
2699 (_initialize_tui_interp): Don't install it.
2700
79a45e25
PA
27012011-08-04 Pedro Alves <pedro@codesourcery.com>
2702
2703 * ui-out.h (uiout): Rename to ...
2704 (current_uiout): ... this.
2705 * ui-out.c (uiout): Rename to ...
2706 (current_uiout): ... this.
2707 * ada-lang.c (print_it_exception, print_one_exception)
2708 (print_mention_exception): Adjust.
2709 * breakpoint.c (watchpoint_check): Adjust.
2710 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2711 (default_collect_info, watchpoints_info, print_one_catch_fork)
2712 (print_one_catch_vfork, print_one_catch_syscall)
2713 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2714 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2715 (print_it_watchpoint, print_mention_watchpoint)
2716 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2717 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2718 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2719 (bkpt_print_mention, momentary_bkpt_print_it)
2720 (tracepoint_print_mention, update_static_tracepoint)
2721 (tracepoints_info, save_breakpoints): Adjust.
2722 * cli-out.c (field_separator): Adjust.
2723 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2724 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2725 * frame.c (get_current_frame): Adjust.
2726 * infcmd.c (run_command_1, print_return_value): Adjust.
2727 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2728 * infrun.c (print_end_stepping_range_reason): Adjust.
2729 (print_signal_exited_reason, print_exited_reason): Adjust.
2730 (print_signal_received_reason, print_no_history_reason): Adjust.
2731 * interps.c (interp_set): Adjust.
2732 * osdata.c (info_osdata_command): Adjust.
2733 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2734 * remote-fileio.c (remote_fileio_request): Adjust.
2735 * remote.c (show_remote_cmd): Adjust.
2736 * solib.c (info_sharedlibrary_command): Adjust.
2737 * source.c (print_source_lines_base): Adjust.
2738 * stack.c (print_stack_frame): Adjust.
2739 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2740 * symfile-mem.c (add_vsyscall_page): Adjust.
2741 * symfile.c (load_progress, generic_load)
2742 (print_transfer_performance): Adjust.
2743 * thread.c (info_threads_command, restore_selected_frame)
2744 (thread_command): Adjust.
2745 * top.c (make_cleanup_restore_ui_file): Adjust.
2746 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2747 (print_one_static_tracepoint_marker): Adjust.
2748 * cli/cli-cmds.c (print_disassembly): Adjust.
2749 * cli/cli-decode.c (print_doc_line): Adjust.
2750 * cli/cli-interp.c (safe_execute_command): Adjust.
2751 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2752 (handle_redirections): Adjust.
2753 * cli/cli-script.c (show_user_1): Adjust.
2754 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2755 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2756 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2757 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2758 (mi_cmd_env_dir): Adjust.
2759 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2760 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2761 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2762 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2763 (list_args_or_locals): Adjust.
2764 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2765 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2766 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2767 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2768 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2769 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2770 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2771 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2772 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2773 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2774 (list_available_thread_groups, mi_cmd_list_thread_groups)
2775 (mi_cmd_data_list_register_names)
2776 (mi_cmd_data_list_changed_registers)
2777 (mi_cmd_data_list_register_values, get_register)
2778 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2779 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2780 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2781 (mi_execute_command, mi_load_progress): Adjust.
2782 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2783 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2784 Adjust.
2785 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2786 * tui/tui-interp.c (tui_command_loop): Adjust.
2787 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2788
f9679975
PA
27892011-08-04 Pedro Alves <pedro@codesourcery.com>
2790
2791 * exceptions.c (struct catcher): Remove saved_uiout field.
2792 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2793 no longer save/resvore the global ui_out builder.
2794 (catch_exceptions_with_msg): Save/override/restore the global
2795 ui_out builder manually instead of relying on TRY_CATCH to do it.
2796 (catch_errors): Save/restore the global ui_out builder manually
2797 instead of relying on TRY_CATCH to do it.
2798 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2799 parameter.
2800 (TRY_CATCH): Adjust.
2801 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2802 the global ui_out builder manually instead of relying on TRY_CATCH
2803 to do it.
2804
934709f0
PW
28052011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2806
2807 * breakpoint.c (update_global_location_list): Ensure
2808 invariant 'first loc marked not duplicated and inserted,
2809 following locs marked duplicated/not inserted' is respected
2810 for multiple locations at the same address.
2811 (unduplicated_should_be_inserted) New function.
2812 (swap_insertion) New function.
2813
2421fe6f
JK
28142011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2815
2816 * stack.c (print_frame_arguments_choices): Comment typo fix.
2817
3fbb6ffa
TJB
28182011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2819
2820 Revert:
2821 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2822 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2823 argument. Update callers.
2824
fbe12357
PP
28252011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2826
2827 PR gdb/13045
2828 * doublest.c (convert_doublest_to_floatformat): Pass correct
2829 mantissa length to put_field.
2830
b1d288d3
JK
28312011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2832
2833 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2834 exception_print code path.
2835 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2836 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2837 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2838
311b5970
JK
28392011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2840
2841 Code cleanup.
2842 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2843 Remove, merge them into ...
2844 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2845 variable args and its initialization.
2846 (struct print_args_args, print_args_stub): Remove, merge them into
2847 print_frame.
2848 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2849 them into ...
2850 (do_gdb_disassembly): ... here. Remove variable args and its
2851 initialization.
2852 (print_frame): Remove variable args and its initialization, new
2853 variable gdbarch and numargs (from print_args_stub), inline here
2854 print_args_stub with a TRY_CATCH.
2855 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2856 them into ...
2857 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2858 New variable e, remove variable btargs and its initialization.
311b5970 2859
484a26a8
TG
28602011-08-01 Tristan Gingold <gingold@adacore.com>
2861
2862 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2863
c30eee59
TJB
28642011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2865
2866 * breakpoint.c (insert_bp_location): Document return value.
2867 (insert_breakpoint_locations): Fix documentation.
2868 (remove_breakpoints): Add documentation.
2869
f116073b
TJB
28702011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2871
2872 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2873 argument. Update callers.
2874
65aa373f
JK
28752011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2876
2877 * stack.c (print_frame_info): Comment typo fix.
2878
a50242fb
SA
28792011-07-29 Sterling Augustine <saugustine@google.com>
2880
2881 * MAINTAINERS (Write After Approval): Add myself to the list.
2882
267f6504
TT
28832011-07-29 Tom Tromey <tromey@redhat.com>
2884
2885 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2886 (library_list_start_segment): Update.
2887 (library_list_start_section): Update.
2888
00bd41d6
PM
28892011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2890
2891 * varobj.c (value_get_print_value): Move hint check later into the
2892 function. Comment function. Free thevalue before reusing it.
2893
18a46dbe
JK
28942011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2895 Pedro Alves <pedro@codesourcery.com>
2896
2897 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2898 value_one.
2899 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2900 Assert the result kind.
2901 * value.h (value_one): Remove parameter lv.
2902
bb7da2bf
JK
29032011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2904
2905 Fix crash on lval_computed values.
2906 * valops.c (value_zero): Use not_lval for lval_computed.
2907
2d5213f8
TT
29082011-07-27 Tom Tromey <tromey@redhat.com>
2909
2910 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2911 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2912
11081198
JK
29132011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2914
2915 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2916 "ptype" by their typedefs difference.
2917
3c6e0cb3
JK
29182011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2919
2920 * dwarf2expr.c (ctx_no_read_reg): New function.
2921 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2922 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2923 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2924 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2925
523f3620
JK
29262011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2927
2928 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2929 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2930 file.
2931 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2932 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2933 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2934 (ctx_no_get_base_type): Move the functions here.
2935 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2936 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2937 (ctx_no_get_base_type): New declarations.
2938
24d3216f
TT
29392011-07-27 Tom Tromey <tromey@redhat.com>
2940
2941 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2942 entries.
2943 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2944 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2945
5005c8a9
PP
29462011-07-26 Sterling Augustine <saugustine@google.com>
2947
2948 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2949 ULONGEST.
2950 (dump_bfd_file): Likewise.
2951
480a3f21
PW
29522011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2953
2954 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2955 (remote_hw_watchpoint_length_limit): New variable.
2956 (_initialize_remote) add set,show cmds for this new variable.
2957 * gdb.texinfo: document these new commands.
2958 * NEWS: Mention these new commands.
2959
efa80663
PA
29602011-07-26 Pedro Alves <pedro@codesourcery.com>
2961
2962 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2963 true for software watchpoints.
2964
dbdaa232 29652011-07-26 Joel Brobecker <brobecker@adacore.com>
2966
2967 GDB 7.3 released.
2968
cf2c3c16
TT
29692011-07-26 Tom Tromey <tromey@redhat.com>
2970
2971 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2972 * dwarf2read.c (read_indirect_string_at_offset): New function.
2973 (read_indirect_string): Use it.
2974 (dwarf_decode_macro_bytes): New function, taken from
2975 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2976 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2977 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2978 New functions.
2979 (struct dwarf2_per_objfile) <macro>: New field.
2980 (dwarf2_elf_names): Add .debug_macro.
2981 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2982 (dwarf2_locate_sections): Handle new section.
2983 (read_file_scope): Handle DW_AT_GNU_macros.
2984 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2985
1a532630
PP
29862011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2987
2988 * NEWS: Mention dcache configuration.
2989 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2990 (dcache_size, dcache_line_size): New variables.
2991 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2992 (struct dcache_block): Make it expandable.
2993 (struct dcache_struct): New field.
2994 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2995 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2996 (dcache_poke_byte, dcache_print_line): Adjust.
2997 (set_dcache_size, set_dcache_line_size): New functions.
2998 (set_dcache_command, show_dcache_command): New functions.
2999 (_initialize_dcache): Add new commands.
3000
2eff07b3
PP
30012011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3002
3003 * progspace.h (struct program_space): Add solib_add_generation.
3004 * infcmd.c (post_create_inferior): Only call solib_add if not
3005 already done.
3006 * solib.c (solib_add): Increment solib_add_generation.
3007
543305c9
JK
30082011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3009
3010 Fix implicit pointer offsets.
3011 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3012 ptr.OFFSET.
3013
c0a91b2b
TT
30142011-07-25 Tom Tromey <tromey@redhat.com>
3015
3016 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3017 const.
3018 (ada_exception_sal): Make 'ops' const.
3019 (ada_decode_exception_location): Likewise.
3020 (ada_decode_assert_location): Likewise.
3021 (catch_assert_command): Update.
3022 (catch_ada_exception_command): Update.
3023 (create_ada_exception_catchpoint): Make 'ops' const.
3024 * breakpoint.c (set_raw_breakpoint_without_location)
3025 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3026 const.
3027 (create_internal_breakpoint): Update.
3028 (init_raw_breakpoint_without_location): Make 'ops' const.
3029 (init_raw_breakpoint, init_catchpoint)
3030 (create_fork_vfork_event_catchpoint)
3031 (create_syscall_event_catchpoint, init_breakpoint_sal)
3032 (create_breakpoint_sal, create_breakpoints_sal)
3033 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3034 * breakpoint.h (struct breakpoint) <ops>: Now const.
3035 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3036 const.
3037
6cb9b55b
PP
30382011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3039
3040 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3041
d9b3f62e
PA
30422011-07-25 Pedro Alves <pedro@codesourcery.com>
3043
3044 * breakpoint.h (print_recreate_thread): Declare.
3045 (struct breakpoint): Move step_count, pass_count,
3046 number_on_target, static_trace_marker_id,
3047 static_trace_marker_id_idx ...
3048 (struct tracepoint): ... to this new struct.
3049 (get_tracepoint, get_tracepoint_by_number_on_target)
3050 (get_tracepoint_by_number): Change return type to struct
3051 tracepoint pointer.
3052 * breakpoint.c (is_tracepoint_type): New, factored out from
3053 is_tracepoint.
3054 (is_tracepoint): Adjust.
3055 (print_one_breakpoint_location): Cast to struct tracepoint as
3056 necessary, and adjust.
3057 (print_recreate_catch_fork, print_recreate_catch_vfork)
3058 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3059 print_recreate_thread.
3060 (init_breakpoint_sal): New, factored out from
3061 create_breakpoint_sal.
3062 (create_breakpoint_sal): Reimplement.
3063 (create_breakpoint): Allocate a struct tracecepoint if the caller
3064 wanted a tracepoint. Use init_breakpoint_sal and
3065 install_breakpoint.
3066 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3067 (print_recreate_masked_watchpoint)
3068 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3069 (tracepoint_print_one_detail): Adjust.
3070 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3071 Dump the pass count here.
3072 (update_static_tracepoint): Adjust.
3073 (addr_string_to_sals): Adjust.
3074 (create_tracepoint_from_upload): Adjust. Change return type to
3075 struct tracepoint pointer.
3076 (trace_pass_set_count): Change parameter type to struct tracepoint
3077 pointer, and adjust.
3078 (trace_pass_command): Adjust.
3079 (get_tracepoint, get_tracepoint_by_number_on_target)
3080 (get_tracepoint_by_number): Change return type to struct
3081 tracepoint pointer, and adjust.
3082 (print_recreate_thread): New, factored out from save_breakpoints.
3083 (save_breakpoints): Don't print thread and task and passcount
3084 recreation here.
3085 * remote.c (remote_download_tracepoint): Adjust.
3086 * tracepoint.c (trace_actions_command, validate_actionline)
3087 (start_tracing, tfind_1, trace_find_tracepoint_command)
3088 (trace_dump_command): Adjust.
3089 (find_matching_tracepoint): Change return type to struct
3090 tracepoint pointer, and adjust.
3091 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3092 (tfile_trace_find, tfile_fetch_registers): Adjust.
3093 * tracepoint.h (create_tracepoint_from_upload): Change return type
3094 to struct tracepoint pointer.
3095 * ada-lang.c (print_recreate_exception): Call
3096 print_recreate_thread.
3097 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3098
3a5c3e22
PA
30992011-07-25 Pedro Alves <pedro@codesourcery.com>
3100
3101 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3102 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3103 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3104 watchpoint_thread, watchpoint_triggered ...
3105 (struct watchpoint): ... to this new struct.
3106 (is_watchpoint): Declare.
3107 (install_breakpoint): Add new `internal' parameter.
3108 * breakpoint.c (is_watchpoint): Delete declaration.
3109 (set_breakpoint_condition): Handle watchpoints.
3110 (is_watchpoint): Make public.
3111 (watchpoint_in_thread_scope): Change parameter type to struct
3112 watchpoint.
3113 (watchpoint_del_at_next_stop): Change parameter type to struct
3114 watchpoint. Remove assertion. Adjust.
3115 (update_watchpoint): Ditto.
3116 (insert_breakpoints, breakpoint_init_inferior)
3117 (watchpoints_triggered, watchpoint_check)
3118 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3119 (bpstat_stop_status, print_one_breakpoint_location)
3120 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3121 to struct watchpoint as necessary, and adjust.
3122 (install_breakpoint): Add `internal' argument. If true, don't
3123 mention the new breakpoint. Use set_breakpoint_number.
3124 (create_fork_vfork_event_catchpoint)
3125 (create_syscall_event_catchpoint): Adjust.
3126 (dtor_watchpoint): New.
3127 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3128 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3129 (print_it_watchpoint, print_mention_watchpoint)
3130 (print_recreate_watchpoint, insert_masked_watchpoint)
3131 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3132 (print_one_detail_masked_watchpoint)
3133 (print_mention_masked_watchpoint)
3134 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3135 necessary, and adjust.
3136 (watch_command_1): Allocate and initialize a struct watchpoint
3137 instead of a struct breakpoint. Use install_breakpoint.
3138 (catch_exec_command_1): Adjust.
3139 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3140 fields.
3141 (delete_breakpoint, enable_breakpoint_disp)
3142 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3143 as necessary, and adjust.
3144 (initialize_breakpoint_ops): Install dtor_watchpoint as
3145 watchpoints' dtor method.
3146 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3147 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3148 to struct watchpoint as necessary, and adjust.
3149
2060206e
PA
31502011-07-25 Pedro Alves <pedro@codesourcery.com>
3151
3152 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3153 the the base class ops table.
3154 (catch_exception_breakpoint_ops)
3155 (catch_exception_unhandled_breakpoint_ops)
3156 (catch_assert_breakpoint_ops): Don't statically initialize.
3157 (initialize_ada_catchpoint_ops): New.
3158 (_initialize_ada_language): Call it.
3159 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3160 (bkpt_breakpoint_ops): Forward declare.
3161 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3162 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3163 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3164 (masked_watchpoint_breakpoint_ops)
3165 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3166 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3167 base class ops table.
3168 (null_re_set, null_check_status, null_works_in_software_mode)
3169 (null_resources_needed, null_print_one_detail): Delete.
3170 (bkpt_dtor): Rename to ...
3171 (base_breakpoint_dtor): ... this. Make static.
3172 (bkpt_allocate_location): Rename to ...
3173 (base_breakpoint_allocate_location): ... this. Make static.
3174 (base_breakpoint_re_set): New.
3175 (internal_error_pure_virtual_called): New.
3176 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3177 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3178 (base_breakpoint_works_in_software_mode)
3179 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3180 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3181 (base_breakpoint_print_recreate): New functions.
3182 (base_breakpoint_ops): New global.
3183 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3184 (bkpt_breakpoint_hit): Make static.
3185 (bkpt_check_status): Delete.
3186 (bkpt_resources_needed): Make static.
3187 (bkpt_works_in_software_mode): Delete.
3188 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3189 static.
3190 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3191 (momentary_breakpoint_ops): Don't statically initialize.
3192 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3193 Delete.
3194 (tracepoint_insert_location, tracepoint_remove_location)
3195 (tracepoint_check_status, tracepoint_works_in_software_mode)
3196 (tracepoint_print_it): Delete.
3197 (tracepoint_breakpoint_ops): Don't statically initialize.
3198 (initialize_breakpoint_ops): New.
3199 (_initialize_breakpoint): Call it.
3200 * breakpoint.h (null_re_set, null_works_in_software_mode)
3201 (null_resources_needed, null_check_status, null_print_one_detail):
3202 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3203 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3204 (bkpt_check_status, bkpt_resources_needed)
3205 (bkpt_works_in_software_mode, bkpt_print_it)
3206 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3207 Delete declarations.
3208 (initialize_breakpoint_ops): Declare.
3209
001c8c33
PA
32102011-07-25 Pedro Alves <pedro@codesourcery.com>
3211
3212 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3213 (momentary_bkpt_print_it): Simplify.
3214
06edf0c0
PA
32152011-07-25 Pedro Alves <pedro@codesourcery.com>
3216
3217 Split internal, momentary and user breakpoints breakpoint_ops
3218 tables.
3219
3220 * breakpoint.c (internal_breakpoint_ops)
3221 (momentary_breakpoint_ops): Forward declare.
3222 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3223 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3224 (create_overlay_event_breakpoint)
3225 (create_std_terminate_master_breakpoint)
3226 (create_exception_master_breakpoint): Create breakpoints with
3227 internal_breakpoint_ops vtable.
3228 (set_longjmp_breakpoint): Create momentary breakpoints with
3229 momentary_breakpoint_ops vtable, using
3230 momentary_breakpoint_from_master.
3231 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3232 (create_solib_event_breakpoint): Create breakpoints with
3233 internal_breakpoint_ops vtable.
3234 (set_momentary_breakpoint): Create breakpoints with
3235 momentary_breakpoint_ops vtable.
3236 (momentary_breakpoint_from_master): New, factored out from
3237 clone_momentary_breakpoint.
3238 (clone_momentary_breakpoint): Adjust.
3239 (watch_command_1): Create scope breakpoints with
3240 momentary_breakpoint_ops vtable.
3241 (bkpt_re_set): Remove handling of internal and momentary
3242 breakpoints.
3243 (bkpt_print_mention, bkpt_print_recreate): New.
3244 (bkpt_breakpoint_ops): Adjust.
3245 (internal_bkpt_re_set, internal_bkpt_check_status)
3246 (internal_bkpt_print_it, internal_bkpt_print_mention)
3247 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3248 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3249 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3250 (momentary_bkpt_print_recreate): New.
3251 (momentary_breakpoint_ops): New.
3252
348d480f
PA
32532011-07-25 Pedro Alves <pedro@codesourcery.com>
3254
3255 Implement most breakpoint_ops methods for all breakpoint types,
3256 and move the default handlings to the proper callbacks.
3257
3258 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3259 works_in_software_mode method.
3260 (insert_bp_location): Go through breakpoint_ops->insert_location
3261 for software and hardware watchpoints.
3262 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3263 breakpoint_ops.
3264 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3265 for software and hardware watchpoints.
3266 (print_it_typical): Delete.
3267 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3268 method.
3269 (watchpoint_check): Adjust comment.
3270 (bpstat_check_location): Simply always call the breakpoint's
3271 breakpoint_hit method.
3272 (bpstat_stop_status): Always call the breakpoint's check_status
3273 method. Remove special cases for watchpoints and internal event
3274 breakpoints from here (moved to the check_status implementations).
3275 (print_one_breakpoint_location): Assume b->ops is never NULL.
3276 Remove static tracepoint marker id printing from here (moved to
3277 the print_one_detail callback implementation of tracepoints).
3278 (init_bp_location): Assert OPS is never NULL.
3279 (allocate_bp_location): Always call the breakpoint's
3280 allocate_location method, and remove the default code from here.
3281 (free_bp_location): Always call the location's dtor method, and
3282 remove the default code from here.
3283 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3284 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3285 parameter. Pass it down.
3286 (set_raw_breakpoint): Ditto.
3287 (print_it_catch_fork): Adjust to take a bpstat as argument.
3288 (catch_fork_breakpoint_ops): Install methods.
3289 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3290 (catch_vfork_breakpoint_ops): Install methods.
3291 (dtor_catch_syscall): Call the base dtor.
3292 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3293 (catch_syscall_breakpoint_ops): Install methods.
3294 (dtor_catch_exec): Call the base dtor.
3295 (print_it_catch_exec): Adjust to take a bpstat as argument.
3296 (catch_exec_breakpoint_ops): Install methods.
3297 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3298 the breakpoint's resources_needed method, and remove the default
3299 code from here.
3300 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3301 breakpoint_ops.
3302 (clone_momentary_breakpoint): Clone the original's ops.
3303 (mention): Always call the breakpoint's print_mention method, and
3304 remove the default code from here.
3305 (create_breakpoint_sal): Adjust to pass the ops to
3306 set_raw_breakpoint rather than setting it manually.
3307 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3308 ops to set_raw_breakpoint_without_location rather than setting it
3309 manually.
3310 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3311 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3312 (ranged_breakpoint_ops): Install methods.
3313 (break_range_command): Adjust to pass the ops to
3314 set_raw_breakpoint rather than setting it manually.
3315 (re_set_watchpoint, breakpoint_hit_watchpoint)
3316 (check_status_watchpoint, resources_needed_watchpoint)
3317 (works_in_software_mode_watchpoint, print_it_watchpoint)
3318 (print_mention_watchpoint, print_recreate_watchpoint): New
3319 functions.
3320 (watchpoint_breakpoint_ops): Install new methods.
3321 (print_it_masked_watchpoint): New function.
3322 (masked_watchpoint_breakpoint_ops): Install new methods.
3323 (watch_command_1): Adjust to pass the right breakpoint_ops to
3324 set_raw_breakpoint_without_location rather than setting it
3325 manually later. Record the current pspace.
3326 (print_it_exception_catchpoint): Adjust to take a bpstat as
3327 argument.
3328 (gnu_v3_exception_catchpoint_ops): Install new methods.
3329 (say_where): New function.
3330 (null_re_set, null_check_status, null_works_in_software_mode)
3331 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3332 New functions.
3333 (bp_location_ops): New global.
3334 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3335 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3336 (bkpt_check_status, bkpt_resources_needed)
3337 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3338 (bkpt_print_recreate): New functions.
3339 (bkpt_breakpoint_ops): New global.
3340 (tracepoint_re_set, tracepoint_insert_location)
3341 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3342 (tracepoint_check_status, tracepoint_works_in_software_mode)
3343 (tracepoint_print_it, tracepoint_print_one_detail)
3344 (tracepoint_print_mention, tracepoint_print_recreate): New
3345 functions.
3346 (tracepoint_breakpoint_ops): New global.
3347 (delete_breakpoint): Always call the breakpoint's dtor method, and
3348 remove the default handling from here.
3349 (breakpoint_re_set_default): Make static.
3350 (breakpoint_re_set_one): Always call the breakpoints re_set
3351 method, and remove the default handling from here.
3352 (trace_command, ftrace_command, strace_command)
3353 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3354 to create_breakpoint.
3355 (save_breakpoints): Always call the breakpoint's print_recreate
3356 method, and remove the default handling from here.
3357
3358 * ada-lang.c (dtor_exception): Call the base dtor.
3359 (re_set_exception): Call the base method.
3360 (print_it_exception, print_it_catch_exception): Adjust to take a
3361 bpstat as argument.
3362 (catch_exception_breakpoint_ops): Install methods.
3363 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3364 argument.
3365 (catch_exception_unhandled_breakpoint_ops): Install methods.
3366 (print_it_catch_assert): Adjust to take a bpstat as argument.
3367 (catch_assert_breakpoint_ops): Install methods.
3368
3369 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3370 to take a bpstat as argument.
3371 (enum print_stop_action): Add describing comments to each enum
3372 value.
3373 (breakpoint_re_set_default): Delete declaration.
3374 (null_re_set, null_works_in_software_mode, null_resources_needed)
3375 (null_check_status, null_print_one_detail): Declare.
3376 (bkpt_breakpoint_ops): Declare.
3377 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3378 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3379 (bkpt_check_status, bkpt_resources_needed)
3380 (bkpt_works_in_software_mode, bkpt_print_it)
3381 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3382 Declare.
3383
3384 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3385 bkpt_breakpoint_ops.
3386 * python/py-breakpoint.c (bppy_init): Ditto.
3387
be8f8133
PW
33882011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3389
3390 * MAINTAINERS (Write After Approval): Add myself to the list.
3391
3807f613
PP
33922011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3393
3394 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3395
1ced966e
PA
33962011-07-22 Pedro Alves <pedro@codesourcery.com>
3397
3398 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3399 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3400 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3401 adjust.
3402 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3403 (struct i386_debug_reg_state): New.
3404 (i386_init_dregs): New.
3405 (dr_mirror): New.
3406 (i386_cleanup_dregs): Use i386_init_dregs.
3407 (i386_show_dr): Add state parameter and adjust.
3408 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3409 the inferior here.
3410 (i386_remove_aligned_watchpoint): Likewise.
3411 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3412 (i386_update_inferior_debug_regs): New.
3413 (i386_insert_watchpoint): Work on a local mirror of the debug
3414 registers, and only update the inferior on success.
3415 (i386_remove_watchpoint): Ditto.
3416 (i386_region_ok_for_watchpoint): Adjust.
3417 (i386_stopped_data_address): Adjust.
3418 (i386_insert_hw_breakpoint): Adjust.
3419 (i386_remove_hw_breakpoint): Adjust.
3420
3543a589
TT
34212011-07-22 Tom Tromey <tromey@redhat.com>
3422
3423 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3424 from amd64_pseudo_register_read. Change arguments. Call
3425 mark_value_bytes_unavailable when needed.
3426 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3427 set_gdbarch_pseudo_register_read.
3428 * sentinel-frame.c (sentinel_frame_prev_register): Use
3429 regcache_cooked_read_value.
3430 * regcache.h (regcache_cooked_read_value): Declare.
3431 * regcache.c (regcache_cooked_read_value): New function.
3432 (regcache_cooked_read): Call
3433 gdbarch_pseudo_register_read_value if available.
3434 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3435 (i386_pseudo_register_read): Remove.
3436 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3437 i386_pseudo_register_read. Change arguments. Call
3438 mark_value_bytes_unavailable when needed.
3439 (i386_pseudo_register_read_value): New function.
3440 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3441 not set_gdbarch_pseudo_register_read.
3442 * gdbarch.sh (pseudo_register_read_value): New method.
3443 * gdbarch.c, gdbarch.h: Rebuild.
3444 * findvar.c (value_from_register): Call get_frame_register_value.
3445
95298e72
PM
34462011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3447
3448 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3449 get_prefix.
3450 (display_gdb_prompt): Likewise.
3451 (change_annotation_level): Likewise.
3452 (push_prompt): Likewise.
3453 (pop_prompt): Likewise.
3454 (handle_stop_sig): Use get_prompt with a level.
3455 * top.c (command_loop): Use get_prompt with a level.
3456 (set_async_annotation_level): Use set_prompt with a level.
3457 (get_prefix): New function.
3458 (set_prefix): Ditto.
3459 (set_suffix): Ditto.
3460 (get_suffix): Ditto.
3461 (get_prompt): Accept a level argument.
3462 (set_prompt): Accept a level argument. Free old prompts. Set
3463 new_async_prompt if level is 0.
3464 (init_main): Use set_prompt with a level. Do not set
3465 new_async_prompt.
3466 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3467 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3468 Modify set_prompt, get_prompt to account for levels.
3469 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3470 level.
3471 * python/python.c (before_prompt_hook): Use set_prompt.
3472
d26e3629
KY
34732011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3474
3475 * defs.h: Add guard against inclusion in gdbserver.
3476 (struct ptid, ptid_t): Move to common/ptid.h.
3477 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3478 xsnprintf, internal_error): Move to common/common-utils.h.
3479 (nomem): Delete.
3480 * gdb_assert.h: Move into common/ sub-directory.
3481 * gdb_locale.h: Ditto.
3482 * gdb_dirent.h: Ditto.
3483 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3484 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3485 Move into common/ptid.h.
3486 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3487 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3488 Change nomem to malloc_failure.
3489 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3490 * utils.c (nomem): Rename to malloc_failure.
3491 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3492 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3493 (gdb_buildargv): Change nomem to malloc_failure.
3494 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3495 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3496 ptid_is_pid): Move into common/ptid.c.
3497 (initialize_infrun): Delete initialization of null_ptid and
3498 minus_one_ptid.
3499 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3500 linux_common_xfer_osdata.
3501 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3502 common/ptid.c and common/buffer.c.
3503 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3504 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3505 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3506 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3507 rules.
3508 * common/gdb_assert.h: New.
3509 * common/gdb_dirent.h: New.
3510 * common/gdb_locale.h: New.
3511 * common/buffer.c: New.
3512 * common/buffer.h: New.
3513 * common/ptid.c: New.
3514 * common/ptid.h: New.
3515 * common/xml-utils.c: New.
3516 * common/xml-utils.h: New.
3517 * common/common-utils.c: New.
3518 * common/common-utils.h: New.
3519 * common/linux-osdata.c: New.
3520 * common/linux-osdata.h: New.
3521 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3522 * config/arm/linux.mh (NATDEPFILES): Ditto.
3523 * config/i386/linux.mh (NATDEPFILES): Ditto.
3524 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3525 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3526 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3527 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3528 * config/mips/linux.mh (NATDEPFILES): Ditto.
3529 * config/pa/linux.mh (NATDEPFILES): Ditto.
3530 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3531 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3532 * config/s390/s390.mh (NATDEPFILES): Ditto.
3533 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3534 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3535 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3536
edc84990 35372011-07-21 Matt Rice <ratmice@gmail.com>
3538
3539 * NEWS: Add info macros and info definitions commands.
3540
3a7bf607
PM
35412011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3542
3543 * NEWS: Document Python prompt substitution hook.
3544
9b158ba0 35452011-07-18 Matt Rice <ratmice@gmail.com>
3546
3547 PR macros/12999
3548 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3549 * macrotab.c (foreach_macro): Ditto.
3550 (foreach_macro_in_scope): Ditto.
3551 * macrocmd.c (print_macro_callback): New function.
3552 (info_macro_command): Move some code to print_macro_definition.
3553 (print_macro_definition): New function.
3554 (print_one_macro): Add new arguments to callback.
3555 (info_definitions_command): New function.
3556 (info_macros_command): Ditto.
3557 (_initialize_macrocmd): Add info macros and info definitions commands.
3558 * symtab.c (add_macro_name): Add new arguments to callback.
3559
d17b6f81
PM
35602011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3561 Tom Tromey <tromey@redhat.com>
3562
3563 * top.c (set_prompt): Rewrite to free previous prompt, free
3564 asynch_new_prompt and set both on new prompts.
3565 * event-top.c (display_gdb_prompt): Add prompt substitution
3566 logic.
3567 * python/python.c (before_prompt_hook): New function.
3568
1364323a 35692011-07-20 Matt Rice <ratmice@gmail.com>
3570
3571 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3572 arguments to store_unsigned_integer.
3573
8b70b953
TT
35742011-07-20 Tom Tromey <tromey@redhat.com>
3575
6c83ed52
TT
3576 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3577 in some declaration-only cases.
3578
35792011-07-18 Tom Tromey <tromey@redhat.com>
3580
8b70b953
TT
3581 PR symtab/12984:
3582 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3583 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3584 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3585 <debug_type_section>: New field.
3586 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3587 (load_cu): Use appropriate section.
3588 (create_signatured_type_table_from_index): Add 'section'
3589 argument.
3590 (dwarf2_read_index): Only allow a single .debug_types section.
3591 (dw2_get_file_names): Use appropriate section.
3592 (read_type_comp_unit_head): Add 'section' argument.
3593 (create_debug_types_hash_table): Loop over all .debug_types
3594 sections.
3595 (init_cu_die_reader): Use appropriate section.
3596 (process_psymtab_comp_unit, load_partial_comp_unit)
3597 (load_full_comp_unit, read_die_and_children, find_partial_die)
3598 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3599 (lookup_signatured_type_at_offset): Add 'section' argument.
3600 (read_signatured_type_at_offset): Add 'sect' argument.
3601 (read_signatured_type): Use appropriate section.
3602 (set_die_type, get_die_type_at_offset): Update.
3603 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3604 VEC.
3605 (write_psymtabs_to_index): Don't allow index with more than one
3606 .debug_types section.
3607
918dd910
JK
36082011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3609
3610 Fix crash if referenced CU is aged out.
3611 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3612 xfree of block.data.
3613 (indirect_pieced_value): New variable back_to, use to for xfree of
3614 baton.data.
3615 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3616 block.data.
3617 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3618 (load_cu): New function from ...
3619 (dw2_do_instantiate_symtab): ... the code here ...
3620 (process_full_comp_unit): ... and here.
3621 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3622 retval.data.
3623
0e37a63c
JK
36242011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3625
3626 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3627 type.
3628
7e324e48
GB
36292011-07-19 Gary Benson <gbenson@redhat.com>
3630
3631 * infrun.c (struct execution_control_state): New member
3632 stop_func_filled_in.
3633 (clear_stop_func, fill_in_stop_func): New functions.
3634 (handle_inferior_event): Call clear_stop_func rather than
3635 manipulating the execution control state directly.
3636 Call fill_in_stop_func lazily as required rather than
3637 directly calling find_pc_partial_function in all cases.
3638
d48323d8
TT
36392011-07-18 Tom Tromey <tromey@redhat.com>
3640
3641 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3642 checking for variable-sized array.
3643
40591b7d
JCD
36442011-07-18 Jean-Charles Delay <delay@adacore.com>
3645
3646 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3647 of supported languages.
3648 * varobj.c: Add top definitions and basic implementation of the
3649 following callbacks: ada_number_of_children, ada_name_of_variable,
3650 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3651 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3652 (languages): Register Ada-specific callbacks.
3653 (variable_language): Add the Ada case in the language setter switch.
3654
2e424e08
JK
36552011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3656
3657 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3658
9e8b7a03
JK
36592011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3660
3661 Code cleanup.
3662 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3663 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3664 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3665 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3666 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3667 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3668 (struct dwarf_expr_context_funcs): New, move here methods from ...
3669 (struct dwarf_expr_context): ... here. New fields funcs.
3670 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3671 (dwarf_expr_ctx_funcs): New.
3672 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3673 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3674 (needs_frame_ctx_funcs): New.
3675 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3676
2b1260ab
FM
36772011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3678
3679 * MAINTAINERS (Write After Approval): Add myself to the list.
3680
8bd90839
FM
36812011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3682
3683 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3684 that CIE pointer of an FDE really points to a CIE .
3685
953b98d1
HZ
36862011-07-15 Hui Zhu <teawater@gmail.com>
3687
3688 * remote.c (remote_get_trace_status): Add comments.
3689
c8f2448a
JK
36902011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3691
3692 Code cleanup - constify struct lval_funcs.
3693 * dwarf2loc.c (pieced_value_funcs): Make it const.
3694 * infrun.c (siginfo_value_funcs): Likewise.
3695 * opencl-lang.c (opencl_value_funcs): Likewise.
3696 * valops.c (value_assign, value_ind): Make the funcs variable const.
3697 * value.c (struct value): Make location.computed.funcs target const.
3698 Rearrange the comments.
3699 (allocate_computed_value): Make the funcs parameter target const.
3700 (value_computed_funcs): Return the funcs target const.
3701 (value_free, value_copy, set_value_component_location): Make the funcs
3702 variable const.
3703 * value.h (allocate_computed_value): Make the funcs parameter target
3704 const.
3705 (value_computed_funcs): Return the funcs target const.
3706 * windows-tdep.c (tlb_value_funcs): Make it const.
3707
f652de6f
HZ
37082011-07-14 Hui Zhu <teawater@gmail.com>
3709
3710 * remote.c (remote_get_trace_status): Initialize p.
3711
67f41397
JK
37122011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3713
3714 Work around kgdb.
3715 * remote.c (remote_get_trace_status): New variable ex. Put
3716 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3717
d1b66e6d
TT
37182011-07-13 Tom Tromey <tromey@redhat.com>
3719
3720 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3721 value_from_contents for final conversion.
3722
1632a688
JK
37232011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3724
3725 Code cleanup.
3726 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3727 Indent prototypes so they do not get into tags.
3728
a7035dbb
JK
37292011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3730
3731 Code cleanup making also optimized out values lazy.
3732 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3733 allocate_optimized_out_value. Twice.
3734 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3735 * findvar.c (read_var_value): Likewise.
3736 * value.c (allocate_optimized_out_value): New function.
3737 * value.h (allocate_optimized_out_value): New declaration.
3738
d07ed419
JK
37392011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3740
3741 Fix occasional crash of CTRL-C during DWARF read in.
3742 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3743
86d31898
TT
37442011-07-11 Tom Tromey <tromey@redhat.com>
3745
3746 * regcache.c (struct regcache_descr): Fix typo.
3747 * i387-tdep.c (i387_supply_xsave): Fix typo.
3748
2ab95328
TT
37492011-07-11 Tom Tromey <tromey@redhat.com>
3750
3751 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3752 (read_file_scope, read_type_unit_scope): Use it.
3753
04ad99e6
JK
37542011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3755
3756 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3757 `int'.
3758
713389e0
PM
37592011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3760
3761 PR python/12438
3762 * python/python.c: Set gdbpy_should_print_stack default to off.
3763 (set_python): Deprecate maint set python print-stack to
3764 class_deprecate.
3765 (_initialize_python): Deprecate maint set/show python print-stack.
3766 Add new prefix command, python. Add new setting, print-backtrace.
3767 * NEWS: Document set python print-stack. Document default change.
3768
754eadd1
PM
37692011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3770
3771 * python/py-inferior.c (infpy_dealloc): New function.
3772 (inferior_to_inferior_object): Return a new object, or a
3773 new reference to the existing object.
3774 (find_thread_object): Cleanup references to inferior.
3775 (delete_thread_object): Ditto.
3776 * python/py-infthread.c (create_thread_object): Do not increment
3777 inferior reference count.
3778
5e44ecb3
TT
37792011-07-08 Tom Tromey <tromey@redhat.com>
3780
3781 * dwarf2loc.c (locexpr_regname): New function.
3782 (locexpr_describe_location_piece): Use it.
3783 (disassemble_dwarf_expression): Add per_cu argument. Use
3784 locexpr_regname.
3785 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3786 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3787 New cases.
3788 (locexpr_describe_location_1): Add per_cu argument.
3789 (locexpr_describe_location): Update.
3790 (loclist_describe_location): Update.
3791
e0e9434c
TT
37922011-07-08 Tom Tromey <tromey@redhat.com>
3793
3794 * dwarf2expr.c (execute_stack_op): Add QUIT.
3795
26afc0d7
HZ
37962011-07-07 Hui Zhu <teawater@gmail.com>
3797
3798 Revert:
3799 2011-07-06 Hui Zhu <teawater@gmail.com>
3800 * remote.c (remote_start_remote): Add TRY_CATCH for
3801 remote_get_trace_status.
3802 * tracepoint.c (disconnect_tracing): Ditto.
3803
a40a111f
AB
38042011-07-07 Andrew Burgess <aburgess@broadcom.com>
3805
3806 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3807 variables as signed, not unsigned.
3808
e2bd3b15
JB
38092011-07-06 Joel Brobecker <brobecker@adacore.com>
3810
3811 * jit.c (jit_inferior_init): Reformat forward declaration.
3812
e3d961fe 38132011-07-06 Matt Rice <ratmice@gmail.com>
3814
3815 * MAINTAINERS (Write After Approval): Add myself to the list.
3816
0f3428f0
HZ
38172011-07-06 Hui Zhu <teawater@gmail.com>
3818
3819 * remote.c (remote_start_remote): Add TRY_CATCH for
3820 remote_get_trace_status.
3821 * tracepoint.c (disconnect_tracing): Ditto.
3822
fc9f3a69
TT
38232011-07-05 Tom Tromey <tromey@redhat.com>
3824
3825 * symtab.c (operator_chars): Now static.
3826 * linespec.c (operator_chars): Don't declare.
3827
26e519b9
TJB
38282011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3829
3830 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3831
eb2a6f42
TT
38322011-07-05 Tom Tromey <tromey@redhat.com>
3833
3834 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3835 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3836 (TYPE_CPLUS_REALLY_JAVA): New macro.
3837 * dwarf2read.c (process_structure_scope): Set
3838 TYPE_CPLUS_REALLY_JAVA.
3839
21083d0f 38402011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3841
3842 * ada-lang.c: Fix typos.
3843 * amd64-tdep.c: Likewise.
3844 * breakpoint.c: Likewise.
3845 * cli/cli-decode.c: Likewise.
3846 * findcmd.c: Likewise.
3847 * inline-frame.c: Likewise.
3848 * mi/mi-main.c: Likewise.
3849 * minsyms.c: Likewise.
3850 * monitor.c: Likewise.
3851 * monitor.h: Likewise.
3852 * prologue-value.c: Likewise.
3853 * reverse.c: Likewise.
3854 * s390-tdep.c: Likewise.
3855
3b2a0cf2
JB
38562011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3857
3858 * jit.c (jit_inferior_init): Forward declare.
3859 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3860
efae1d92
JB
38612011-07-04 Joel Brobecker <brobecker@adacore.com>
3862
3863 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3864
6040a59d
JB
38652011-07-04 Tristan Gingold <gingold@adacore.com>
3866
3867 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3868 (tcb_fieldno): Add activation_link field.
3869 (get_known_tasks_addr): Moved and rewritten.
3870 (get_tcb_types_info): Set activation_link field.
3871 (read_known_tasks_array): Add parameter. Rewritten.
3872 (read_known_tasks_list): New function.
3873 (read_known_tasks): New function.
3874 (ada_build_task_list): Call read_known_tasks instead of
3875 read_known_tasks_array.
3876 * ravenscar-thread.c: Add first_task_name constant.
3877 (has_ravenscar_runtime): Check for task list too.
3878
cb741e45
JB
38792011-07-04 Tristan Gingold <gingold@adacore.com>
3880
3881 * ada-tasks.c: Renames fieldno to actb_fieldno.
3882 (ada_get_task_number): Indentation.
3883 (get_tcb_types_info): Remove all parameters. Write directly
3884 the globals.
3885 (ptid_from_atcb_common): Adjust.
3886 (read_atcb): Adjust.
3887
7475b06c
TJB
38882011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3889
3890 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3891
15230f37
TJB
38922011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3893
3894 * ui-out.c (ui_out_field_core_addr): Mention that the function
3895 description is in the header file.
3896 * ui-out.h (ui_out_field_core_addr): Document function.
3897
65743aba
TJB
38982011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3899
3900 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3901 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3902
c37a5aab
TJB
39032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3904
3905 * symtab.c (expand_line_sal): Remove empty line.
3906
59adf69e
TS
39072011-07-04 Thomas Schwinge <thomas@schwinge.name>
3908
3909 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3910 same way as ELFOSABI_NONE.
3911 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3912
e5dd4106
TJB
39132011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3914
3915 * breakpoint.c: Fix typos in comments.
3916 * linespec.c: Likewise.
3917 * symtab.c: Likewise.
3918
d40102a1
JB
39192011-07-04 Joel Brobecker <brobecker@adacore.com>
3920
3921 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3922 section in separate object files.
3923
2f741504
JK
39242011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3925
3926 Fix false GCC warning.
3927 * linespec.c (decode_line_1): Initialize values.
3928
418c7cf7
JK
39292011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3930
3931 * linespec.c (find_method): Accept the function type automatically only
3932 if it was specified with parameter types.
3933
3d50dd94
JK
39342011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3935
3936 Stop on first linespec terminator instead of eating what we can.
3937 * linespec.c (is_linespec_boundary): New function.
3938 (name_end): Remove function.
3939 (keep_name_info): New parameter on_boundary, replace the body.
3940 (decode_line_1): Provide the parameter to keep_name_info.
3941 (decode_compound): Likewise. Drop the trailing java return type
3942 handling. Twice.
3943
dcf9f4ab
JK
39442011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3945
3946 Fall back linespec to minimal symbols.
3947 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3948 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3949 (find_method, symbol_found): Change error to cplusplus_error.
3950
3f542ed1
JK
39512011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3952
bc68c4e5 3953 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 3954
900e11f9
JK
39552011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3956 Tom Tromey <tromey@redhat.com>
3957
3958 * dwarf2read.c (check_physname): New variable.
3959 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3960 (show_check_physname): New function.
3961 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3962
2301925d
JB
39632011-07-01 Joel Brobecker <brobecker@adacore.com>
3964
3965 * machoread.c (macho_symfile_read): Delete OBE comment.
3966
38947cca
JB
39672011-07-01 Joel Brobecker <brobecker@adacore.com>
3968
3969 * machoread.c (struct macho_oso_data): Delete.
3970 (current_oso): Delete.
3971 (macho_relocate_common_syms): New function, mostly extracted
3972 out of
3973 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3974 Remove code that sets and unset current_oso.
3975 (macho_symfile_relocate): Delete handling of common symbols,
3976 now moved to macho_relocate_common_syms.
3977
a7aa0d73
JB
39782011-07-01 Joel Brobecker <brobecker@adacore.com>
3979
3980 * darwin-nat.c (darwin_ptrace): Add documentation.
3981 Set errno to zero before calling ptrace. If ptrace returns
3982 -1 and errno is zero, then change then return zero.
3983 (darwin_kill_inferior): Issue a warning instead of triggering
3984 a failed assertion when the PT_KILL ptrace operations returned
3985 nonzero.
3986
5e9bc145
JB
39872011-07-01 Joel Brobecker <brobecker@adacore.com>
3988
3989 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3990 only when inf->private->no_ptrace.
3991
00eb2c4a
JB
39922011-07-01 Joel Brobecker <brobecker@adacore.com>
3993
3994 * ada-lang.c (print_it_exception): Print temporary catchpoints
3995 as "Temporary catchpoint".
3996 (print_mention_exception): Likewise.
3997
127c81bc
TT
39982011-07-01 Tom Tromey <tromey@redhat.com>
3999
4000 * jv-lang.c (java_language_defn): Use java_printchar,
4001 java_printstr.
4002 (java_get_encoding): New function.
4003 (java_emit_char): Use generic_emit_char.
4004 (java_printchar): New function.
4005 (java_printstr): Likewise.
4006
25552254
JB
40072011-07-01 Joel Brobecker <brobecker@adacore.com>
4008
4009 * ada-typeprint.c (print_record_type): If unable to decode
4010 the name of the parent type, use the encoded name.
4011
d2d43431
JB
40122011-07-01 Jean-Charles Delay <delay@adacore.com>
4013
4014 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4015 pointer to constrained packed array type output.
4016 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4017 packed array output.
4018
54ae186f
JB
40192011-07-01 Jean-Charles Delay <delay@adacore.com>
4020
4021 * ada-typeprint.c (print_array_type): removed if condition on show
4022 being negative for bounds printing.
4023
8f17729f
JB
40242011-07-01 Joel Brobecker <brobecker@adacore.com>
4025
4026 * ada-lang.c (ada_identical_enum_types_p): New function.
4027 (symbols_are_identical_enums): New function.
4028 (remove_extra_symbols): Do nothing if NSYMS < 2.
4029 Use symbols_are_identical_enums.
4030
f5aa6869
JB
40312011-07-01 Joel Brobecker <brobecker@adacore.com>
4032
4033 * ada-valprint.c (ada_value_print): Handle typedefs.
4034
8f465ea7
JB
40352011-07-01 Joel Brobecker <brobecker@adacore.com>
4036
4037 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4038
828292f2
JB
40392011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4040
4041 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4042 (decode_constrained_packed_array): Likewise.
4043 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4044
18920c42
JB
40452011-07-01 Joel Brobecker <brobecker@adacore.com>
4046
4047 * ada-exp.y (convert_char_literal): Handle typedef types.
4048
c90092fe
JB
40492011-07-01 Joel Brobecker <brobecker@adacore.com>
4050
4051 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4052
f748fb40
TT
40532011-06-30 Tom Tromey <tromey@redhat.com>
4054
4055 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4056 * valops.c (find_overload_match): Call do_cleanups on early exit
4057 path.
4058 * solib.c (solib_find): Call do_cleanups on early exit path.
4059
3bb47e8b
TT
40602011-06-30 Tom Tromey <tromey@redhat.com>
4061
4062 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4063 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4064 return paths. Defer final do_cleanups until last return.
4065 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4066 early return.
4067
4727bad3
TT
40682011-06-30 Tom Tromey <tromey@redhat.com>
4069
4070 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4071
bb361dbf
AB
40722011-06-30 Andrew Burgess <aburgess@broadcom.com>
4073
4074 * MAINTAINERS (Write After Approval): Add myself to the list.
4075
e0d00bc7
JK
40762011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4077
4078 Disable epilogue unwinders on recent GCCs.
4079 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4080 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4081 * dwarf2read.c (process_full_comp_unit): Initialize
4082 EPILOGUE_UNWIND_VALID.
4083 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4084 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4085 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4086
4632c0d0
JK
40872011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4088
4089 Code cleanup - reformatting.
4090 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4091 (producer_is_gcc_ge_4): ... here, change the return value.
4092 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4093 interpretation.
4094
32019081
JK
40952011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4096
4097 Fix non-only rename list for Fortran modules import.
4098 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4099 cp_add_using_directive caller.
4100 (cp_add_using_directive): New parameter excludes, describe it. New
4101 variables ix and param. Compare if also excludes match. Allocate NEW
4102 with variable size, initialize EXCLUDES there.
4103 (cp_lookup_symbol_imports): New variable excludep, test
4104 current->EXCLUDES with it.
4105 * cp-support.h: Include vec.h.
4106 (struct using_direct): New field excludes, describe it.
4107 (DEF_VEC_P (const_char_ptr)): New.
4108 (cp_add_using_directive): New parameter excludes.
4109 * defs.h (const_char_ptr): New typedef.
4110 * dwarf2read.c (read_import_statement): New variables child_die,
4111 excludes and cleanups, read in excludes.
4112 (read_namespace): Adjust the cp_add_using_directive caller.
4113
70c622a3
JK
41142011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4115
4116 Code cleanup.
4117 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4118 negative comparisons.
4119
39c4d40a
TT
41202011-06-29 André Pönitz <andre.poenitz@nokia.com>
4121
4122 * mi/mi-main.c (mi_cmd_list_features): Emit
4123 breakpoint-notifications.
4124
3b2b8fea
TT
41252011-06-29 Tom Tromey <tromey@redhat.com>
4126
4127 PR fortran/10036:
4128 * valprint.h (generic_emit_char, generic_printstr): Declare.
4129 * valprint.c (wchar_printable, append_string_as_wide)
4130 (print_wchar): Move from c-lang.c.
4131 (generic_emit_char): New function; mostly taken from c_emit_char.
4132 (generic_printstr): New function; mostly taken from c_printstr.
4133 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4134 represented as arrays.
4135 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4136 type.
4137 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4138 identically to TYPE_CODE_INT.
4139 * f-lang.c (f_get_encoding): New function.
4140 (f_emit_char): Use generic_emit_char.
4141 (f_printchar): Replace comment.
4142 (f_printstr): Use generic_printstr.
4143 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4144 "character" types specially.
4145 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4146 for Fortran.
4147 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4148 Move to valprint.c
4149 (c_emit_char): Call generic_emit_char.
4150 (c_printstr): Call generic_printstr.
4151
168e6d44
GB
41522011-06-29 Gary Benson <gbenson@redhat.com>
4153
4154 * breakpoint.c (bpstat_what): Removed duplicated case.
4155
1c033f8c
TT
41562011-06-28 Tom Tromey <tromey@redhat.com>
4157
4158 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4159
5fe41fbf
TT
41602011-06-27 Tom Tromey <tromey@redhat.com>
4161
4162 * valops.c (find_overload_match): Call do_cleanups before early
4163 return.
4164 * top.c (execute_command): Call do_cleanups before early return.
4165 (command_loop): Likewise.
4166 * stack.c (backtrace_command): Make a null cleanup early. Don't
4167 conditionally call do_cleanups.
4168 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4169 TRY_CATCH.
4170 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4171 so cleanups are always run.
4172 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4173 * findcmd.c (parse_find_args): Call do_cleanups on early return
4174 path.
4175 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4176 Don't conditionally call do_cleanups.
4177 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4178 later.
4179
e26bd57d
EB
41802011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4181
4182 * MAINTAINERS (Write After Approval): Use default email address.
4183
6c3097fc
JB
41842011-06-27 Joel Brobecker <brobecker@adacore.com>
4185
4186 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4187
369c397b
JB
41882011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4189
4190 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4191 saved_regs_mask and copied_regs_mask fields.
4192 (sparc_record_save_insn): New prototype.
4193 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4194 (sparc_record_save_insn): New function.
4195 (sparc_analyze_prologue): Add head comment. Recognize store insns
4196 of call-saved registers. Use OFFSET consistently. Recognize flat
4197 frames and cache their settings.
4198 (sparc32_skip_prologue): Handle flat frames.
4199 (sparc_frame_cache): Add frame_offset to the base address.
4200 (sparc32_frame_cache): Adjust to new frame description.
4201 (sparc32_frame_prev_register): Likewise.
4202 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4203 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4204 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4205 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4206 frame by calling sparc_record_save_insn.
4207 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4208 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4209 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4210
b315ab21
TG
42112011-06-27 Tristan Gingold <gingold@adacore.com>
4212
4213 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4214 field by map_addr and map_len.
4215 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4216 (munmap_section_buffer): Likewise.
4217
ddd49eee
TT
42182011-06-24 Tom Tromey <tromey@redhat.com>
4219
4220 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4221 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4222 * python/python.c (gdbpy_parameter): Make 'arg' const.
4223 (execute_gdb_command): Likewise.
4224 (gdbpy_decode_line): Likewise. Copy it.
4225 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4226 (gdbpy_write): Make 'arg' const.
4227 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4228 const.
4229 (gdbpy_lookup_type): Likewise.
4230 * python/py-prettyprint.c (print_children): Make 'name' const.
4231 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4232 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4233 Py_ssize_t.
4234 * python/py-function.c (fnpy_init): Make 'name' const.
4235 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4236 (gdbpy_string_to_argv): Make 'input' const.
4237 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4238 it.
4239 * gdbtypes.h (lookup_typename): Update.
4240 * gdbtypes.c (lookup_typename): Make 'name' const.
4241 (lookup_struct): Likewise.
4242 (lookup_union): Likewise.
4243 (lookup_enum): Likewise.
4244
5998129b
TT
42452011-06-24 Tom Tromey <tromey@redhat.com>
4246
4247 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4248 gdb_thread_db.h. Move all common/ entries to be together.
4249 (TAGS): Don't depend on DEPFILES.
4250
6e586cc5
YQ
42512011-06-23 Yao Qi <yao@codesourcery.com>
4252
4253 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4254 * remote.c (remote_start_remote): ... here.
4255 * monitor.c (monitor_open): ... here.
4256
86c3c1fc
AB
42572011-06-23 Andrew Burgess <aburgess@broadcom.com>
4258
4259 * gdbtypes.c (append_composite_type_field_aligned): Fix
4260 calculation of bit position based on alignment.
4261
28010a5d
PA
42622011-06-22 Pedro Alves <pedro@codesourcery.com>
4263
4264 * breakpoint.c (bpstat_stop_status): Call the check_status
4265 breakpoint_ops method.
4266 (print_one_breakpoint_location): Also print the condition for Ada
4267 exception catchpoints.
4268 (allocate_bp_location): New, factored out from
4269 allocate_bp_location.
4270 (allocate_bp_location): Adjust. Call the owner breakpoint's
4271 allocate_location method, if there is one.
4272 (free_bp_location): Call the locations's dtor method, if there is
4273 one.
4274 (init_raw_breakpoint_without_location): New breakpoint_ops
4275 parameter. Use it.
4276 (set_raw_breakpoint_without_location): Adjust.
4277 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4278 (set_raw_breakpoint): Adjust.
4279 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4280 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4281 re_set and check_status methods.
4282 (init_catchpoint): Don't memset, initialize thread, addr_string
4283 and enable_state. Pass the ops down to init_raw_breakpoint.
4284 (install_catchpoint): Rename to ...
4285 (install_breakpoint): ... this, and make extern.
4286 (create_fork_vfork_event_catchpoint): Adjust.
4287 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4288 re_set and check_status methods.
4289 (create_syscall_event_catchpoint): Adjust.
4290 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4291 (masked_watchpoint_breakpoint_ops): Install NULL
4292 allocate_location, re_set and check_status methods.
4293 (catch_exec_command_1): Adjust.
4294 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4295 re_set and check_status methods.
4296 (create_ada_exception_breakpoint): Rename to ...
4297 (init_ada_exception_breakpoint): ... this. Add a struct
4298 breakpoint parameter, and delete the exp_string, cond_string and
4299 cond parameters. Use init_raw_breakpoint, and don't install or
4300 mention the breakpoint yet. Don't clear breakpoint fields that
4301 init_raw_breakpoint already clears.
4302 (re_set_breakpoint): Delete, split into ...
4303 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4304 functions.
4305 (breakpoint_re_set_one): Call the breakpoint's
4306 breakpoint_ops->re_set implementation, if there's one. Adjust.
4307 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4308 (struct bp_location_ops): New type.
4309 (struct bp_location): New field `ops'.
4310 (struct breakpoint_ops): New `allocate_location', `re_set' and
4311 `check_status' fields. Make `breakpoint_hit''s description match
4312 reality.
4313 (init_bp_location): Declare.
4314 (breakpoint_re_set_default): Declare.
4315 (create_ada_exception_breakpoint): Rename to ...
4316 (init_ada_exception_breakpoint): ... this. Add a struct
4317 breakpoint parameter, and delete the exp_string, cond_string and
4318 cond parameters.
4319 (install_breakpoint): Declare.
4320 * ada-lang.c: Include exceptions.h.
4321 <Ada exceptions description>: Update.
4322 (struct ada_catchpoint_location): New type.
4323 (ada_catchpoint_location_dtor): New function.
4324 (ada_catchpoint_location_ops): New global.
4325 (ada_catchpoint): New type.
4326 (create_excep_cond_exprs): New function.
4327 (dtor_exception, allocate_location_exception, re_set_exception)
4328 (should_stop_exception, check_status_exception): New functions.
4329 (print_one_exception, print_mention_exception)
4330 (print_recreate_exception): Adjust.
4331 (dtor_catch_exception, allocate_location_catch_exception)
4332 (re_set_catch_exception, check_status_catch_exception): New
4333 functions.
4334 (catch_exception_breakpoint_ops): Install them.
4335 (dtor_catch_exception_unhandled)
4336 (allocate_location_catch_exception_unhandled)
4337 (re_set_catch_exception_unhandled)
4338 (check_status_catch_exception_unhandled): New functions.
4339 (catch_exception_unhandled_breakpoint_ops): Install them.
4340 (dtor_catch_assert, allocate_location_catch_assert)
4341 (re_set_catch_assert, check_status_catch_assert): New functions.
4342 (catch_assert_breakpoint_ops): Install them.
4343 (ada_exception_catchpoint_p): Delete.
4344 (catch_ada_exception_command_split)
4345 (ada_exception_catchpoint_cond_string): Rename exp_string
4346 parameter to excep_string. Adjust.
4347 (ada_parse_catchpoint_condition): Delete.
4348 (ada_exception_sal): Rename the exp_string parameter to
4349 excep_string. Delete the cond_string and cond parameters.
4350 Adjust.
4351 (ada_decode_exception_location): Rename the exp_string parameter
4352 to excep_string. Delete the cond_string and cond parameters.
4353 Adjust.
4354 (create_ada_exception_catchpoint): New function.
4355 (catch_ada_exception_command, ada_decode_assert_location)
4356 (catch_assert_command): Adjust.
4357 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4358
9ac4176b
PA
43592011-06-22 Pedro Alves <pedro@codesourcery.com>
4360
4361 * ada-lang.c: Include arch-utils.h.
4362 (ada_decode_exception_location): Make static.
4363 (catch_ada_exception_command): Moved here from breakpoint.c.
4364 (ada_decode_assert_location): Make static.
4365 (catch_assert_command): Moved here from breakpoint.c.
4366 (_initialize_ada_lang): Install the exception and assert
4367 catchpoint commands here.
4368 * ada-lang.h (ada_decode_exception_location)
4369 (ada_decode_assert_location): Delete declarations.
4370 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4371 breakpoint.h.
4372 (create_ada_exception_breakpoint): Make extern.
4373 (catch_ada_exception_command, catch_assert_command): Moved to
4374 ada-lang.c.
4375 (add_catch_command): Make extern.
4376 (_initilize_breakpoint): Don't install the exception and assert
4377 catchpoint commands here.
4378 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4379 breakpoint.c
4380 (add_catch_command, create_ada_exception_breakpoint): Declare.
4381
c56053d2
PA
43822011-06-22 Pedro Alves <pedro@codesourcery.com>
4383
4384 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4385 the breakpoint to the breakpoint chain here.
4386 (set_raw_breakpoint_without_location): Add the breakpoint to the
4387 breakpoint chain here.
4388 (init_raw_breakpoint): Adjust comments.
4389 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4390 here.
4391 (init_catchpoint): Don't set the catchpoint's breakpoint number
4392 here.
4393 (install_catchpoint): New function.
4394 (create_fork_vfork_event_catchpoint)
4395 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4396 use install_catchpoint.
4397
d2f3fc74
PA
43982011-06-22 Pedro Alves <pedro@codesourcery.com>
4399
4400 * breakpoint.c (create_catchpoint_without_mention)
4401 (create_catchpoint): Delete.
4402
b4d90040
PA
44032011-06-22 Pedro Alves <pedro@codesourcery.com>
4404
4405 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4406 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4407 reference to exec_pathname.
4408 (struct exec_catchpoint): New type.
4409 (dtor_catch_exec): New function.
4410 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4411 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4412 (catch_exec_command_1): Adjust to use init_catchpoint.
4413 (delete_breakpoint): Remove reference to exec_pathname.
4414
be5c67c1
PA
44152011-06-22 Pedro Alves <pedro@codesourcery.com>
4416
4417 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4418 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4419 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4420 reference to syscalls_to_be_caught.
4421 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4422 NULL `dtor'.
4423 (struct syscall_catchpoint): New type.
4424 (dtor_catch_syscall): New function.
4425 (insert_catch_syscall, remove_catch_syscall)
4426 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4427 (print_recreate_catch_syscall): Adjust.
4428 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4429 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4430 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4431 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4432 (masked_watchpoint_breakpoint_ops)
4433 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4434 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4435 there is one. Remove references to syscalls_to_be_caught.
4436 (catching_syscall_number): Adjust.
4437 * ada-lang.c (catch_exception_breakpoint_ops)
4438 (catch_exception_unhandled_breakpoint_ops)
4439 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4440
e29a4733
PA
44412011-06-22 Pedro Alves <pedro@codesourcery.com>
4442
4443 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4444 field.
4445 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4446 reference to forked_inferior_pid.
4447 (struct fork_catchpoint): New type.
4448 (breakpoint_hit_catch_fork, print_it_catch_fork)
4449 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4450 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4451 (create_fork_vfork_event_catchpoint): Adjust to use
4452 init_catchpoint.
4453
346774a9
PA
44542011-06-22 Pedro Alves <pedro@codesourcery.com>
4455
4456 * breakpoint.c (add_to_breakpoint_chain)
4457 (init_raw_breakpoint_without_location): New functions, factored
4458 out from ...
4459 (set_raw_breakpoint_without_location): ... this one.
4460 (init_raw_breakpoint): New function, factored out from
4461 set_raw_breakpoint and adjusted to use
4462 init_raw_breakpoint_without_location.
4463 (set_raw_breakpoint): Adjust.
4464 (init_catchpoint): New function, factored out from
4465 create_catchpoint_without_mention and adjusted to use
4466 init_raw_breakpoint.
4467 (create_catchpoint_without_mention): Adjust.
4468
c38c4bc5
TT
44692011-06-22 Tom Tromey <tromey@redhat.com>
4470
4471 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4472 argument of 0 specially.
4473
b138ce37
YQ
44742011-06-22 Yao Qi <yao@codesourcery.com>
4475
4476 * infrun.c (handle_inferior_event): Remove write-only local variable
4477 `sw_single_step_trap_p'.
4478
03de6823
TT
44792011-06-20 Tom Tromey <tromey@redhat.com>
4480
4481 * symtab.c (lookup_language_this): End loop if block is NULL.
4482
66a17cb6
TT
44832011-06-17 Tom Tromey <tromey@redhat.com>
4484
4485 * valops.c (value_of_this): Use lookup_language_this.
4486 * symtab.h (lookup_language_this): Declare.
4487 * symtab.c (lookup_language_this): New function.
4488 (lookup_symbol_aux): Use lookup_language_this.
4489 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4490
7518bff5
TT
44912011-06-17 Tom Tromey <tromey@redhat.com>
4492
4493 * value.h (value_of_this): Update.
4494 (value_of_local): Remove.
4495 * valops.c (value_of_this): Rename from value_of_local. Change
4496 parameters.
4497 * p-exp.y (exp): Update.
4498 (variable): Likewise.
4499 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4500
aee28ec6
TT
45012011-06-17 Tom Tromey <tromey@redhat.com>
4502
4503 * valops.c (value_of_local): Complain if NAME is NULL.
4504 * std-operator.def (OP_OBJC_SELF): Remove.
4505 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4506 * objc-exp.y (name_not_typename): Use OP_THIS.
4507 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4508 name for "this".
4509 <OP_OBJC_SELF>: Remove.
4510 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4511
eed8f803
TG
45122011-06-16 Tristan Gingold <gingold@adacore.com>
4513
4514 * python/py-events.h (gdb_py_events): Make it extern.
4515 * python/py-evtregistry.c (gdb_py_events): Declare.
4516
864ac8a7
HZ
45172011-06-16 Hui Zhu <teawater@gmail.com>
4518
4519 * remote.c (remote_trace_set_readonly_regions): Add check for
4520 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4521 output warning.
4522
ef7e8358
UW
45232011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4524
4525 * arm-linux-tdep.c: Include "auxv.h".
4526 (AT_HWCAP): Define.
4527 (ARM_LINUX_SIZEOF_VFP): Define.
4528 (arm_linux_supply_vfp): New function.
4529 (arm_linux_collect_vfp): Likewise.
4530 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4531 (arm_linux_fpa_regset_sections): New variable.
4532 (arm_linux_vfp_regset_sections): Likewise.
4533 (arm_linux_core_read_description): New function.
4534 (arm_linux_init_abi): Install arm_linux_core_read_description and
4535 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4536 appropriate for the architecture.
4537 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4538 (tdesc_arm_with_m): Declare.
4539 (tdesc_arm_with_iwmmxt): Likewise.
4540 (tdesc_arm_with_vfpv2): Likewise.
4541 (tdesc_arm_with_vfpv3): Likewise.
4542 (tdesc_arm_with_neon): Likewise.
4543 * arm-linux-nat.c: Move features/*.c includes ...
4544 * arm-tdep.c: ... here.
4545 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4546 target description data structures ...
4547 * arm-tdep.c (_initialize_arm_tdep): ... here.
4548 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4549 HWCAP_VFPv3D16): Move definitions ...
4550 * arm-linux-tdep.h: ... here.
4551
c2fa21f1
HZ
45522011-06-15 Hui Zhu <teawater@gmail.com>
4553
4554 * remote.c (remote_trace_set_readonly_regions): Add a check for
4555 target_buf_size.
4556
dd707e8e
TT
45572011-06-14 Tom Tromey <tromey@redhat.com>
4558
4559 * coffread.c (coffread_objfile): Rename from current_objfile.
4560 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4561 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4562
86cc0029
TT
45632011-06-14 Tom Tromey <tromey@redhat.com>
4564
4565 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4566 (class_symtab): Remove.
4567 (jv_dynamics_progspace_key): New global.
4568 (jv_per_objfile_free): Reset program space data. Update assert.
4569 Don't clear globals.
4570 (get_dynamics_objfile): Use and set program space data.
4571 (get_java_class_symtab): Use get_dynamics_objfile.
4572 (add_class_symbol): Likewise.
4573 (java_link_class_type): Likewise.
4574 (java_object_type, jv_clear_object_type, set_java_object_type):
4575 Remove.
4576 (get_java_object_type): Update. Don't cache result.
4577 (is_object_type): Don't call set_java_object_type.
4578 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4579 initialize jv_dynamics_progspace_key.
4580
91a81f69
TT
45812011-06-14 Tom Tromey <tromey@redhat.com>
4582
4583 * symtab.h (current_objfile): Don't declare.
4584 * objfiles.h (current_objfile): Don't declare.
4585 * objfiles.c (current_objfile): Remove.
4586 * mdebugread.c (current_objfile): New file-scope global.
4587 * dbxread.c (current_objfile): New file-scope global.
4588 * coffread.c (current_objfile): New file-scope global.
4589
dc7eb48e
PA
45902011-06-13 Pedro Alves <pedro@codesourcery.com>
4591
4592 * top.h (line): Rename to ...
4593 (saved_command_line): ... this.
4594 (linesize): Rename to ...
4595 (saved_command_line_size): ... this.
4596 * top.c (line): Rename to ...
4597 (saved_command_line): ... this.
4598 (linesize): Rename to ...
4599 (saved_command_line_size): ... this.
4600 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4601 * event-top.c (command_line_handler): Adjust.
4602 * main.c (captured_main): Adjust.
4603
0d6c2135
MK
46042011-06-12 Mark Kettenis <kettenis@gnu.org>
4605
4606 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4607 get_frame_func instead of get_frame_pc to determine the code
4608 address used to construct the frame ID.
4609 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4610 (i386_epilogue_frame_this_id): Likewise.
4611 (i386_epilogue_frame_prev_register): New function.
4612 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4613 (i386_stack_tramp_frame_sniffer): Fix coding style.
4614 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4615 (i386_gdbarch_init): Fix comments.
4616
8bbdd3f4
MK
46172011-06-12 Mark Kettenis <kettenis@gnu.org>
4618
4619 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4620 instruction when walking back through the instruction stream.
4621
533a737e
JK
46222011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4623
4624 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4625 fullname parameters order.
4626
44b13c5a
JK
46272011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4628
4629 Code cleanup.
4630 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4631 for fun.
4632 * psymtab.c (map_symbol_filenames_psymtab)
4633 (map_partial_symbol_filenames): Likewise.
4634 * psymtab.h: Include symfile.h.
4635 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4636 * symfile.h (symbol_filename_ftype): New.
4637 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4638 map_symbol_filenames, clarify more the naming in comment.
4639
0b5574da
DE
46402011-06-07 Doug Evans <dje@google.com>
4641
4642 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4643 Look for ../../gdb, for fullname.exp.
0b5574da 4644
5be4dfca
JK
46452011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4646 Pedro Alves <pedro@codesourcery.com>
4647
4648 * cli/cli-cmds.c (shell_escape): Use waitpid.
4649 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4650
316a8b21
TG
46512011-06-07 Tristan Gingold <gingold@adacore.com>
4652
4653 * xcoffread.c (dwarf2_xcoff_names): New variable.
4654 (aix_process_linenos): Add a guard.
4655 (xcoff_symfile_finish): Free dwarf2.
4656 (xcoff_initial_scan): Add dwarf2 support.
4657
3dd5b83d
PA
46582011-06-06 Pedro Alves <pedro@codesourcery.com>
4659
4660 * infcall.c (run_inferior_call): Don't mask async. Instead force
4661 a synchronous wait, if the target can async.
4662
4663 * target.h (struct target_ops): Delete to_async_mask.
4664 (target_async_mask): Delete.
4665 * target.c (update_current_target): Delete references to to_async_mask.
4666 * linux-nat.c (linux_nat_async_mask_value): Delete.
4667 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4668 to linux_nat_async_mask_value.
4669 (linux_nat_async_mask): Delete.
4670 (linux_nat_async, linux_nat_close): Remove references to
4671 linux_nat_async_mask_value.
4672 * record.c (record_async_mask_value): Delete.
4673 (record_async): Remove references to record_async_mask_value.
4674 (record_async_mask): Delete.
4675 (record_can_async_p, record_is_async_p): Remove references to
4676 record_async_mask_value.
4677 (init_record_ops, init_record_core_ops): Remove references to
4678 record_async_mask.
4679 * remote.c (remote_async_mask_value): Delete.
4680 (init_remote_ops): Remove reference to remote_async_mask.
4681 (remote_can_async_p, remote_is_async_p): Remove references to
4682 remote_async_mask_value.
4683 (remote_async): Remove references to remote_async_mask_value.
4684 (remote_async_mask): Delete.
4685
4686 * infrun.c (fetch_inferior_event): Don't claim registers changed
4687 if the current thread is already not executing.
4688
64b9b334
JB
46892011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4690
4691 From Stephen Kitt <steve@sk2.org>
4692 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4693 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4694
325663dc
JB
46952011-06-03 Joel Brobecker <brobecker@adacore.com>
4696
4697 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4698 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4699
8cf64490
TT
47002011-06-03 Tom Tromey <tromey@redhat.com>
4701
4702 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4703 code fields.
4704 * python/py-exitedevent.c (create_exited_event_object): Change
4705 type of 'exit_code'. Optionally add exit_code attribute.
4706 (emit_exited_event): Change type of 'exit_code'.
4707 * python/py-event.h (emit_exited_event): Update.
4708 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4709 * infrun.c (handle_inferior_event): Set exit code fields on
4710 inferior.
4711 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4712 fields.
4713 * inferior.c (exit_inferior_1): Initialize new fields.
4714
8ddd9a20
TT
47152011-06-03 Tom Tromey <tromey@redhat.com>
4716
4717 * dwarf2expr.c (get_signed_type): New function.
4718 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4719
8dfd1e6d
KS
47202011-06-02 Keith Seitz <keiths@redhat.com>
4721
4722 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4723
65fdb766
PA
47242011-06-02 Pedro Alves <pedro@codesourcery.com>
4725
4726 * top.h (simplified_command_loop): Delete declaration.
4727
f4b8c29b
MF
47282011-06-01 Mike Frysinger <vapier@gentoo.org>
4729
4730 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4731 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4732
1706c199
YQ
47332011-06-01 Yao Qi <yao@codesourcery.com>
4734
4735 * objfiles.h (obj_section_addr): Update reference to objfile from
4736 `abfd' to `obfd'.
4737 (obj_section_endaddr): Likewise.
4738
d19cd713 47392011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4740
4741 * MAINTAINERS: Update my email address and affiliation. Also
4742 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4743
e8eb7bc5
KS
47442010-05-31 Keith Seitz <keiths@redhat.com>
4745
4746 PR c++/12750
4747 * linespec.c (get_search_block): New function.
4748 (find_methods): Add FILE_SYMTATB parameter and use it and
4749 get_search_block to pass an appropriate block to
4750 lookup_symbol_in_namespace.
4751 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4752 Check if *ARGPTR starts with a filename first.
4753 If it does, call locate_first_half again to locate the next
4754 "first half" of the linespec.
4755 Pass FILE_SYMTATB to decode_objc and decode_compound.
4756 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4757 (locate_first_half): Stop on the first colon seen.
4758 (decode_compound): Add FILE_SYMTAB parameter.
4759 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4760 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4761 get_search_block with lookup_symbol.
4762 (find_method): Add FILE_SYMTAB parameter and pass it to
4763 find_methods.
4764 (decode_objc): Use get_search_block.
4765
2b1dbab0
KS
47662010-05-31 Keith Seitz <keiths@redhat.com>
4767
4768 PR symtab/12704
4769 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4770 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4771 and CP_ANONYMOUS_NAMESPACE_LEN.
4772 (cp_is_anonymous): Likewise.
4773 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4774 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4775 * dwarf2read.c (namespace_name): Likewise.
4776 (fixup_partial_die): Likewise.
4777 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4778 seen in the input, keep it.
4779
6d549500
PA
47802011-05-30 Pedro Alves <pedro@codesourcery.com>
4781
4782 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4783 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4784 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4785 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4786 * remote.c (_initialize_remote): Register
4787 async_remote_interrupt_twice directly as
4788 sigint_remote_twice_token event.
4789
395bff70
PA
47902011-05-30 Pedro Alves <pedro@codesourcery.com>
4791
4792 * target.h (enum inferior_event_type): Delete INF_ERROR.
4793 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4794
97224164
PA
47952011-05-30 Pedro Alves <pedro@codesourcery.com>
4796
4797 * interps.c (interp_set): Don't cancel continuations.
4798
07e78767
JK
47992011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4800
4801 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4802
fa4cd53f
PA
48032011-05-30 Pedro Alves <pedro@codesourcery.com>
4804
4805 * continuations.h (continuation_ftype): Add `err' parameter.
4806 Document parameters.
4807 (do_all_continuations, do_all_continuations_thread)
4808 (do_all_intermediate_continuations)
4809 (do_all_intermediate_continuations_thread)
4810 (do_all_inferior_continuations): Add `err' parameter.
4811 * continuations.c (do_my_continuations_1, do_my_continuations)
4812 (do_all_inferior_continuations, do_all_continuations_ptid)
4813 (do_all_continuations_thread_callback)
4814 (do_all_continuations_thread, do_all_continuations)
4815 (do_all_intermediate_continuations_thread_callback)
4816 (do_all_intermediate_continuations_thread)
4817 (do_all_intermediate_continuations): Add `err' parameter, and pass
4818 it down all the way to the continuations proper.
4819 * inf-loop.c (inferior_event_handler): If fetching an inferior
4820 event throws an error, don't pop the target, and still call the
4821 continuations, but with `err' set. Adjust all other continuation
4822 calls.
4823 * breakpoint.c (until_break_command_continuation): Add `err'
4824 parameter.
4825 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4826 issue another step if `err' is set.
4827 (struct until_next_continuation_args): New.
4828 (until_next_continuation): Add `err' parameter. Adjust.
4829 (until_next_command): Adjust.
4830 (struct finish_command_continuation_args): Add `thread' field.
4831 (finish_command_continuation): Add `err' parameter. Handle it.
4832 (finish_forward): Adjust.
4833 (attach_command_continuation): Add `err' parameter. Handle it.
4834 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4835 cancel the continuations.
4836 * interps.c (interp_set): Adjust to cancel the continuations.
4837 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4838 continuations rather than discarding.
4839 (free_thread): Don't clear thread inferior resources here.
4840 (delete_thread_1): Do it here instead. And do it before removing
4841 the thread from the threads list. Tag the thread as exited before
4842 clearing thread inferior resources.
4843
c2949be0
JB
48442011-05-30 Joel Brobecker <brobecker@adacore.com>
4845
4846 * infcall.c (call_function_by_hand): Rephrase error message.
4847
619cebe8
PA
48482011-05-27 Pedro Alves <pedro@codesourcery.com>
4849
4850 * defs.h (struct thread_info, struct inferior): Delete forward
4851 declarations.
4852 * breakpoint.h (struct thread_info): New forward declaration.
4853 * observer.sh (struct inferior): New forward declaration.
4854 * python/python-internal.h (struct inferior): New forward
4855 declaration.
4856
be34f849
PA
48572011-05-27 Pedro Alves <pedro@codesourcery.com>
4858
4859 * defs.h (struct continuation, continuation_ftype)
4860 (continuation_free_arg_ftype, add_continuation)
4861 (do_all_continuations, do_all_continuations_thread)
4862 (discard_all_continuations, discard_all_continuations_thread)
4863 (add_intermediate_continuation, do_all_intermediate_continuations)
4864 (do_all_intermediate_continuations_thread)
4865 (discard_all_intermediate_continuations)
4866 (discard_all_intermediate_continuations_thread)
4867 (add_inferior_continuation, do_all_inferior_continuations)
4868 (discard_all_inferior_continuations): Move to ...
4869 * continuations.h: ... this new file.
4870 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4871 infcmd.c, inferior.c, infrun.c, interps.c: Include
4872 continuations.h.
4873
432b4d03
JK
48742011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4875 Doug Evans <dje@google.com>
4876
4877 Fix PR 10970, PR 12702.
4878 * linux-nat.c (linux_lwp_is_zombie): New function.
4879 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4880 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4881
b0f260d6
PA
48822011-05-27 Pedro Alves <pedro@codesourcery.com>
4883
4884 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4885 typedefs.
4886 (add_continuation, add_intermediate_continuation)
4887 (add_inferior_continuation): Use them.
4888 * continuations.c (struct continuation): Use them.
4889 (make_continuation_ftype): Delete.
4890 (make_continuation, add_inferior_continuation, add_continuation)
4891 (add_intermediate_continuation): Use continuation_ftype and
4892 continuation_free_arg_ftype. Rename parameters to shorter names.
4893
af1e9a32
PA
48942011-05-27 Pedro Alves <pedro@codesourcery.com>
4895
4896 * continuations.c (make_continuation): Make it return void.
4897 (do_my_continuations): Rename to ...
4898 (do_my_continuations_1): ... this. Remove old_chain parameter and
4899 adjust.
4900 (do_my_continuations): New.
4901 (discard_my_continuations): Rename to ...
4902 (discard_my_continuations_1): ... this. Remove old_chain
4903 parameter and adjust.
4904 (discard_my_continuations): New.
4905 (add_inferior_continuation): Simplify.
4906 (do_all_inferior_continuations): Reimplement on top
4907 do_my_continuations.
4908 (discard_all_inferior_continuations): Simplify.
4909 (add_continuation): Simplify.
4910 (do_all_continuations_ptid): Simplify.
4911 (discard_all_continuations_thread_callback): Simplify.
4912 (add_intermediate_continuation): Simplify.
4913 (discard_all_intermediate_continuations_thread_callback):
4914 Simplify.
4915
50c0c017
PA
49162011-05-27 Pedro Alves <pedro@codesourcery.com>
4917
4918 * utils.c (struct continuation, add_continuation)
4919 (add_inferior_continuation)
4920 (do_all_inferior_continuations, discard_all_inferior_continuations)
4921 (restore_thread_cleanup, do_all_continuations_ptid)
4922 (do_all_continuations_thread_callback)
4923 (do_all_continuations_thread, do_all_continuations)
4924 (discard_all_continuations_thread_callback)
4925 (discard_all_continuations_thread, discard_all_continuations)
4926 (add_intermediate_continuation)
4927 (do_all_intermediate_continuations_thread_callback)
4928 (do_all_intermediate_continuations_thread)
4929 (do_all_intermediate_continuations)
4930 (discard_all_intermediate_continuations_thread_callback)
4931 (discard_all_intermediate_continuations_thread)
4932 (discard_all_intermediate_continuations): Move to ...
4933 * continuations.c: ... this new file, and adjust to no longer
4934 implement continuations on top of cleanups.
4935 * Makefile.in (SFILES): Add continuations.c.
4936 (COMMON_OBS): Add continuations.o.
4937
d8b34453
PA
49382011-05-26 Pedro Alves <pedro@codesourcery.com>
4939
4940 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4941 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4942 Internal error on invalid values.
4943 * reverse.c: Don't handle EXEC_ERROR.
4944 * mi/mi-main.c: Don't handle EXEC_ERROR.
4945
32231432
PA
49462011-05-26 Pedro Alves <pedro@codesourcery.com>
4947
4948 * record.c: Include event-loop.h, inf-loop.h.
4949 (record_beneath_to_async): New global.
4950 (tmp_to_async): New global.
4951 (record_async_inferior_event_token): New global.
4952 (record_open_1): Don't error out if async is enabled.
4953 (record_open): Handle to_async. Create an async event source in
4954 the event loop.
4955 (record_close): Delete the async event source.
4956 (record_resumed): New global.
4957 (record_execution_dir): New global.
4958 (record_resume, record_core_resume): Set them. Register the
4959 target on the event loop.
4960 (record_wait): Rename to ...
4961 (record_wait_1): ... this. Add more debug output. Handle
4962 TARGET_WNOHANG, and the target beneath returning
4963 TARGET_WAITKIND_IGNORE.
4964 (record_wait): Reimplement on top of record_wait_1.
4965 (record_async_mask_value): New global.
4966 (record_async, record_async_mask, record_can_async_p)
4967 (record_is_async_p, record_execution_direction): New functions.
4968 (init_record_ops, init_record_core_ops): Install new methods.
4969 * infrun.c (fetch_inferior_event): Temporarily switch the global
4970 execution direction to the direction the target was going.
4971 (execution_direction): Change type to int.
4972 * target.c (default_execution_direction): New function.
4973 (update_current_target): Inherit and de_fault
4974 to_execution_direction.
4975 * target.h (struct target_ops) <to_execution_direction>: New
4976 field.
4977 (target_execution_direction): New macro.
4978 * inferior.h (execution_direction): Change type to int.
4979
949dc678
PA
49802011-05-26 Pedro Alves <pedro@codesourcery.com>
4981
4982 * infcall.c (call_function_by_hand): Don't allow calling functions
4983 in reverse execution mode.
4984
c13bd2b5
PA
49852011-05-26 Pedro Alves <pedro@codesourcery.com>
4986
4987 * infcmd.c (finish_command): Allow async finish in reverse.
4988
6938fd34
YQ
49892011-05-26 Yao Qi <yao@codesourcery.com>
4990
4991 * gdb_thread_db.h: Delete. Move to ...
4992 * common/gdb_thread_db.h: ... here.
4993
9da8c2a0
PA
49942011-05-26 Pedro Alves <pedro@codesourcery.com>
4995
4996 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4997 function's entry point instead of a manually managed momentary
4998 breakpoint, and only ever issue one proceed call.
4999 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5000 doing a reverse-finish, switch to stepi mode, to do another step.
5001 (insert_step_resume_breakpoint_at_sal): Make public.
5002 (normal_stop): No need to save function value return registers if
5003 going reverse.
5004 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5005
2c03e5be
PA
50062011-05-26 Pedro Alves <pedro@codesourcery.com>
5007
5008 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5009 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5010 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5011 at the end.
5012 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5013 step-resume breakpoints.
5014 (print_it_typical): Handle bp_hp_step_resume.
5015 (bpstat_what): Ditto.
5016 (bptype_string): Ditto.
5017 (print_one_breakpoint_location): Ditto.
5018 (allocate_bp_location): Ditto.
5019 (mention): Ditto.
5020 (breakpoint_re_set_one): Ditto.
5021 * infrun.c (handle_inferior_event): Adjust. Split
5022 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5023 BPSTAT_WHAT_HP_STEP_RESUME.
5024 (insert_step_resume_breakpoint_at_sal): Rename to ...
5025 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5026 parameter. Handle it.
5027 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5028 insert_step_resume_breakpoint_at_sal_1.
5029 (insert_step_resume_breakpoint_at_frame): Rename to ...
5030 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5031 set a high-priority step-resume breakpoint.
5032 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5033 (insert_step_resume_breakpoint_at_caller): Ditto.
5034
51be5b68
PA
50352011-05-26 Pedro Alves <pedro@codesourcery.com>
5036
5037 * breakpoint.c (iterate_over_related_breakpoints): New.
5038 (do_map_delete_breakpoint): New.
5039 (delete_command): Pass do_map_delete_breakpoint to
5040 map_breakpoint_numbers.
5041 (do_disable_breakpoint): New.
5042 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5043 breakpoints.
5044 (do_enable_breakpoint): Rename to ...
5045 (enable_breakpoint_disp): ... this.
5046 (enable_breakpoint): Adjust.
5047 (do_enable_breakpoint): New.
5048 (enable_once_breakpoint): Delete.
5049 (do_map_enable_breakpoint): New.
5050 (do_map_enable_once_breakpoint): New.
5051 (enable_once_command, enable_delete_command)
5052 (delete_trace_command): Iterate over the breakpoint's related
5053 breakpoints.
5054
4a1be8d2
PA
50552011-05-26 Pedro Alves <pedro@codesourcery.com>
5056
5057 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5058 for ALPHA_ZERO_REGNUM.
5059 (alpha_supply_int_regs): Explicitly supply zero as the value for
5060 ALPHA_ZERO_REGNUM in the register cache.
5061 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5062
59d70315
YQ
50632011-05-26 Yao Qi <yao@codesourcery.com>
5064
5065 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5066
251d32d9
TG
50672011-05-26 Tristan Gingold <gingold@adacore.com>
5068
5069 * symfile.h (struct dwarf2_section_names): New type.
5070 (struct dwarf2_debug_sections): New type.
5071 (dwarf2_has_info): Add parameter.
5072 * dwarf2read.c (dwarf2_elf_names): New variable.
5073 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5074 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5075 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5076 (dwarf2_has_info): Add names parameter. Pass names
5077 to dwarf2_locate_sections.
5078 (section_is_p): Rewrite using the names parameter.
5079 (dwarf2_locate_sections): Use section names from the names parameter.
5080 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5081 * elfread.c (read_psyms): Ditto.
5082 * machoread.c (macho_symfile_read): Ditto.
5083
652c71b4
AS
50842011-05-25 Andreas Schwab <schwab@redhat.com>
5085
5086 PR gdb/8677
5087 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5088
f17170e5
KS
50892011-05-24 Keith Seitz <keiths@redhat.com>
5090
5091 PR breakpoint/12803
5092 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5093 (decode_compound): Unconditionally call keep_name_info.
5094
cdac0397
PA
50952011-05-24 Pedro Alves <pedro@codesourcery.com>
5096
5097 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5098 scope, clear its command list.
5099 (map_breakpoint_numbers): Don't walk the related breakpoints list
5100 of each breakpoint.
5101
91d4fe3f
TT
51022011-05-24 Tom Tromey <tromey@redhat.com>
5103
5104 * MAINTAINERS: Move Jim Blandy to past maintainers.
5105
3017a003
TG
51062011-05-24 Tristan Gingold <gingold@adacore.com>
5107
5108 * symfile.h (enum dwarf2_section_enum): New type.
5109 (dwarf2_get_section_info): New prototype.
5110 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5111 section_name by sect. Use a switch to select the info.
5112 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5113 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5114
c91c8c16
PA
51152011-05-24 Pedro Alves <pedro@codesourcery.com>
5116
5117 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5118 shared library event breakpoint if there's no execution.
5119
77bc418a
TJB
51202011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5121
5122 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5123 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5124
c50491a7
TT
51252011-05-23 Tom Tromey <tromey@redhat.com>
5126
5127 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5128 NULL.
5129
6d64e6d4
DE
51302011-05-23 Doug Evans <dje@google.com>
5131
5132 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5133 entry for RuntimeError to doc string.
5134
2067c8d4
JG
51352011-05-23 Jerome Guitton <guitton@adacore.com>
5136
5137 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5138 sequence for probing loops.
5139
b136cd05
PA
51402011-05-23 Pedro Alves <pedro@codesourcery.com>
5141
5142 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5143 comment.
5144
22e74ef9
MK
51452011-05-21 Mark Kettenis <kettenis@gnu.org>
5146
5147 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5148 zero as the value for %g0 in the register cache.
5149 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5150 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5151
842951eb
PA
51522011-05-20 Pedro Alves <pedro@codesourcery.com>
5153
5154 * infrun.c (proceed): Set previous_inferior_ptid here.
5155 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5156 inferior_ptid, not null_ptid.
5157 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5158 (fetch_inferior_event): Nor here.
5159
46cf51e6
PA
51602011-05-20 Pedro Alves <pedro@codesourcery.com>
5161
5162 * inf-loop.c (inferior_event_handler): Only output a message if
5163 verbose.
5164
29ef4c46
LM
51652011-05-20 Luis Machado <lgustavo@codesourcery.com>
5166
5167 * MAINTAINERS: Update my e-mail address.
5168
f148b27e
PA
51692011-05-20 Pedro Alves <pedro@codesourcery.com>
5170
5171 * infrun.c (proceed): Switch the inferior event loop to
5172 INF_EXEC_COMPLETE if the target refused to resume from a
5173 vfork/fork.
5174
09cee04b
PA
51752011-05-20 Pedro Alves <pedro@codesourcery.com>
5176
5177 * infcmd.c: Include "inf-loop.h".
5178 (step_once): When stepping into an inline subroutine, pretend the
5179 target has run. If the target can async, switch the inferior
5180 event loop to INF_EXEC_COMPLETE.
5181 * inferior.h (user_visible_resume_ptid): Declare.
5182 * infrun.c (user_visible_resume_ptid): New function, factored out
5183 from `resume'.
5184 (resume): Use it.
5185 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5186 that the current thread is running. Merge async and sync
5187 branches.
5188
751b8ce1
PA
51892011-05-20 Pedro Alves <pedro@codesourcery.com>
5190
5191 * infcmd.c (step_1): Simplify synchronous case.
5192
e93a69ed
PA
51932011-05-20 Pedro Alves <pedro@codesourcery.com>
5194
5195 * tracepoint.c: Include exceptions.h.
5196 (TFILE_PID): Move higher in file.
5197 (tfile_open): Delay pushing the tfile target until we're assured
5198 the tfile header is present in the file. Wrap reading the initial
5199 newline-terminated lines in TRY_CATCH. Pop the target if the
5200 initial setup failed. Add the tfile's thread immediately
5201 aftwards, before any non-essential setup. Don't skip
5202 post_create_inferior if there are no traceframes present in the
5203 file.
5204 (tfile_close): Remove redundant check for null before xfree call.
5205 (tfile_thread_alive): New function.
5206 (init_tfile_ops): Register it as to_thread_alive callback.
5207
6823e2b1
PA
52082011-05-20 Pedro Alves <pedro@codesourcery.com>
5209
5210 * tracepoint.c (tfile_open): Delete #if 0'd code.
5211
b3c8eb43
JK
52122011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5213
5214 Fix -readnow for -gdwarf-4 unused type units.
5215 * dwarf2read.c (struct signatured_type): Remove the field offset.
5216 (create_signatured_type_table_from_index): Remove its initialization.
5217 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5218 instead. Add a complaint call.
5219 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5220 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5221 (lookup_signatured_type_at_offset, read_signatured_type)
5222 (write_one_signatured_type): Update the field for per_cu.
5223
310afc76
TT
52242011-05-19 Tom Tromey <tromey@redhat.com>
5225
5226 * python/py-inferior.c (python_inferior_exit): Use
5227 target_gdbarch.
5228 (python_on_resume): Likewise.
5229
cf6c5ffb
TT
52302011-05-19 Matt Rice <ratmice@gmail.com>
5231
5232 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5233
fb80a3c5
HZ
52342011-05-19 Hui Zhu <teawater@gmail.com>
5235
5236 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5237
3672b1be
HZ
52382011-05-19 Hui Zhu <teawater@gmail.com>
5239
5240 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5241
ff355380
TT
52422011-05-18 Tom Tromey <tromey@redhat.com>
5243
5244 * dwarf2read.c (dwarf2_add_field): Constify.
5245 * value.c (value_static_field): Constify.
5246 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5247 Now const.
5248 * ax-gdb.c (gen_static_field): Constify
5249
ed731959
JK
52502011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5251
5252 * linux-nat.c (kill_callback): Use SIGKILL first.
5253
967cff16
JB
52542011-05-18 Joel Brobecker <brobecker@adacore.com>
5255
5256 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5257
1d06ead6
TT
52582011-05-18 Tom Tromey <tromey@redhat.com>
5259
5260 * value.c (value_fn_field): Constify.
5261 * symtab.c (gdb_mangle_name): Constify.
5262 * stabsread.c (update_method_name_from_physname): Make 'physname'
5263 argument const.
5264 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5265 const. Use explicit fputc_filtered loop.
5266 (pascal_type_print_base): Constify.
5267 * p-lang.h (pascal_type_print_method_args): Update.
5268 * linespec.c (add_matching_methods): Constify.
5269 (add_constructors): Likewise.
5270 * jv-typeprint.c (java_type_print_base): Constify.
5271 * gdbtypes.h (struct cplus_struct_type)
5272 <fn_fieldlist.fn_field.physname>: Now const.
5273 * dwarf2read.c (compute_delayed_physnames): Constify.
5274 (dwarf2_add_member_fn): Likewise.
5275 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5276
0d9a9a5f
PA
52772011-05-18 Pedro Alves <pedro@codesourcery.com>
5278
5279 * infrun.c (resume): Mention which is the current thread, and its
5280 current PC in debug output.
5281 (prepare_to_proceed): Mention the thread switching in debug
5282 output.
5283
05386e9e
TT
52842011-05-18 Tom Tromey <tromey@redhat.com>
5285
5286 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5287 path check. Use xmalloc and cleanups.
5288 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5289
ee86786c
TT
52902011-05-17 Tom Tromey <tromey@redhat.com>
5291
5292 * cp-valprint.c (cp_print_value_fields): Catch errors from
5293 value_static_field.
5294
9ff3b74f
TT
52952011-05-17 Tom Tromey <tromey@redhat.com>
5296
5297 * dwarf2read.c (dwarf2_get_die_type): Call
5298 get_die_type_at_offset.
5299 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5300 get_base_type function.
5301
cd3da28e
PA
53022011-05-17 Tomas Martinec <fyzmat@gmail.com>
5303
5304 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5305 trap_expected.
5306
fd20d931
DE
53072011-05-16 Doug Evans <dje@google.com>
5308
5309 * python/py-auto-load.c (source_section_scripts): Mention objfile
5310 name in warning.
5311
75fc9810
DE
53122011-05-15 Doug Evans <dje@google.com>
5313
290351b8
DE
5314 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5315 (try_thread_db_load_from_pdir): Call it. If unable to find
5316 libthread_db in directory of libpthread, see if we're looking at
5317 the separate-debug-info copy.
5318
75fc9810
DE
5319 * python/py-autoload.c (print_script): Print "Missing" instead of
5320 "No" for missing scripts.
5321 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5322
9f7bc587
DE
53232011-05-13 Doug Evans <dje@google.com>
5324
5325 * ui-file.c (stdio_file_write_async_safe): Add comment.
5326
093cee7d
HZ
53272011-05-14 Hui Zhu <teawater@gmail.com>
5328
5329 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5330
dbaefcf7
DE
53312011-05-13 Doug Evans <dje@google.com>
5332
98a5dd13
DE
5333 Support $pdir and $sdir in libthread-db-search-path.
5334 * NEWS: Mention $sdir,$pdir.
5335 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5336 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5337 (try_thread_db_load_from_sdir): New function.
5338 (try_thread_db_load_from_dir): New function.
5339 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5340 system directories if search of libthread-db-search-path fails,
5341 that is now done via $sdir.
5342 (has_libpthread): New function.
5343 (thread_db_load): Remove search for libthread_db in directory of
5344 libpthread, that is now done via $pdir.
5345
dbaefcf7
DE
5346 * NEWS: Mention "info auto-load-scripts".
5347 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5348 script_not_found_warning_printed.
5349 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5350 all callers updated. Initialize script_not_found_warning_printed.
5351 (get_auto_load_pspace_data_for_loading): New function.
5352 (maybe_add_script): New function.
5353 (source_section_scripts): Simplify. Only print one warning regardless
5354 of the number of auto-load scripts not found.
5355 (clear_section_scripts): Clear script_not_found_warning_printed.
5356 (auto_load_objfile_script): Record script in hash table.
5357 (count_matching_scripts): New function.
5358 (maybe_print_script): Renamed from maybe_print_section_script, all
5359 callers updated. Rewrite to use ui_out_*.
5360 (info_auto_load_scripts): Renamed from
5361 maintenance_print_section_scripts, all callers updated.
5362 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5363 renamed as "info auto-load-scripts".
5364
9930639c
TT
53652011-05-13 Tom Tromey <tromey@redhat.com>
5366
5367 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5368 (read_sleb128): Likewise.
5369
06826322
TT
53702011-05-13 Tom Tromey <tromey@redhat.com>
5371
5372 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5373 offset display.
5374
01124a23
DE
53752011-05-13 Doug Evans <dje@google.com>
5376
5377 * linux-nat.c (debug_linux_nat_async): Delete.
5378 Replace all references to use debug_linux_nat instead.
5379 (show_debug_linux_nat_async): Delete.
5380 (sigchld_handler): Call ui_file_write_async_safe instead of
5381 fprintf_unfiltered.
5382 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5383 * ui-file.c (struct ui_file): New member to_write_async_safe.
5384 (null_file_write_async_safe): New function.
5385 (ui_file_write_async_safe): New function.
5386 (set_ui_file_write_async_safe): New function.
5387 (ui_file_new): Initialize to_write_async_safe.
5388 (stdio_file_write_async_safe): New function.
5389 (struct stdio_file): New member fd.
5390 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5391 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5392 fileno.
01124a23
DE
5393 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5394 (set_ui_file_write_async_safe): Declare.
5395 (ui_file_write_async_safe): Declare.
5396
72fc29ff
TT
53972011-05-13 Tom Tromey <tromey@redhat.com>
5398
5399 * utils.c (do_value_free): New function.
5400 (make_cleanup_value_free): Likewise.
5401 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5402 freeing correctly.
5403 (dwarf2_loc_desc_needs_frame): Call
5404 make_cleanup_value_free_to_mark.
5405 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5406 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5407 value_free_to_mark.
5408 (new_dwarf_expr_context): Don't call value_mark.
5409 * dwarf2-frame.c (execute_stack_op): Call
5410 make_cleanup_value_free_to_mark.
5411 * defs.h (make_cleanup_value_free): Declare.
5412
028d0ed5
TJB
54132011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5414
5415 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5416 prepare_execute_command.
5417 * top.c (prepare_execute_command): Return cleanup.
5418 (execute_command): Use cleanup from prepare_execute_command.
5419 * top.h (prepare_execute_command): Change prototype to return
5420 cleanup.
5421 * defs.h (struct value): Add opaque declaration.
5422 (make_cleanup_value_free_to_mark): Add prototype.
5423 * utils.c (do_value_free_to_mark): New function.
5424 (make_cleanup_value_free_to_mark): Likewise.
5425
b087e0ed
TT
54262011-05-12 Tom Tromey <tromey@redhat.com>
5427
5428 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5429 cast left-hand-side to unsigned.
5430
8a9b8146
TT
54312011-05-12 Tom Tromey <tromey@redhat.com>
5432
5433 PR gdb/12617:
5434 * value.h (value_from_contents): Declare.
5435 * value.c (value_from_contents): New function.
5436 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5437 (dwarf2_get_die_type): New function.
5438 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5439 (allocate_piece_closure): Acquire reference to values.
5440 (read_pieced_value): Update for value-based expressions.
5441 (write_pieced_value): Likewise.
5442 (free_pieced_value_closure): Call value_free as needed.
5443 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5444 Update for value-based expressions.
5445 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5446 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5447 <get_base_type>: New field.
5448 (struct dwarf_expr_piece) <v.value>: Change type.
5449 <v.regno>: New field.
5450 (struct dwarf_expr_context) <mark>: New field.
5451 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5452 (dwarf_expr_pop, dwarf_expr_push): Remove.
5453 (dwarf_expr_push_address): Declare.
5454 * dwarf2expr.c (dwarf_arch_cookie): New global.
5455 (struct dwarf_gdbarch_types): New.
5456 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5457 functions.
5458 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5459 static.
5460 (dwarf_expr_push_address): New function.
5461 (dwarf_expr_pop): Now static.
5462 (dwarf_expr_fetch): Change return type.
5463 (dwarf_require_integral): New function.
5464 (dwarf_expr_fetch): Simplify.
5465 (add_piece): Update.
5466 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5467 functions.
5468 (execute_stack_op) <sign_ext>: Remove.
5469 Use values for DWARF stack.
5470 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5471 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5472 New cases.
5473 (_initialize_dwarf2expr): New function.
5474 (add_piece): Update.
5475 (new_dwarf_expr_context): Set new field.
5476 (free_dwarf_expr_context): Call value_free_to_mark.
5477 * dwarf2-frame.c (no_base_type): New function.
5478 (execute_stack_op): Set get_base_type field. Update.
5479
e8d28ef4
TT
54802011-05-12 Tom Tromey <tromey@redhat.com>
5481
5482 * dwarf2read.c (read_common_block): Fix formatting.
5483
d248b706
KY
54842011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5485
5486 * breakpoint.c (disable_breakpoint): Disable all locations
5487 associated with a tracepoint on target if a trace experiment is
5488 running.
5489 (disable_command): Disable a specific tracepoint location on target if
5490 a trace experiment is running.
5491 (do_enable_breakpoint): Enable all locations associated with a
5492 tracepoint on target if a trace experiment is running.
5493 (enable_command) Enable a specific tracepoint location on target if a
5494 trace experiment is running.
5495 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5496 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5497 to_disable_tracepoint.
5498 * target.h: Add declaration of struct bp_location.
5499 (struct target_ops): Add new functions
5500 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5501 to_disable_tracepoint to target operations.
5502 (target_supports_enable_disable_tracepoint): New macro.
5503 (target_enable_tracepoint): New macro.
5504 (target_disable_tracepoint): New macro.
5505 * remote.c (struct remote_state): Add new field.
5506 (remote_enable_disable_tracepoint_feature): New.
5507 (remote_protocol_features): Add new entry.
5508 (remote_supports_enable_disable_tracepoint): New.
5509 (remote_enable_tracepoint): New.
5510 (remote_disable_tracepoint): New.
5511 (init_remote_ops): Add remote_enable_tracepoint,
5512 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5513 to remote operations.
5514 * tracepoint.c (start_tracing): Allow tracing to start without any
5515 tracepoints enabled with just a warning if they can be re-enabled
5516 later.
5517 * NEWS: Add news item for the new behaviour of the enable and disable
5518 GDB commands when applied to tracepoints.
5519 Add news items for the new remote packets QTEnable and QTDisable.
5520
cc88a640
JK
55212011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5522
5523 * config.in: Regenerate.
5524 * configure: Regenerate.
5525 * configure.ac <--with-system-readline> (for readline_echoing_p):
5526 Remove the test.
5527 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5528 (tui_old_rl_echoing_p): ... here.
5529 (tui_setup_io): Rename extern declaration readline_echoing_p to
5530 _rl_echoing_p. Adjust assignments for the both renames.
5531
1f84b619
TJB
55322011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5533
5534 * symtab.c (lookup_symtab): Run cleanup before returning.
5535
74ac6d43
TT
55362011-05-11 Tom Tromey <tromey@redhat.com>
5537
5538 * dwarf2read.c (handle_data_member_location): New function.
5539 (dwarf2_add_field): Use it.
5540 (read_common_block): Likewise.
5541
5488dafb
JK
55422011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5543
5544 Make addrs->SECTINDEX always defined.
5545 * symfile.c (relative_addr_info_to_section_offsets): Check for
5546 SECTINDEX -1, not for zero ADDR.
5547 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5548 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5549 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5550 on its validity.
5551
84e578fb
DE
55522011-05-10 Doug Evans <dje@google.com>
5553
2471d008
DE
5554 * linux-thread-db.c: Whitespace cleanup.
5555 (try_thread_db_load_1): Fix comment.
5556
84e578fb
DE
5557 * linux-thread-db.c (set_libthread_db_search_path): New function.
5558 (_initialize_thread_db): Add setter for libthread-db-search-path.
5559
673c2bbe
DE
55602011-05-09 Doug Evans <dje@google.com>
5561
478aac75
DE
5562 * NEWS: Mention --with-iconv-bin.
5563 * configure.ac: New option --with-iconv-bin.
5564 * configure: Regenerate.
5565 * config.in: Regenerate.
5566 * defs.h (relocate_gdb_directory): Declare.
5567 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5568 removed progname parameter, and exported. All callers updated.
5569 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5570
673c2bbe
DE
5571 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5572 adding missing call to restore_child_signals_mask.
5573
e4c8541f
PA
55742011-05-09 Pedro Alves <pedro@codesourcery.com>
5575
5576 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5577 parameter.
5578 * infrun.c (proceed, start_remote): Adjust.
5579 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5580 and adjust to not handle it.
5581 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5582 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5583 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5584 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5585 * windows-nat.c (do_initial_windows_stuff): Adjust.
5586 * infcmd.c (attach_command): Adjust.
5587 (notice_new_inferior): Adjust.
5588
a536c6d7
UW
55892011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5590
5591 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5592 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5593 * spu-tdep.c (op_selb): Use correct value.
5594
7845b013
UW
55952011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5596
5597 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5598 "parent" parameter to symbol_file_add_from_bfd call.
5599
9c06b0b4
TJB
56002011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5601 Thiago Jung Bauermann <bauerman@br.ibm.com>
5602
5603 Implement support for PowerPC BookE masked watchpoints.
5604 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5605 section.
5606 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5607 method. Initialize to NULL in all existing breakpoint_ops instances.
5608 (struct breakpoint) <hw_wp_mask>: New field.
5609 * breakpoint.c (is_masked_watchpoint): Add prototype.
5610 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5611 breakpoint's breakpoint_ops.works_in_software_mode if available.
5612 (watchpoints_triggered): Handle the case of a hardware masked
5613 watchpoint trigger.
5614 (watchpoint_check): Likewise.
5615 (works_in_software_mode_watchpoint): New function.
5616 (insert_masked_watchpoint, remove_masked_watchpoint)
5617 (resources_needed_masked_watchpoint)
5618 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5619 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5620 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5621 functions.
5622 (masked_watchpoint_breakpoint_ops): New structure.
5623 (watch_command_1): Check for the existence of the `mask' parameter.
5624 Set b->ops according to the type of hardware watchpoint being created.
5625 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5626 (ppc_linux_remove_mask_watchpoint)
5627 (ppc_linux_masked_watch_num_registers): New functions.
5628 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5629 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5630 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5631 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5632 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5633 (target_masked_watch_num_registers): New functions.
5634 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5635 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5636 methods.
5637 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5638 (target_masked_watch_num_registers): Add prototypes.
5639
8be455d7
JK
56402011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5641
5642 PR 12573
5643 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5644 (producer_is_gcc_ge_4_0): New function.
5645 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5646 symtab->language code.
5647 (var_decode_location): Set cu->has_loclist.
5648 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5649 skip. Intialize force_skip from locations_valid. Move the prologue
5650 skipping code into two passes.
5651 * symtab.h (struct symtab): Make the primary field a bitfield. New
5652 field locations_valid.
5653
d8228535
JK
56542011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5655
5656 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5657 (classify_inner_name): Call cp_lookup_nested_type with
5658 yylval.tsym.type.
5659 * cp-namespace.c (cp_lookup_nested_type): New variable
5660 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5661 type_name_no_tag_or_error with saved_parent_type.
5662 * dwarf2read.c (load_partial_dies): Read in any children of
5663 DW_TAG_typedef with complaint in such case.
5664 * gdbtypes.c (type_name_no_tag_or_error): New function.
5665 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5666 * valops.c (destructor_name_p): New comment for parameter type. Remove
5667 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5668 * value.h (destructor_name_p): Remove type const.
5669
1976171a
JK
56702011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5671
5672 * symtab.c (compare_symbol_name): New function.
5673 (completion_list_add_name, expand_partial_symbol_name): Call it,
5674 remove the variable ncmp.
5675 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5676 gdb_assert it.
5677
a9634178
TJB
56782011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5679
5680 Demote to sw watchpoint only in update_watchpoint.
5681 * breakpoint.c (update_watchpoint): Change between software and
5682 hardware watchpoint for all kinds of watchpoints, not just
5683 read/write ones. Determine b->exact value here instead of
5684 in watch_command_1. Error out if there are not enough resources
5685 for a read or access hardware watchpoint.
5686 (watch_command_1): Remove logic of checking whether there are
5687 enough resources available, since update_watchpoint will do that
5688 work now. Don't set b->exact here. Catch exceptions thrown by
5689 update_watchpoint and delete the watchpoint.
5690 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5691 Use target_exact_watchpoints instead.
5692 (delete_breakpoint): Notify observers only if deleted watchpoint
5693 has a breakpoint number assigned to it.
5694
4c67c798
JJ
56952011-05-05 Janis Johnson <janisjo@codesourcery.com>
5696
5697 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5698
a3fcb948
JG
56992011-05-05 Jerome Guitton <guitton@adacore.com>
5700
5701 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5702 New functions.
5703 (i386_stack_tramp_frame_unwind): New static global.
5704 (i386_match_pattern): New function, extracted from i386_match_insn.
5705 (i386_match_insn): Use i386_match_pattern.
5706 (i386_match_insn_block): New function.
5707 (i386_tramp_chain_in_reg_insns)
5708 (i386_tramp_chain_on_stack_insns): New static variables.
5709 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5710 of unwinders.
5711
4d393d60
JM
57122011-05-04 Joseph Myers <joseph@codesourcery.com>
5713
5714 * configure.host (xscale*): Don't handle target.
5715 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5716 handle targets.
5717
f70bd40b
YQ
57182011-05-04 Yao Qi <yao@codesourcery.com>
5719
5720 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5721
dd3295ee
JB
57222011-05-03 Joel Brobecker <brobecker@adacore.com>
5723
5724 Revert:
5725 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5726 | * elfread.c (elf_symtab_read): Stop memory leak.
5727
90375a0e
PM
57282011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5729
5730 * nto-tdep.c (nto_target): Replace deprecated call to
5731 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5732
d07205c2
JK
57332011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5734
5735 Fix false GCC warning.
5736 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5737
1e718ff1
TJB
57382011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5739
5740 * breakpoint.c (update_watchpoint): Move code to change
5741 the enable state of breakpoint from here ...
5742 (do_enable_breakpoint): ... to here.
5743
35bef4fd
TT
57442011-04-26 Andrew Gontarek <andrewg@cray.com>
5745
78290264
PP
5746 * valprint.c (val_print_array_elements): Fixed poor performance
5747 of printing very large arrays with repeat_count_threshold set
5748 to unlimited. New comment.
35bef4fd 5749
38a714bb
TT
57502011-04-29 Tom Tromey <tromey@redhat.com>
5751
5752 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5753 (mi_parse): Likewise.
5754 * breakpoint.c (break_range_command): Use sizeof char*, not
5755 char**.
5756 (create_breakpoint): Likewise.
5757 (parse_breakpoint_sals): Likewise.
5758
eb73ad13
PA
57592011-04-29 Pedro Alves <pedro@codesourcery.com>
5760
5761 * linux-nat.c (linux_child_remove_fork_catchpoint)
5762 (linux_child_remove_vfork_catchpoint)
5763 (linux_child_remove_exec_catchpoint): New functions.
5764 (linux_target_install_ops): Install them.
5765
d65aec65
PM
57662011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5767
5768 PR mi/12531
5769
5770 * varobj.c (install_default_visualizer): Do not install a
5771 visualizer if the varobj is CPLUS_FAKE_CHILD.
5772 (construct_visualizer): Likewise.
5773
165195f4
JK
57742011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5775
5776 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5777 case insensitive comparison.
5778
30852783
UW
57792011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5780
5781 * infrun.c (proceed): Revert previous change.
5782 (resume): Instead, handle the case of signal delivery while stepping
5783 off a breakpoint location here, and only if software single-stepping
5784 is used. Handle nested signals.
5785
7ff120b4
YQ
57862011-04-28 Yao Qi <yao@codesourcery.com>
5787
5788 * arm-tdep.c (copy_unmodified): Rename to ...
5789 (arm_copy_unmodified): .. this. New.
5790 (copy_preload): Move common part to ...
5791 (install_preload): .. this. New.
5792 (arm_copy_preload): New.
5793 (copy_preload_reg): Move common part to ...
5794 (install_preload_reg): ... this. New.
5795 (arm_copy_preload_reg): New.
5796 (copy_b_bl_blx): Move common part to ...
5797 (install_b_bl_blx): .. this. New.
5798 (arm_copy_b_bl_blx): New.
5799 (copy_bx_blx_reg): Move common part to ...
5800 (install_bx_blx_reg): ... this. New.
5801 (arm_copy_bx_blx_reg): New.
5802 (copy_alu_reg): Move common part to ...
5803 (install_alu_reg): ... this. New.
5804 (arm_copy_alu_reg): New.
5805 (copy_alu_shifted_reg): Move common part to ...
5806 (install_alu_shifted_reg): ... this. New.
5807 (copy_ldr_str_ldrb_strb): Move common part to ...
5808 (install_ldr_str_ldrb_strb): ... this. New.
5809 (arm_copy_ldr_str_ldrb_strb): New.
5810 (copy_copro_load_store): Move some common part to ...
5811 (install_copy_copro_load_store): ... this. New.
5812 (arm_copy_copro_load_store): New.
5813 (copy_svc): Delete.
5814 (arm_copy_svc): Renamed from copy_svc.
5815 (copy_undef): Delete.
5816 (arm_copy_undef): Renamed from copy_undef.
5817 (decode_ext_reg_ld_st): Delete.
5818 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5819 (decode_svc_copro): Delete.
5820 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5821 (copy_copro_load_store, copy_alu_imm): update callers.
5822 (copy_extra_ld_st, copy_block_xfer): Likewise.
5823 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5824 (decode_miscellaneous, decode_dp_misc): Likewise.
5825 (decode_ld_st_word_ubyte, decode_media): Likewise.
5826 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5827 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5828 (decode_unconditional, decode_miscellaneous): Likewise.
5829 (decode_media, decode_b_bl_ldmstm): Likewise.
5830 (arm_process_displaced_insn): Likewise..
5831 (decode_misc_memhint_neon): Delete.
5832 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5833 (decode_miscellaneous): Delete.
5834 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5835 (decode_dp_misc): Delete.
5836 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5837 (decode_ld_st_word_ubyte): Delete.
5838 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5839 (decode_media): Delete.
5840 (arm_decode_media): Renamed from decode_media.
5841 (decode_b_bl_ldmstm): Delete.
5842 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5843 (decode_ext_reg_ld_st): Delete.
5844 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5845 (decode_unconditional): Delete.
5846 (arm_decode_unconditional): Renamed from decode_unconditional.
5847
559a7a62
JK
58482011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5849
5850 Case insensitive lookups implementation.
5851 * dwarf2read.c: Include ctype.h.
5852 (struct mapped_index): New field version.
5853 (mapped_index_string_hash): New parameter index_version. New comment
5854 for it. Call tolower appropriately.
5855 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5856 Choose the right index version for mapped_index_string_hash.
5857 (dwarf2_read_index): Support also the index version 5. Initialize the
5858 new struct mapped_index field version.
5859 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5860 (find_slot): Explain the version needs. Pass INT_MAX for the new
5861 parameter.
5862 (write_psymtabs_to_index): Produce version 5.
5863 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5864 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5865 * psymtab.c (lookup_partial_symbol): Find the
5866 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5867 entries.
5868 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5869 NAME lowercasing.
5870 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5871 (completion_list_add_name): New variable ncmp, initialize it, use it.
5872 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5873 * utils.c (strcmp_iw): Support case_sensitive_off.
5874 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5875 New function comment part. New variables saved_string1,
5876 saved_string2 and case_pass. Add a proper second pass.
5877
681bf369
JK
58782011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5879
5880 Replace re_comp/re_exec by regcomp/regexec.
5881 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5882 (search_symbols_name_matches): Use them, use regexec.
5883 (search_symbols): New variable retval_chain, adjust the use of
5884 old_chain against it. Replace re_comp by regcomp. Use the new struct
5885 search_symbols_data fields, use regexec instead of re_exec.
5886
b11b1f88
JK
58872011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5888
5889 Format the code for the next patch.
5890 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5891 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5892 New variables c1 and c2.
5893
2484c66b
UW
58942011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5895
5896 * infrun.c (proceed): Do not single-step into signal delivery
5897 when stepping off a breakpoint location.
5898 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5899 (insert_step_resume_breakpoint_at_caller): Likewise.
5900 (insert_step_resume_breakpoint_at_sal): Likewise.
5901 (insert_longjmp_resume_breakpoint): Likewise.
5902
47423772
YQ
59032011-04-27 Yao Qi <yao@codesourcery.com>
5904
5905 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5906
13bdd2e7
JB
59072011-04-27 Joel Brobecker <brobecker@adacore.com>
5908
5909 * procfs.c (procfs_pass_signals): Fix advance declaration.
5910
2455069d
UW
59112011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5912
5913 * target.h (struct target_ops): Remove to_notice_signals;
5914 add to_pass_signals.
5915 (target_notice_signals): Remove.
5916 (target_pass_signals): Add prototype.
5917 * target.c (update_current_target): Remove to_notice_signals;
5918 mention to_pass_signals.
5919 (target_pass_signals): New function.
5920 (debug_to_notice_signals): Remove.
5921 (setup_target_debug): Do not install debug_to_notice_signals.
5922
5923 * infrun.c (signal_pass): New global.
5924 (resume): Call target_pass_signals.
5925 (handle_inferior_event): Report all signals while stepping over
5926 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5927 are re-inserted when stepping over a signal handler.
5928 (signal_cache_update): New function.
5929 (signal_stop_update): Call it.
5930 (signal_print_update): Likewise.
5931 (signal_pass_update): Likewise.
5932 (handle_command): Call signal_cache_update and target_pass_signals
5933 instead of target_notice_signals.
5934 (_initialize_infrun): Initialize signal_pass.
5935
5936 * linux-nat.c (pass_mask): New global.
5937 (linux_nat_pass_signals): New function.
5938 (linux_nat_create_inferior): Report all signals initially.
5939 (linux_nat_attach): Likewise.
5940 (linux_nat_resume): Use pass_mask to decide whether to directly
5941 handle an inferior signal.
5942 (linux_nat_wait_1): Likewise.
5943 (linux_nat_add_target): Install to_pass_signals callback.
5944
5945 * nto-procfs.c (notice_signals): Remove.
5946 (procfs_resume): Do not call notice_signals.
5947 (procfs_notice_signals): Remove.
5948 (procfs_pass_signals): New function.
5949 (init_procfs_ops): Install to_pass_signals callback instead of
5950 to_notice_signals callback.
5951 (_initialize_procfs): Report all signals initially.
5952
5953 * procfs.c (procfs_notice_signals): Remove.
5954 (procfs_pass_signals): New function.
5955 (procfs_target): Install to_pass_signals callback instead of
5956 to_notice_signals callback.
5957 (register_gdb_signals): Remove.
5958 (procfs_debug_inferior): Report all signals initially.
5959 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5960
5961 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5962 parameters; use them instead of calling signal_..._state routines.
5963 (remote_notice_signals): Remove.
5964 (remote_start_remote): Report all signals initially.
5965 (remote_resume): Do not call remote_pass_signals.
5966 (_initialize_remote): Install to_pass_signals callback instead of
5967 to_notice_signals callback.
5968
46c6471b
PA
59692011-04-27 Pedro Alves <pedro@codesourcery.com>
5970
5971 * breakpoint.c (user_settable_breakpoint): Delete.
5972 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5973 (delete_command): Check user_breakpoint_p instead of looking at
5974 the breakpoint's type.
5975 (disable_command): Ditto.
5976 (enable_command): Ditto.
5977 (delete_trace_command): Use user_breakpoint_p instead of looking
5978 at the breakpoint number directly. When checking if there are
5979 user visible tracepoints, in order to know whether to ask the user
5980 for confirmation, check whether the breakpoint is actually a
5981 tracepoint.
5982
f6d90398
VP
59832011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5984
5985 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5986 compilation.
5987
8d3788bd
VP
59882011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5989
5990 MI breakpoint notifications.
5991
f33edef8
PP
5992 * annotate.c (breakpoint_changed): Adjust parameter type.
5993 * breakpoint.c (set_breakpoint_condition): Adjust to change
5994 in breakpoint_modified type.
5995 (breakpoint_set_commands): Likewise.
5996 (do_map_commands_command): Likewise.
5997 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5998 changed after bumping hit count.
5999 (bpstat_stop_status): Likewise.
6000 (print_one_breakpoint_location): Don't wrap in tuple here.
6001 (print_one_breakpoint): Always print individual locations.
6002 For locations, use unnamed tuple.
6003 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6004 has changed.
6005 (create_catchpoint, create_syscall_event_catchpoint): Call
6006 breakpoint_created obsever.
6007 (mention): Don't call breakpoint_created observer.
6008 (create_breakpoint_sal): Call breakpoint_created observer.
6009 (create_breakpoint, watch_command_1): Likewise.
6010 (create_ada_exception_breakpoint): Likewise.
6011 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6012 (locations_are_equal): New.
6013 (update_breakpoint_locations): If locations were changed, notify.
6014 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6015 Call breakpoint_modified observer.
6016
6017 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6018 (mi_cmd_break_insert): Don't set observers for modify and delete.
6019 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6020 (mi_breakpoint_created, mi_breakpoint_deleted)
6021 (mi_breakpoint_modified): New.
6022 (mi_interpreter_init): Hook the above.
6023 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6024 while -break-* commands are executing.
6025 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6026 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6027 (mi_redirect): New.
6028 (mi_ui_out_impl): Hook in mi_redirect.
6029 (mi_field_skip): True to the name, skip the field, don't output
6030 a field with an empty value.
6031
6032 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6033 (gdbpy_breakpoint_deleted): Adjust.
6034 * tui/tui-hooks.c (tui_event_create_breakpoint)
6035 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6036
a8f42b45
UW
60372011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6038
6039 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6040 (procfs_remove_hw_watchpoint): Likewise.
6041
57e12211
TT
60422011-04-26 Michael Walle <michael@walle.cc>
6043
6044 * remote.c (remote_start_remote): Ack packet after sending the
6045 interrupt sequence.
6046
af96c192
YQ
60472011-04-26 Yao Qi <yao@codesourcery.com>
6048
f33edef8
PP
6049 * linux-nat.c: Move common macros to ...
6050 Include linux-ptrace.h.
6051 * common/linux-ptrace.h: ... here. New.
af96c192 6052
3e03848b
JK
60532011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6054
6055 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6056 !objfile_has_partial_symbols. New comment.
6057 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6058 SYM_READ_PSYMBOLS is not present. Extend the comment.
6059 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6060
1ae0d051
JK
60612011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6062
6063 * defs.h (ENUM_BITFIELD): Remove.
6064
03f2bd59
JK
60652011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6066 Eli Zaretskii <eliz@gnu.org>
6067
6068 * NEWS: Document the new gdbserver --once option.
6069
4161fbb0
JZ
60702011-04-21 Jie Zhang <jzhang918@gmail.com>
6071
6072 * MAINTAINERS: Update my email address.
6073
bcb28afc
PM
60742011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6075
6076 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6077 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6078 function call if __STDC_ISO_10646__ macro is defined.
6079 (intermediate_encoding): New prototype.
6080 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6081 to generate compile time error for unsupported gdb_wchar_t size.
6082 (ENDIAN_SUFFIX): New macro.
6083 (intermediate_encoding): New function.
6084
7b08b9eb
JK
60852011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6086
6087 * ada-lang.c (struct add_partial_datum): Update the comment for
6088 expand_partial_symbol_name.
6089 (ada_add_partial_symbol_completions): Rename to ...
6090 (ada_expand_partial_symbol_name): ... here, change return type, update
6091 function comment, call symbol_completion_match instead of
6092 symbol_completion_add.
6093 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6094 and ada_expand_partial_symbol_name.
6095 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6096 FILE_MATCHER.
6097 (dw2_map_symbol_names): Remove.
6098 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6099 * psymtab.c (map_symbol_names_psymtab): Remove.
6100 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6101 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6102 order.
6103 (psym_functions): Unlist map_symbol_names_psymtab.
6104 (map_partial_symbol_names): Rename to ...
6105 (expand_partial_symbol_names): ... here, change the FUN type, call
6106 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6107 * psymtab.h (map_partial_symbol_names): Rename to ...
6108 (expand_partial_symbol_names): ... here, change the FUN type.
6109 * symfile.h (struct quick_symbol_functions): Update the description of
6110 expand_symtabs_matching. Remove map_symbol_names.
6111 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6112 (struct add_name_data): Update the comment for
6113 expand_partial_symbol_name.
6114 (add_partial_symbol_name): Rename to ...
6115 (expand_partial_symbol_name): ... here. Replace
6116 completion_list_add_name call by strncmp.
6117 (default_make_symbol_completion_list_break_on): Use now
6118 expand_partial_symbol_names and expand_partial_symbol_name.
6119 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6120
90476074
TT
61212011-04-20 Tom Tromey <tromey@redhat.com>
6122
6123 * dwarf2read.c (save_gdb_index_command): Replace format
6124 documentation with a pointer to the manual.
6125
c21236dc
PA
61262011-04-20 Pedro Alves <pedro@codesourcery.com>
6127
6128 * regcache.c: Include remote.h.
6129 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6130 (regcache_dump): Handle regcache_dump_remote.
6131 (maintenance_print_remote_registers): New function.
6132 (_initialize_regcache): Install "maint print remote-registers"
6133 command.
6134 * remote.c (map_regcache_remote_table): New function, factored out
6135 from ...
6136 (init_remote_state): ... here.
6137 (remote_register_number_and_offset): New.
6138 * remote.h (remote_register_number_and_offset): Declare.
6139
b78974c3
PA
61402011-04-20 Pedro Alves <pedro@codesourcery.com>
6141
6142 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6143 null_ptid, assume and allow a NULL address space, instead of
6144 asking the target for the ptid's address space.
6145 * infrun.c (ptid_is_pid): Remove assertion.
6146
7a9dd1b2
TT
61472011-04-19 Tom Tromey <tromey@redhat.com>
6148
6149 * windows-tdep.c (windows_xfer_shared_library):
6150 * windows-nat.c (get_module_name, windows_make_so):
6151 * v850-tdep.c (v850_handle_pushm):
6152 * utils.c (null_cleanup, gdb_realpath):
6153 * ui-out.c (get_next_header):
6154 * tracepoint.c (clear_traceframe_info):
6155 * symtab.c (lookup_symtab):
6156 * serial.h (struct serial_ops):
6157 * mipsread.c (read_alphacoff_dynamic_symtab):
6158 * infcmd.c (print_return_value):
6159 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6160 * f-exp.y (parse_number):
6161 * exceptions.c (catch_exceptions):
6162 * dummy-frame.c (dummy_frame_this_id):
6163 * defs.h (struct cleanup):
6164 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6165 * arm-tdep.c (arm_push_dummy_call):
6166 * amd64-tdep.h (amd64_collect_xsave):
6167 * amd64-tdep.c (amd64_collect_xsave):
6168 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6169 * README (typing): Remove duplicate words.
6170 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6171 * infrun.c (siginfo_value_read): Fix typo.
6172 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6173 * top.c (source_line_number): Add comma.
6174
9941e0c5
MK
61752011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6176
6177 * thread.c (any_live_thread_of_process): Prioritize threads
6178 that are not executing.
6179 * gdbthread.h (any_live_thread_of_process): Update comment
6180 as per above change.
6181
ed4b0e6a
AS
61822011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6183
6184 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6185 (scan_xcoff_symtab): Likewise.
6186
9b13a2db
PM
61872011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6188
6189 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6190 inside if clause.
6191
1c6e1b0d
PM
61922011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6193 Pedro Alves <pedro@codesourcery.com>
6194
6195 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6196 variables to simplify code and avoid == operator at end of
6197 line as this is against GNU coding standards.
6198
74de0234
PM
61992011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6200
6201 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6202 lm_name to name_lm to avoid conflict with lm_name function.
6203
b23518f0
PM
62042011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6205
6206 ARI fixes: Use only lowercase function name for static functions.
6207 * nto-tdep.c (LM_ADDR): Rename to...
6208 (lm_addr): New function name.
6209 (nto_relocate_section_addresses): Adapt to change above.
6210 * solib-sunos.c (LM_ADDR): Rename to...
6211 (lm_addr): New function name.
6212 (LM_NEXT): Rename to...
6213 (lm_next): New function name.
6214 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6215 function name changes above.
6216 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6217 (lm_addr_from_link_map): New function name.
6218 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6219 (has_lm_dynamic_from_link_map): New function name.
6220 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6221 (lm_dynamic_from_link_map): New function name.
6222 (LM_ADDR_CHECK): Rename to...
6223 (lm_addr_check): New function name.
6224 (LM_NEXT): Rename to...
6225 (lm_next): New function name.
6226 (LM_PREV): Rename to...
6227 (lm_prev): New function name.
6228 (LM_NAME): Rename to...
6229 (lm_name): New function name.
6230 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6231 (ignore_first_link_map_entry): New function name.
6232 (svr4_keep_data_in_core): Adapt to function name changes above.
6233 (svr4_current_sos): Likewise.
6234 (enable_break): Likewise.
6235 (svr4_relocate_section_addresses): Likewise.
6236
1448a0a2
PM
62372011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6238
6239 ARI cleanup.
6240 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6241 sprintf. Simplify code and avoid loosing memory.
6242 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6243 (call0_frame_cache): Remove && operator from end of line.
6244
02835898
JK
62452011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6246
6247 Fix libraries displacement if they change whether they were prelinked.
6248 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6249 does not match. Comment why.
6250
9a845ea2
JK
62512011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6252
6253 * corelow.c: Include wrapper.h.
6254 (core_open): Call now gdb_target_find_new_threads.
6255 * wrapper.c: Include target.h.
6256 (gdb_target_find_new_threads): New.
6257 * wrapper.h (gdb_target_find_new_threads): New declaration.
6258
254f582e
JK
62592011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6260
6261 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6262 even if !TARGET_HAS_EXECUTION.
6263
63524580
JK
62642011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6265
6266 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6267 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6268 bfd_get_synthetic_symtab.
6269 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6270 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6271 parameter parent, remove the call to add_separate_debug_objfile.
6272 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6273 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6274 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6275 parent, new comment for it, call add_separate_debug_objfile for it.
6276 (symbol_file_add_separate): Pass objfile as the parameter parent,
6277 remove the call to add_separate_debug_objfile.
6278 (symbol_file_add_from_bfd): New parameter parent, pass it.
6279 (symbol_file_add): Pass NULL to the new parameter parent.
6280 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6281
90359a16
JK
62822011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6283
6284 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6285 BSF_SYNTHETIC.
6286
626e7282
JK
62872011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6288
6289 Fix Python access to inlined frames.
6290 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6291 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6292
cf31e6f9
TT
62932011-04-15 Tom Tromey <tromey@redhat.com>
6294
6295 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6296
c8d895f1
GB
62972011-04-15 Gary Benson <gbenson@redhat.com>
6298
6299 * MAINTAINERS: Add myself to write-after-approval section.
6300
56a9aa1d
MF
63012011-04-14 Mike Frysinger <vapier@gentoo.org>
6302
6303 * remote-sim.c (sim_command_completer): New function.
6304 (_initialize_remote_sim): Set completer to sim_command_completer.
6305
ba770c9c
TJB
63062011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6307
6308 * breakpoint.c (print_exception_catchpoint): Rename to ...
6309 (print_it_exception_catchpoint): ... this.
6310 (gnu_v3_exception_catchpoint_ops): Update with new name
6311 for print_it_exception_catchpoint.
6312
51bf2553
EBM
63132011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6314
6315 * MAINTAINERS: Add myself for write after approval privileges.
6316
d242658c
MP
63172011-04-13 Marek Polacek <mpolacek@redhat.com>
6318
6319 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6320
4a4106ca
TJB
63212011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6322
6323 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6324
26063d49
TJB
63252011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6326
6327 * breakpoint.c (save_breakpoints): Verify whether
6328 breakpoint_ops.print_recreate is defined before calling it.
6329
7782b183
GB
63302011-04-11 Gary Benson <gbenson@redhat.com>
6331
6332 Fix failure with --enable-maintainer-mode.
6333 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6334
e8930875
JK
63352011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6336
6337 Code cleanup.
6338 * symtab.c (search_symbols): Reorder the KIND description in the
6339 function comment. Remove the unused 4th element of types, types2,
6340 types3 and types4. New gdb_assert on KIND.
6341 (symtab_symbol_info): Remove the unused 4th element of classnames.
6342 New gdb_assert on KIND.
6343 * symtab.h (enum search_domain): New warning in the enum comment.
6344 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6345 TYPES_DOMAIN.
6346
b4f2f049
JK
63472011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6348
6349 Fix crash of gdb save-index on a STABS file.
6350 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6351 PSYMTABS_ADDRMAP.
6352
60d5a603
JK
63532011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6354
6355 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6356 * dwarf2read.c: Include ctype.h.
6357 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6358 functions.
6359 (dwarf2_add_field): Fix new_field->accessibility by calling
6360 dwarf2_default_access_attribute. Restructure setting accessibility
6361 vs. virtuality.
6362 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6363 is_private and is_protected by calling
6364 dwarf2_default_access_attribute.
6365
e0f68161
KB
63662011-04-08 Kevin Buettner <kevinb@redhat.com>
6367
6368 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6369 to the initialization.
6370
2e1aae43
SE
63712011-04-08 Steve Ellcey <sje@cup.hp.com>
6372
6373 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6374 initalization.
6375
c6ca3dab
PM
63762011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6377
6378 Remove support for old Cygwin 1.5 versions.
6379 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6380 function on old Cygwin version.
6381 * windows-nat.c: Remove cygwin version check and always define
6382 __USEWIDE for Cygwin compilation.
6383
bd18283a
YQ
63842011-04-07 Yao Qi <yao@codesourcery.com>
6385
6386 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6387 and TO.
6388 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6389 (arm_copy_svc): Remove parameters INSN and TO.
6390 (decode_svc_copro): Update caller.
6391 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6392 from function pointer `copy_svc_os'.
6393
8c8dba6d
YQ
63942011-04-07 Yao Qi <yao@codesourcery.com>
6395
6396 * arm-tdep.c (cleanup_branch): Set a correct return address in
6397 LR for ARM and Thumb.
6398
59d7bcaf
JK
63992011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6400
6401 Code cleanup.
6402 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6403 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6404 in the function comment, a new note on values compatibility.
6405 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6406 * symtab.h (SYMBOL_HASH_NEXT): New.
6407
e7db58ea
TJB
64082011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6409
6410 * ppc-linux-nat.c (check_condition): Add len output parameter.
6411 Set it based on the memory region referenced in the condition
6412 expression. Update all callers.
6413
9f743ef6
JK
64142011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6415
6416 Fix crash regression on systems featuring .gdb_index.
6417 * objfiles.c (free_objfile): Move the
6418 forget_cached_source_info_for_objfile call earlier. Comment it.
6419 Extend the comment for objfile_free_data.
6420
9182c5bc
JK
64212011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6422
6423 Fix regression of displaying the debug format.
6424 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6425 subfile.
6426
04bd08de
TT
64272011-04-04 Tom Tromey <tromey@redhat.com>
6428
6429 * cli/cli-interp.c (struct captured_execute_command_args):
6430 Remove.
6431 (do_captured_execute_command): Remove.
6432 (safe_execute_command): Use TRY_CATCH.
6433 * cli/cli-script.c (struct wrapped_read_command_file_args):
6434 Remove.
6435 (wrapped_read_command_file): Remove.
6436 (script_from_file): Use TRY_CATCH.
6437 * exceptions.c (catch_exception): Remove.
6438 * exceptions.h (catch_exception): Remove.
6439 (deprecated_throw_reason): Update comment.
6440 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6441 argument to 'context'.
6442 (mi_execute_command): Use TRY_CATCH.
6443 * remote.c (struct start_remote_args): Remove.
6444 (remote_start_remote): Update; change arguments.
6445 (remote_open_1): Use TRY_CATCH.
6446
58438ac1
TT
64472011-04-04 Tom Tromey <tromey@redhat.com>
6448
6449 * tracepoint.c (scope_info): Update.
6450 * symtab.c (decode_line_spec): Update.
6451 * python/python.c (gdbpy_decode_line): Update.
6452 * linespec.h (decode_line_1): Update.
6453 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6454 (decode_compound, find_method, symtab_from_filename)
6455 (decode_variable): Likewise.
6456 * cli/cli-cmds.c (edit_command): Update.
6457 (list_command): Update.
6458 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6459 argument.
6460 (create_breakpoint): Update.
6461 (until_break_command): Update.
6462 (addr_string_to_sals): Update.
6463 (decode_line_spec_1): Update.
6464
b78a6381
TT
64652011-04-04 Tom Tromey <tromey@redhat.com>
6466
6467 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6468 (do_captured_parse_breakpoint): Remove.
6469 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6470 Use TRY_CATCH directly.
6471
00174a86
TT
64722011-04-04 Tom Tromey <tromey@redhat.com>
6473
6474 * symtab.h (free_symtab): Remove.
6475 (forget_cached_source_info_for_objfile): Declare.
6476 * symmisc.c (free_symtab): Remove.
6477 * source.c (forget_cached_source_info_for_objfile): New function.
6478 (forget_cached_source_info): Use it.
6479 * objfiles.c (free_objfile): Simplify check before calling
6480 clear_current_source_symtab_and_line. Call
6481 forget_cached_source_info_for_objfile.
6482
30cc903e
TT
64832011-04-04 Tom Tromey <tromey@redhat.com>
6484
6485 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6486 (new_symtab): Don't set `free_code' on symtab.
6487 (new_linetable): Properly handle size==0.
6488 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6489 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6490 free_func.
6491 * jv-lang.c (struct jv_per_objfile_data): New.
6492 (jv_per_objfile_free): Free the data.
6493 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6494 (get_java_class_symtab): Set the `dict' field on the
6495 jv_per_objfile_data.
6496 (free_class_block): Remove.
6497 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6498 the symtab.
6499
0c2e6019
TT
65002011-04-04 Tom Tromey <tromey@redhat.com>
6501
6502 * symfile.c (reread_symbols): Update.
6503 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6504 field.
6505 * objfiles.c (allocate_objfile): Update.
6506 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6507 declare.
6508 * cp-namespace.c (lookup_symbol_file): Don't call
6509 lookup_possible_namespace_symbol.
6510 (initialize_namespace_symtab, get_possible_namespace_block)
6511 (free_namespace_block, cp_check_possible_namespace_symbols)
6512 (check_possible_namespace_symbols_loop)
6513 (check_one_possible_namespace_symbol)
6514 (lookup_possible_namespace_symbol): Remove.
6515 (maintenance_cplus_namespace): Replace with notice.
6516 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6517
554d387d
TT
65182011-04-04 Tom Tromey <tromey@redhat.com>
6519
6520 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6521 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6522 * symmisc.c (free_symtab): Don't free debugformat.
6523 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6524 (record_debugformat, record_producer): Document.
6525 * buildsym.c (end_symtab): Don't save debugformat and producer
6526 names on obstack.
6527 (end_symtab): Don't free debugformat and producer fields.
6528 (record_debugformat): Don't call xstrdup.
6529 (record_producer): Likewise.
6530
d4d4db8a
TT
65312011-04-04 Tom Tromey <tromey@redhat.com>
6532
6533 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6534 (source_line_charpos, source_charpos_line): Remove.
6535
8903c50d
TT
65362011-04-04 Tom Tromey <tromey@redhat.com>
6537
6538 * symtab.h (domain_enum): Split in two...
6539 (enum search_domain): New.
6540 (search_symbols): Update.
6541 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6542 redundant declarations.
6543 (search_symbols): Change 'kind' argument to search_domain.
6544 Update.
6545 (print_symbol_info): Likewise.
6546 (symtab_symbol_info): Likewise.
6547 * symfile.h (struct quick_symbol_functions)
6548 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6549 <expand_symtabs_matching>: Likewise.
6550 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6551 (expand_symtabs_matching_via_partial): Update.
6552 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6553 (dw2_expand_symtabs_for_function): Update.
6554 * block.h: Moved anonymous enum...
6555 * defs.h (enum block_enum): ... here. Now named.
6556
d9351f5f 65572011-04-03 Joel Brobecker <brobecker@adacore.com>
6558
6559 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6560 * version.in: Bump version to 7.3.50.20110403-cvs.
6561
d6e00af6
JB
65622011-04-03 Joel Brobecker <brobecker@adacore.com>
6563
6564 * NEWS: Create a new section for the next release branch.
6565 Rename the section of the current branch, now that it has
6566 been cut.
6567
2b9e5ea6
UW
65682011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6569
6570 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6571 for "fpscr" in target description.
6572
0cf03b49
JK
65732011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6574
6575 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6576 initialize it. Delay HASH initialization. Strip the part after open
6577 parenthesis for languages with qualifiers. Call do_cleanups.
6578
5d901a73
TT
65792011-04-01 Tom Tromey <tromey@redhat.com>
6580
6581 * utils.c (report_command_stats): Don't print `-' for negative
6582 number.
6583
b0dd7688
JB
65842011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6585
6586 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6587 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6588 typedefs.
6589
956a9fb9
JB
65902011-04-01 Joel Brobecker <brobecker@adacore.com>
6591
6592 * breakpoint.h (bpdisp_text): Add declaration.
6593 * breakpoint.c (bpdisp_text): Make non-static.
6594 * ada-lang.c: #include "mi/mi-common.h".
6595 (print_it_exception): Rewrite to improve GDB/MI output.
6596
3352110b
PA
65972011-04-01 Pedro Alves <pedro@codesourcery.com>
6598
6599 * arm-tdep.h (struct address_space): Add forward declaration.
6600
18819fa6
UW
66012011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6602
6603 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6604 * arm-tdep.c (arm_override_mode): New global.
6605 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6606 execution mode heuristics.
6607 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6608 second single-step breakpoint if needed, using
6609 arm_insert_single_step_breakpoint.
6610 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6611 ARM execution mode, do not call thumb_get_next_pc_raw.
6612 (arm_get_next_pc): Encode execution mode in return value. Call
6613 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6614 (arm_insert_single_step_breakpoint): New function.
6615 (arm_software_single_step): Call it.
6616 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6617 argument to return execution mode of sigreturn target.
6618 (arm_linux_syscall_next_pc): Use it.
6619 (arm_linux_copy_svc): Update call.
6620 (arm_linux_software_single_step): Call
6621 arm_insert_single_step_breakpoint.
6622
a6e293d1
JK
66232011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6624
6625 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6626 the comment.
6627
a4c8e806
TT
66282011-03-31 Tom Tromey <tromey@redhat.com>
6629
6630 * varobj.c (update_dynamic_varobj_children): Properly handle
6631 errors from iterator.
6632
df5c6c50
JK
66332011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6634
6635 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6636 struct linkage name twice.
6637
1dae3efc
TT
66382011-03-31 Tom Tromey <tromey@redhat.com>
6639
6640 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6641 missing ">" to message.
6642
f4f7ab05
TT
66432011-03-31 Tom Tromey <tromey@redhat.com>
6644
6645 * varobj.c (instantiate_pretty_printer): Remove duplicate
6646 'return'.
6647
fcf250e2
UW
66482011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6649
6650 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6651 if neither saved value nor register available (e.g. signal frame).
6652
ee6436e3
TJB
66532011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6654
6655 * macroexp.c (expand): Avoid uninitialized variable
6656 compiler warning.
6657
423f41a5
TJB
66582011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6659
6660 * breakpoint.c (break_range_command): Fix typo in comment.
6661
f1310107
TJB
66622011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6663 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6664
6665 Implement support for PowerPC BookE ranged breakpoints.
6666 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6667 * breakpoint.h (struct bp_target_info) <length>: New member
6668 variable.
6669 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6670 instead of struct breakpoint as argument, and also add ASPACE
6671 and BP_ADDR arguments. Update all callers.
6672 (struct breakpoint_ops) <print_one_detail>: New method.
6673 (struct breakpoint) <addr_string_range_end>: New member variable.
6674 * breakpoint.c (breakpoint_location_address_match): Add function
6675 prototype.
6676 (insert_bp_location): Set bl->target_info.length.
6677 (breakpoint_here_p): Call breakpoint_location_address_match.
6678 (moribund_breakpoint_here_p): Likewise.
6679 (regular_breakpoint_inserted_here_p): Likewise.
6680 (breakpoint_thread_match): Likewise.
6681 (bpstat_stop_status): Likewise.
6682 (bpstat_check_location): Move call to
6683 breakpoint_ops.breakpoint_hit to the top.
6684 (print_one_breakpoint_location): Call
6685 breakpoint_ops.print_one_detail if available.
6686 (breakpoint_address_match_range): New function.
6687 (breakpoint_location_address_match): Likewise.
6688 (breakpoint_locations_match): Compare the length field of the
6689 locations too.
6690 (hw_breakpoint_used_count): Count resources used by all locations
6691 in a breakpoint, and use breakpoint_ops.resources_needed if
6692 available.
6693 (breakpoint_hit_ranged_breakpoint): New function.
6694 (resources_needed_ranged_breakpoint): Likewise.
6695 (print_it_ranged_breakpoint): Likewise.
6696 (print_one_ranged_breakpoint): Likewise.
6697 (print_one_detail_ranged_breakpoint): Likewise.
6698 (print_mention_ranged_breakpoint): Likewise.
6699 (print_recreate_ranged_breakpoint): Likewise.
6700 (ranged_breakpoint_ops): New structure.
6701 (find_breakpoint_range_end): New function.
6702 (break_range_command): Likewise.
6703 (delete_breakpoint): Free addr_string_range_end.
6704 (update_breakpoint_locations): Add SALS_END argument. Update
6705 all callers. Calculate breakpoint length if a non-zero SALS_END
6706 is given. Call breakpoint_locations_match instead of
6707 breakpoint_address_match.
6708 (reset_breakpoint): Find SaL of the end of the range if B is a
6709 ranged breakpoint.
6710 (_initialize_breakpoint): Register break-range command.
6711 * defs.h (print_core_address): Add function prototype.
6712 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6713 function.
6714 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6715 (ppc_linux_remove_hw_breakpoint): Likewise.
6716 (_initialize_ppc_linux_nat): Initialize
6717 to_ranged_break_num_registers.
6718 * target.c (update_current_target): Add comment about
6719 to_ranged_break_num_registers.
6720 (target_ranged_break_num_registers): New function.
6721 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6722 New method.
6723 (target_ranged_break_num_registers): Add function prototype.
6724 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6725 * utils.c (print_core_address): ... here.
6726
02d20e4a
UW
67272011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6728
6729 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6730 variable compiler warning.
6731
ef23e705
TJB
67322011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6733
6734 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6735 code from here ...
6736 (re_set_breakpoint): ... to here ...
6737 (addr_string_to_sals): ... and here.
6738
311e6ab3
PM
67392011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6740
6741 * Makefile.in (SFILES): Add missing C sources.
6742 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6743 Add missing headers.
6744
acd1d99c
MF
67452011-03-29 Mike Frysinger <vapier@gentoo.org>
6746
6747 * .gitignore: New file.
6748
66ee2731
MF
67492011-03-29 Mike Frysinger <vapier@gentoo.org>
6750
6751 * NEWS: Mention new cfi device simulation.
6752
53832f31
TT
67532011-03-29 Tom Tromey <tromey@redhat.com>
6754
6755 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6756 otherwise anonymous types.
6757 (dwarf2_name): Likewise.
6758 * valops.c (value_struct_elt_for_reference): Refine artificial
6759 type logic. Call error if j==-1.
6760
09b58708
JK
67612011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6762
6763 Fix false GCC warning.
6764 * infcall.c (find_function_addr): Initialize funaddr.
6765
6023c606
PM
67662011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6767
6768 Fix mingw compilation with --enable-targets=all.
6769 * remote-mips.c (gdb_usleep.h): Include header.
6770 (mips_enter_debug): Use gdb_usleep instead of sleep.
6771
0e30163f
JK
67722011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6773
6774 Support resolution of STT_GNU_IFUNC via breakpoints.
6775 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6776 bp_gnu_ifunc_resolver_return.
6777 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6778 the loop. Support bp_gnu_ifunc_resolver and
6779 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6780 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6781 breakpoints.
6782 (bptype_string, print_one_breakpoint_location): Support
6783 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6784 (user_settable_breakpoint): Return true also for
6785 bp_gnu_ifunc_resolver.
6786 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6787 bp_gnu_ifunc_resolver_return.
6788 (set_breakpoint_location_function): New parameter explicit_loc,
6789 describe it. Call find_pc_partial_function_gnu_ifunc with new
6790 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6791 EXPLICIT_LOC is not set.
6792 (set_raw_breakpoint): Set EXPLICIT_LOC for
6793 set_breakpoint_location_function.
6794 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6795 set_breakpoint_location_function.
6796 (mention): Support bp_gnu_ifunc_resolver and
6797 bp_gnu_ifunc_resolver_return.
6798 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6799 set_breakpoint_location_function.
6800 (update_breakpoint_locations): Remove static.
6801 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6802 bp_gnu_ifunc_resolver_return.
6803 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6804 bp_gnu_ifunc_resolver_return.
6805 (update_breakpoint_locations): New declaration.
6806 * elfread.c: Include gdbthread.h and regcache.h.
6807 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6808 functions.
6809 (elf_gnu_ifunc_fns): Install them.
6810 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6811 (stub_gnu_ifunc_resolver_return_stop): New functions.
6812 (stub_gnu_ifunc_fns): Install them.
6813 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6814 and gnu_ifunc_resolver_return_stop.
6815 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6816
07be84bf
JK
68172011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6818
6819 STT_GNU_IFUNC reader implementation.
6820 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6821 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6822 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6823 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6824 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6825 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6826 (elf_gnu_ifunc_resolve_addr): New.
6827 (elf_symfile_read): Call elf_rel_plt_read.
6828 (elf_gnu_ifunc_fns): New.
6829 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6830 Install elf_gnu_ifunc_fns.
6831 * infcall.c (find_function_return_type): New function.
6832 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6833 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6834 (stub_gnu_ifunc_resolve_name): New functions.
6835 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6836 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6837 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6838
300f8e10
JK
68392011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6840
6841 Code cleanup for later STT_GNU_IFUNC support.
6842 * infcall.c (find_function_addr): Remove variable code, use explicit
6843 dereferences for it. Move VALUE_TYPE initialization later.
6844
11c81455
JK
68452011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6846
6847 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6848 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6849 (clear_pc_function_cache): Clear it.
6850 (find_pc_partial_function): Rename to ...
6851 (find_pc_partial_function_gnu_ifunc): ... this function. New
6852 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6853 (find_pc_partial_function): New wrapper for this function.
6854 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6855
0875794a
JK
68562011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6857
6858 GDB internal type support for STT_GNU_IFUNC.
6859 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6860 (elf_symtab_read): Set mst_text_gnu_ifunc for
6861 BSF_GNU_INDIRECT_FUNCTION.
6862 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6863 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6864 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6865 nodebug_got_plt_symbol.
6866 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6867 (TYPE_GNU_IFUNC): New.
6868 (struct main_type): New field flag_gnu_ifunc.
6869 (struct builtin_type): New field builtin_func_func.
6870 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6871 nodebug_got_plt_symbol.
6872 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6873 (in_gnu_ifunc_stub): New.
6874 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6875 mst_text_gnu_ifunc.
6876 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6877 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6878 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6879 in_gnu_ifunc_stub.
6880 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6881 * symtab.c (search_symbols): Likewise.
6882 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6883 and mst_slot_got_plt.
6884 (in_gnu_ifunc_stub): New declaration.
6885
d0fb5eae
JK
68862011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6887
6888 Support a ring of related breakpoints.
6889 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6890 other functions, add gdb_assert.
6891 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6892 watchpoint_del_at_next_stop.
6893 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6894 (bpstat_stop_status): Handle ring in related_breakpoint.
6895 (set_raw_breakpoint_without_location): Initialize ring in
6896 related_breakpoint.
6897 (delete_breakpoint): Handle ring in related_breakpoint, use
6898 watchpoint_del_at_next_stop.
6899 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6900
9cded63f
TT
69012011-03-28 Tom Tromey <tromey@redhat.com>
6902
6903 PR symtab/12441:
6904 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6905 with `language_minimal'.
6906
467d42c4
UW
69072011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6908
6909 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6910 instead of checking for STT_ARM_TFUNC symbol type.
6911
62853458
TT
69122011-03-25 Tom Tromey <tromey@redhat.com>
6913
6914 * linespec.c (symbol_found): Restore line-based result for
6915 non-LOC_LABEL symbols.
6916
a7417d46
KT
69172011-03-25 Kai Tietz <ktietz@redhat.com>
6918
6919 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6920 instead of strcmp for comparison.
6921 (tui_source_is_displayed): Likewise.
6922 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6923
55f1336d
TT
69242011-03-24 Mark Wielaard <mjw@redhat.com>
6925
f33edef8
PP
6926 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6927 complaint.
6928 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6929 (find_partial_die_in_comp_unit): Likewise in comment.
6930 (read_attribute_value): Likewise.
6931 (lookup_die_type): Likewise.
6932 (dwarf_form_name): Likewise.
6933 (dump_die_shallow): Likewise.
6934 (follow_die_ref_or_sig): Likewise.
55f1336d 6935
9ef07c8c
TT
69362011-03-24 Tom Tromey <tromey@redhat.com>
6937
6938 PR breakpoints/11816:
6939 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6940 (decode_compound): Update.
6941 (find_function_symbol): New function.
6942 (decode_dollar): Update.
6943 (decode_label): Add 'function_symbol' parameter. Handle
6944 function-relative labels.
6945 (decode_variable): Update.
6946 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6947 not its line. Set `special_display' and canonical name for
6948 labels.
6949
56435ebe
TT
69502011-03-24 Tom Tromey <tromey@redhat.com>
6951
6952 * linespec.h (struct linespec_result) <special_display>: New
6953 field.
6954 * breakpoint.h (struct breakpoint) <display_canonical>: New
6955 field.
6956 * breakpoint.c (print_breakpoint_location): Respect
6957 display_canonical.
6958 (create_breakpoint_sal): Add 'display_canonical' parameter.
6959 (create_breakpoints_sal): Update.
6960 (create_breakpoint): Update.
6961
7efd8fc2
TT
69622011-03-24 Tom Tromey <tromey@redhat.com>
6963
6964 * symtab.c (decode_line_spec): Update.
6965 * linespec.c (build_canonical_line_spec): Change type of
6966 'canonical'.
6967 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6968 (find_method, decode_all_digits, decode_dollar, decode_label)
6969 (symbol_found): Likewise.
6970 (init_linespec_result): New function.
6971 * breakpoint.c (struct captured_parse_breakpoint_args)
6972 <canonical_p>: New field, replaces addr_string_p.
6973 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6974 'addr_string'.
6975 (parse_breakpoint_sals): Likewise.
6976 (do_captured_parse_breakpoint): Update.
6977 (create_breakpoint): Use struct linespec_result.
6978 (until_break_command): Update.
6979 (breakpoint_re_set_one): Update.
6980 (decode_line_spec_1): Update.
6981 * linespec.h (struct linespec_result): New.
6982 (init_linespec_result): Declare.
6983
788c8b10
PA
69842011-03-23 Pedro Alves <pedro@codesourcery.com>
6985
6986 * regcache.c (regcache_raw_read): If the target didn't supply a
6987 given raw register, mark it as unavailable.
6988
0ba1096a
KT
69892011-03-23 Kai Tietz <ktietz@redhat.com>
6990
6991 * breakpoint.c (clear_command): Use filename_cmp
6992 instead of strcmp for comparison.
6993 * buildsym.c (watch_main_source_file_lossage): Likewise.
6994 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6995 checking just for slash.
6996 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6997 strrchr and filename_cmp instead of strcmp for filenames.
6998 (add_old_header_file): Use filename_cmp
6999 instead of strcmp for comparison.
7000 * exec.c (exec_set_section_address): Likewise.
7001 * macrotab.c (macro_lookup_inclusion): Likewise.
7002 (macro_lookup_inclusion): Likewise.
7003 * elfread.c (_initialize_elfread): Likewise.
7004 (elfstab_offset_sections): Likewise.
7005 (elfstab_offset_sections): Use lbasename instead of
7006 strrchr.
7007 * mdebugread.c (parse_partial_symbols): Likewise.
7008 (arse_partial_symbols): Use filename_(n)cmp instead of
7009 str(n)cmp for comparison.
7010 * minsyms.c (lookup_minimal_symbol): Likewise.
7011 * psymtab.c (read_psymtabs_with_filename): Likewise.
7012 * solib.c (solib_read_symbols): Likewise.
7013 (reload_shared_libraries_1): Likewise.
7014 * symmisc.c (maintenance_print_symbols): Likewise.
7015 * symfile.c (separate_debug_file_exists): Likewise.
7016 (reread_symbols): Likewise.
7017 (find_separate_debug_file_by_debuglink): Likewise.
7018 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7019 * source.c (add_path): Likewise.
7020 * symtab.c (filename_seen): Likewise.
7021 (file_matches): Likewise.
7022 (print_symbol_info): Likewise.
7023 (maybe_add_partial_symtab_filename): Likewise.
7024 (make_source_files_completion_list): Likewise.
7025 * xml-syscall.c (init_sysinfo): Likewise.
7026 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7027 IS_DIR_SEPARATOR for checking for trailing path separator.
7028
dd90784c
JK
70292011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7030
7031 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7032 label abort_expression.
7033 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7034 DWARF_VALUE_OPTIMIZED_OUT.
7035
3167638f
JK
70362011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7037
7038 Code cleanup.
7039 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7040 to linkage_name. Invert its value. Update the function comment.
7041 (c_type_print_varspec_suffix): Invert it at the caller.
7042 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7043
ce406537
PA
70442011-03-22 Pedro Alves <pedro@codesourcery.com>
7045
7046 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7047 errors when reading the `stop_pc'.
7048 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7049 get_frame_pc.
7050
da5d4055
PM
70512011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7052
7053 * NEWS: Document gdb.Write stream keyword.
7054
29e0eb9c
JK
70552011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7056
7057 Revert:
7058 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7059 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7060 (dwarf2_add_field): Fix new_field->accessibility for
7061 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7062
05775840
PM
70632011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7064
f33edef8 7065 PR python/12183
05775840
PM
7066
7067 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7068 other error classes. Do not print stack trace.
7069
a0cb7835
JK
70702011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7071
7072 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7073 (dwarf2_add_field): Fix new_field->accessibility for
7074 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7075
d19f7eee
UW
70762011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7077
7078 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7079 encountering a load via a non-SP register.
7080
4a2fbb50
UW
70812011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7082
7083 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7084 field in returned unwinder.
7085
3489610d
JB
70862012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7087
7088 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7089
8c1a34e7
JB
70902012-03-21 Joel Brobecker <brobecker@adacore.com>
7091
7092 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7093 of xmalloc.
7094
8fbca658
PA
70952012-03-18 Pedro Alves <pedro@codesourcery.com>
7096
7097 * frame.c (frame_unwind_register): Throw an error if unwinding the
7098 register failed.
7099 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7100 an unwind stop reason.
7101 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7102 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7103 UNWIND_UNAVAILABLE>: New.
7104 * inline-frame.c (inline_frame_unwind): Install
7105 default_frame_unwind_stop_reason.
7106 * frame-unwind.c: Include "exceptions.h".
7107 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7108 (default_frame_unwind_stop_reason): New.
7109 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7110 (default_frame_unwind_stop_reason): Declare.
7111 (struct frame_unwind) <stop_reason>: New function pointer.
7112
7113 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7114 * dwarf2-frame.c: Include exceptions.h.
7115 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7116 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7117 computing the CFA. If such an error was thrown, set
7118 unavailable_retaddr.
7119 (dwarf2_frame_unwind_stop_reason): New.
7120 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7121 unavailable.
7122 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7123 (dwarf2_signal_frame_unwind): Ditto.
7124
7125 * amd64-tdep.c: Include "exceptions.h".
7126 (struct amd64_frame_cache): New field "base_p".
7127 (amd64_init_frame_cache): Clear it.
7128 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7129 Avoid reading registers with functions that throw if the register
7130 is not necessary to compute the frame base.
7131 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7132 swallowing NOT_AVAILABLE_ERROR.
7133 (amd64_frame_unwind_stop_reason): New.
7134 (amd64_frame_this_id): Don't build a frame id if the frame base
7135 was unavailable.
7136 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7137 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7138 base_p if the frame base was computable.
7139 (amd64_sigtramp_frame_unwind_stop_reason): New.
7140 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7141 frame base was unavailable.
7142 (amd64_sigtramp_frame_unwind): Install
7143 amd64_sigtramp_frame_unwind_stop_reason.
7144 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7145 base_p if the frame base was computable.
7146 (amd64_epilogue_frame_unwind_stop_reason): New.
7147 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7148 frame base was unavailable.
7149 (amd64_epilogue_frame_unwind): Install
7150 amd64_epilogue_frame_unwind_stop_reason.
7151 * i386-tdep.c: Include "exceptions.h".
7152 (struct i386_frame_cache): New field "base_p".
7153 (i386_init_frame_cache): Clear it.
7154 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7155 Avoid reading registers with functions that throw if the register
7156 is not necessary to compute the frame base.
7157 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7158 swallowing NOT_AVAILABLE_ERROR.
7159 (i386_frame_unwind_stop_reason): New.
7160 (i386_frame_this_id): Don't build a frame id if the frame base was
7161 unavailable.
7162 (i386_frame_prev_register): Handle unavailable SP.
7163 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7164 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7165 base_p if the frame base was computable.
7166 (i386_epilogue_frame_unwind_stop_reason): New.
7167 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7168 base was unavailable.
7169 (i386_epilogue_frame_unwind): Install
7170 i386_epilogue_frame_unwind_stop_reason.
7171 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7172 base_p if the frame base was computable.
7173 (i386_sigtramp_frame_unwind_stop_reason): New.
7174 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7175 base was unavailable.
7176 (i386_sigtramp_frame_unwind): Install
7177 i386_sigtramp_frame_unwind_stop_reason.
7178 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7179 type's size, not the register's.
7180 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7181
7182 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7183 default_frame_unwind_stop_reason.
7184 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7185 (alpha_heuristic_frame_unwind): Ditto.
7186 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7187 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7188 * avr-tdep.c (avr_frame_unwind): Ditto.
7189 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7190 Ditto.
7191 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7192 * frv-tdep.c (frv_frame_unwind): Ditto.
7193 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7194 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7195 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7196 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7197 (hppa_stub_frame_unwind): Ditto.
7198 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7199 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7200 (ia64_libunwind_frame_unwind)
7201 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7202 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7203 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7204 * m32c-tdep.c (m32c_unwind): Ditto.
7205 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7206 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7207 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7208 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7209 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7210 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7211 * mep-tdep.c (mep_frame_unwind): Ditto.
7212 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7213 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7214 (mips_stub_frame_unwind): Ditto.
7215 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7216 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7217 * mt-tdep.c (mt_frame_unwind): Ditto.
7218 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7219 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7220 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7221 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7222 (s390_sigtramp_frame_unwind): Ditto.
7223 * score-tdep.c (score_prologue_unwind): Ditto.
7224 * sh-tdep.c (sh_frame_unwind): Ditto.
7225 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7226 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7227 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7228 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7229 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7230 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7231 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7232 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7233 (sparc64obsd_trapframe_unwind): Ditto.
7234 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7235 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7236 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7237 * v850-tdep.c (v850_frame_unwind): Ditto.
7238 * vax-tdep.c (vax_frame_unwind): Ditto.
7239 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7240 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7241 * xtensa-tdep.c (xtensa_unwind): Ditto.
7242
f23d1b92
PA
72432011-03-18 Pedro Alves <pedro@codesourcery.com>
7244
7245 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7246 there's always a frame. Use get_frame_pc_if_available instead of
7247 get_frame_pc, and if there's no PC available, don't look up a
7248 symtab.
7249
1d4f5741
PA
72502011-03-18 Pedro Alves <pedro@codesourcery.com>
7251
7252 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7253 unavailable PC.
7254
dba09041
PA
72552011-03-18 Pedro Alves <pedro@codesourcery.com>
7256
7257 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7258 gracefully.
7259
9a26e44c
PA
72602011-03-18 Pedro Alves <pedro@codesourcery.com>
7261
7262 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7263 * frame.c (frame_unwind_caller_pc_if_available): New.
7264 * stack.c (frame_info): Handle unavailable PC.
7265
72662011-03-18 Pedro Alves <pedro@codesourcery.com>
7267
7268 * frame.c (frame_unwind_pc): Rename to ...
7269 (frame_unwind_pc_if_available): ... this. New `pc' output
7270 parameter. Change return type to int. Gracefully handle
7271 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7272 happened, or 1 otherwise.
7273 (frame_unwind_pc): Reimplement on top of
7274 frame_unwind_pc_if_available.
7275 (get_frame_func): Rename to ...
7276 (get_frame_func_if_available): New `pc' output parameter. Change
7277 return type to int. Gracefully handle the PC not being available.
7278 (get_frame_func): Reimplement on top of
7279 get_frame_func_if_available.
7280 (select_frame): Handle the PC being unavailable.
7281 (get_prev_frame): Handle the PC being unavailable.
7282 (get_frame_pc_if_available): New.
7283 (get_frame_address_in_block_if_available): New.
7284 (find_frame_sal): Handle the frame PC not being available.
7285 * frame.h (get_frame_pc_if_available): Declare.
7286 (get_frame_address_in_block_if_available): Declare.
7287 (get_frame_func_if_available): Declare.
7288 * stack.c (print_frame_info): Handle the PC being unavailable.
7289 (find_frame_funname): Ditto.
7290 (print_frame): Handle the PC being unavailable.
7291 (get_frame_language): Ditto.
7292 * blockframe.c (get_frame_block): Ditto.
7293 * macroscope.c (default_macro_scope): Ditto.
7294 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7295
72962011-03-18 Pedro Alves <pedro@codesourcery.com>
7297
7298 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7299 NOT_AVAILABLE_ERROR when evaluating the location expression.
7300
73012011-03-18 Pedro Alves <pedro@codesourcery.com>
7302
7303 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7304 returning that the register piece is unavailable/optimized out.
7305 (write_pieced_value): Handle get_frame_register_bytes returning
7306 that the register piece is unavailable/optimized out when doing a
7307 read-modify write of a bitfield.
7308 * findvar.c (value_from_register): Handle get_frame_register_bytes
7309 returning that the register piece is unavailable/optimized out.
7310 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7311 and `unavailablep'. Throw error on bad debug info. Use
7312 frame_register instead of frame_register_read, to fill in the new
7313 arguments.
7314 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7315 and `unavailablep'.
7316 * valops.c: (value_assign): Adjust, and handle
7317 get_frame_register_bytes failing.
7318 * spu-tdep.c: Include exceptions.h.
7319 (spu_software_single_step): Adjust, and handle
7320 get_frame_register_bytes failing.
7321 (spu_get_longjmp_target): Ditto.
7322 * gdbarch.sh (register_to_value): Change to return int. New
7323 parameters `optimizedp' and `unavailablep'.
7324 * gdbarch.h, gdbarch.c: Regenerate.
7325 * i386-tdep.c (i386_register_to_value): Adjust to new
7326 gdbarch_register_to_value interface.
7327 * i387-tdep.c (i387_register_to_value): Ditto.
7328 * i387-tdep.h (i387_register_to_value): Ditto.
7329 * alpha-tdep.c (alpha_register_to_value): Ditto.
7330 * ia64-tdep.c (ia64_register_to_value): Ditto.
7331 * m68k-tdep.c (m68k_register_to_value): Ditto.
7332 * mips-tdep.c (mips_register_to_value): Ditto.
7333 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7334
0fdb4f18
PA
73352011-03-18 Pedro Alves <pedro@codesourcery.com>
7336
7337 * findvar.c (value_of_register): Mark the value as unavailable, if
7338 the register is unavailable.
7339 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7340 (frame_register): New `unavailablep' parameter.
7341 (frame_register_read): Update comment.
7342 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7343 Set it if the register is unavailable. If the register is
7344 unavailable, clear the output buffer.
7345 (frame_register): New `unavailablep' parameter. Pass it down.
7346 (frame_unwind_register): Adjust.
7347 (put_frame_register): Adjust.
7348 (frame_register_read): Adjust. Also return false if the register
7349 is not available.
7350 (frame_register_unwind_location): Adjust.
7351 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7352 is unavailable, mark the value accordingly.
7353 * stack.c (frame_info): Handle unavailable registers.
7354
e69aa73e
PA
73552011-03-18 Pedro Alves <pedro@codesourcery.com>
7356
7357 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7358 simplify, using regcache_cooked_read.
7359
05d1431c
PA
73602011-03-18 Pedro Alves <pedro@codesourcery.com>
7361
7362 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7363 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7364 (regcache_raw_read_unsigned, regcache_raw_read_part)
7365 (regcache_cooked_read, regcache_cooked_read_signed)
7366 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7367 (regcache_cooked_read_ftype): Change return to enum
7368 register_status.
7369 * regcache.c: Include exceptions.h
7370 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7371 (do_cooked_read): Change return to enum register_status. Always
7372 forward to regcache_cooked_read.
7373 (regcache_raw_read): Change return to enum register_status. If
7374 the register is not REG_VALID, memset the buffer. Return the
7375 register's status.
7376 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7377 return the register's status.
7378 (regcache_raw_read_unsigned): Ditto.
7379 (regcache_cooked_read): Change return to enum register_status.
7380 Assert that with read-only regcaches, the register's status must
7381 be known. If the regcache is read-only, and the register is not
7382 REG_VALID, memset the buffer. Return the register's status.
7383 (regcache_cooked_read_signed): Change return to enum
7384 register_status. Handle non-REG_VALID registers and return the
7385 register's status.
7386 (regcache_cooked_read_unsigned): Change return to enum
7387 register_status. Handle non-REG_VALID registers and return the
7388 register's status.
7389 (regcache_xfer_part, regcache_raw_read_part)
7390 (regcache_cooked_read_part): Change return to enum
7391 register_status. Return the register's status.
7392 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7393 unavailable.
7394 (regcache_dump): Handle unavailable cooked registers.
7395 * frame.c (do_frame_register_read): Adjust interface to match
7396 regcache_cooked_read_ftype.
7397 * gdbarch.sh (pseudo_register_read): Change return to enum
7398 register_status.
7399 * gdbarch.h, gdbarch.c: Regenerate.
7400
7401 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7402 register_status.
7403 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7404 register_status. If reading a raw register indicates the raw
7405 register is not valid, return the raw register's status,
7406 otherwise, return REG_VALID.
7407 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7408 register_status. Handle non-REG_VALID raw registers and return
7409 the register's status.
7410 * arm-tdep.c (arm_neon_quad_read)
7411 (arm_pseudo_read): Change return to enum register_status. Handle
7412 non-REG_VALID raw registers and return the register's status.
7413 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7414 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7415 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7416 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7417 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7418 register_status.
7419 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7420 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7421 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7422 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7423 (m32c_pseudo_register_read): Change return to enum
7424 register_status. Adjust.
7425 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7426 enum register_status. Return the register's status.
7427 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7428 register_status. Return the register's status.
7429 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7430 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7431 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7432 * rs6000-tdep.c (move_ev_register_func): New typedef.
7433 (e500_move_ev_register): Use it. Change return to enum
7434 register_status. Return the register's status.
7435 (do_regcache_raw_read): New function.
7436 (do_regcache_raw_write): New function.
7437 (e500_pseudo_register_read): Change return to enum
7438 register_status. Return the register's status. Use
7439 do_regcache_raw_read.
7440 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7441 (dfp_pseudo_register_read): Change return to enum register_status.
7442 Return the register's status.
7443 (vsx_pseudo_register_read): Ditto.
7444 (efpr_pseudo_register_read): Ditto.
7445 (rs6000_pseudo_register_read): Ditto.
7446 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7447 register_status. Return the register's status.
7448 * sh64-tdep.c (pseudo_register_read_portions): New function.
7449 (sh64_pseudo_register_read): Change return to enum
7450 register_status. Use pseudo_register_read_portions. Return the
7451 register's status.
7452 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7453 register_status. Return the register's status.
7454 * sh-tdep.c (pseudo_register_read_portions): New function.
7455 (sh_pseudo_register_read): Change return to enum register_status.
7456 Use pseudo_register_read_portions. Return the register's status.
7457 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7458 enum register_status. Return the register's status.
7459 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7460 * spu-tdep.c (spu_pseudo_register_read_spu)
7461 (spu_pseudo_register_read): Ditto.
7462 * xtensa-tdep.c (xtensa_register_read_masked)
7463 (xtensa_pseudo_register_read): Ditto.
7464 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7465
e10abd8f
PM
74662011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7467
7468 * python/py-value.c (valpy_getitem): Fix formatting of error function
7469 call.
7470
7ea6d463
PM
74712011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7472
7473 ARI fixes: Add missing internationalization markups throughout
7474 C source files.
7475 * darwin-nat-info.c: Ditto.
7476 * record.c: Ditto.
7477 * remote.c: Ditto.
7478 * mi/mi-main.c: Ditto.
7479
001083c6
PM
74802011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7481
7482 ARI fixes: Add missing internationalization markups throughout
7483 yacc files.
7484 * c-exp.y: Ditto.
7485 * cp-name-parser.y: Ditto.
7486 * f-exp.y: Ditto.
7487 * m2-exp.y: Ditto.
7488 * objc-exp.y: Ditto.
7489 * p-exp.y: Ditto.
7490
4f1cdeec
PM
74912011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7492
7493 ARI fixes: Messages should have no trailing new lines.
7494 * darwin-nat.c (mach_check_error): Remove trailing new line from
7495 warning function call message.
7496 * record.c (bfdcore_read): Idem for error call.
7497
28e698f1
PM
74982011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7499
7500 * common/signals.c (target_signal_from_host): Add _ markup to error
7501 function call message.
7502 (target_signal_to_host): Add _ markup and remove trailing new line
7503 from warning call message.
7504 (target_signal_from_command): Add _ markup to error function call
7505 message.
7506
99c3dc11
PM
75072011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7508
f33edef8 7509 PR python/12149
99c3dc11
PM
7510
7511 * python/python.c (gdbpy_write): Accept a stream argument and
7512 operate to the appropriate stream.
7513 (gdbpy_flush): Likewise.
7514 (_initialize_python): Add stream constants.
7515 (finish_python_initialization): Add GdbOutputErrorFile class.
7516
c20800be
KY
75172011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7518
7519 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7520
f4a1794a
KY
75212011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7522
7523 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7524 to store_signed_integer. Add debug message when relocating CALL
7525 instructions. Fix formatting of debug message.
7526 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7527
d4862372
JB
75282011-03-17 Joel Brobecker <brobecker@gnat.com>
7529
7530 * target.h (struct target_ops): Remove to_lookup_symbol field.
7531 (target_lookup_symbol): Delete macro.
7532 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7533 (update_current_target, setup_target_debug): Remove handling
7534 of to_lookup_symbol target_ops field.
7535 * ada-tasks.c (get_known_tasks_addr): Remove use of
7536 target_lookup_symbol.
7537 * coffread.c (coff_symtab_read): Likewise.
7538 * dbxread.c (read_dbx_symtab): Ditto.
7539
d645e32e
JB
75402011-03-17 Joel Brobecker <brobecker@gnat.com>
7541
7542 PR gdb/12116:
7543 * configure.ac: Add getthrds declaration check.
7544 * configure, config.in: Regenerate.
7545 * aix-thread.c (getthrds): Declare only if not already declared
7546 in procinfo.h. More declaration out of get_signaled_thread to
7547 global scope.
7548
29703da4
PM
75492011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7550
7551 * python/py-symtab.c: Populate symtab_object_methods,
7552 sal_object_methods.
7553 (stpy_is_valid): New function.
7554 (salpy_is_valid): Ditto.
7555 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7556 (sympy_is_valid): New function.
7557 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7558 (objfpy_is_valid): New function.
7559 * python/py-inferior.c: Populate inferior_object_methods.
7560 (infpy_is_valid): New function.
7561 * python/py-infthread.c: Populate thread_object_methods.
7562 (thpy_is_valid): New function.
7563 * python/py-block.c: Declare block_object_methods. Populate. Declare
7564 block_iterator_object_methods. Populate.
7565 (blpy_is_valid): New function.
7566 (blpy_iter_is_valid): Ditto.
7567
c00f8484
KS
75682011-03-16 Keith Seitz <keiths@redhat.com>
7569
7570 * linespec.c (find_methods): Canonicalize NAME before looking
7571 up the symbol.
7572 (name_end): New function.
7573 (keep_name_info): New function.
7574 (decode_line_1): Use keep_name_info.
7575 (decode_compound): Likewise.
7576 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7577 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7578
7579 PR c++/12273
7580 * linespec.c (locate_first_half): Keep overload information, too.
7581 (decode_compound): Use a string to represent break characters
7582 to escape the loop.
7583 If P points to a break character, do not increment it.
7584 For C++ and Java, keep overload information and relevant keywords.
7585 If we cannot find a symbol, search the minimal symbols.
7586
7587 PR c++/11734
7588 * linespec.c (decode_compound): Rename SAVED_ARG to
7589 THE_REAL_SAVED_ARG.
7590 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7591 single-quotes.
7592 Pass a valid block to lookup_symbol.
7593 (lookup_prefix_sym): Likewise.
7594 (find_method): Construct search name based on SYM_CLASS instead
7595 of SAVED_ARG.
7596 * psymtab.c (lookup_partial_symbol): Add language parameter.
7597 (lookup_symbol_aux_psymtabs): Likewise.
7598 Don't assume that the psymtab we found was the right one. Search
7599 for the desired symbol in the symtab to be certain.
7600 (psymtab_search_name): New function.
7601 (lookup_partial_symbol): Use psymtab_search_name.
7602 Add language parameter.
7603 (read_symtabs_for_function): Add language parameter and pass to
7604 lookup_partial_symbol.
7605 (find_symbol_file_from_partial): Likewise.
7606
c91513d8
PP
76072011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7608
7609 PR gdb/12528
7610 * dwarf2read.c (noop_record_line): New function.
7611 (dwarf_decode_lines): Ignore line tables for GCd functions.
7612
b37520b6
PM
76132011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7614
7615 Fix ARI warnings about new lines at the end of messages, which
7616 are unneeded as there is a new line added at the end of the message
7617 automatically.
7618 * darwin-nat.c (darwin_stop_inferior): Ditto.
7619 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7620 * dfp.c (decimal_to_number): Ditto.
7621 * exec.c (print_section_info): Ditto.
7622 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7623 * osdata.c (get_osdata): Ditto.
7624 * record.c (bfdcore_write): Ditto.
7625 * remote-mips.c (mips_readchar): Ditto.
7626 * remote.c (read_ptid): Ditto.
7627 * ser-mingw.c (ser_windows_raw): Ditto.
7628 * tracepoint.c (add_local_symbols): Ditto.
7629 * windows-nat.c (fake_create_process): Ditto.
7630
b08ee6a2
TT
76312011-03-16 Tom Tromey <tromey@redhat.com>
7632
7633 * tracepoint.c (stop_tracing): Don't declare.
7634 * event-top.c (after_char_processing_hook): Add `(void)'.
7635
9a6f1302
PM
76362011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7637
7638 * NEWS: Add Parameter sub-classing description.
7639
7ceb86b1
KT
76402011-03-16 Kai Tietz <ktietz@redhat.com>
7641
7642 * MAINTAINERS: Update my e-mail address.
7643
efeff6cf
AT
76442011-03-15 Andreas Tobler <andreast@fgznet.ch>
7645
7646 * MAINTAINERS: Add myself for write after approval privileges.
7647
681c238c
MS
76482011-03-15 Michael Snyder <msnyder@vmware.com>
7649
f3df5b08
MS
7650 * frame.c (find_frame_sal): Assert sym is not null.
7651
13f6513c
MS
7652 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7653
50412521
MS
7654 * objc-lang.c (selectors_info): Check strchr for null result.
7655
681c238c
MS
7656 * stabsread.c (define_symbol): Guard against bad stabstring input.
7657
6ced1581
PM
76582011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7659
7660 Remove trailing spaces and tabulations from pascal language
7661 support sources.
7662 p-exp.y: Ditto.
7663 p-lang.c: Ditto.
7664 p-lang.h: Ditto.
7665 p-valprint.c: Ditto.
7666
9373cf26
JK
76672011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7668
7669 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7670 than LOW. Comment it.
7671 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7672 HIGHPC not strictly higher than LOWPC.
7673
9a1edae6
PM
76742011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7675
7676 Fix formatting of function declarations returning a pointer in
7677 previous commit.
7678 * varobj.c (varobj_add_child): Ditto.
7679 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7680 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7681
24e9cda0
UW
76822011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7683
7684 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7685 for the "generic" vector ABI used with GCC 4.3 and later.
7686 (ppc64_sysv_abi_return_value): Likewise.
7687
76882011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7689
7690 * infcall.c (call_function_by_hand): Function return value is
7691 always a non_lval, even when using struct_return.
7692
c9174737
PA
76932011-03-15 Pedro Alves <pedro@codesourcery.com>
7694
7695 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7696 (map_display_numbers): New.
7697 (do_delete_display): New.
7698 (undisplay_command): Use map_display_numbers.
7699 (do_enable_disable_display): New.
7700 (enable_disable_display_command): New function.
7701 (enable_display): Delete.
7702 (enable_display_command): New.
7703 (disable_display_command): Reimplement.
7704 (_initialize_printcmd): Adjust "enable display" command to use
7705 `enable_display_command' as callback.
7706
350c6c65
PM
77072011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7708
7709 * NEWS: Add Python breakpoint 'stop' operation.
7710
824446ad
PM
77112011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7712
7713 * NEWS: Delete duplicate entry. Fix typo.
7714
2021ad3a
PM
77152011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7716
7717 Fix ARI warning about function names in first column.
7718 Put prototype declaration on same line as return type.
7719 * objc-exp.y: Ditto.
7720 * p-exp.y: Ditto.
7721 * python/py-stopevent.h: Ditto.
7722 For long function names, split parameters to
7723 allow function name on same line as return type.
7724 * solib-pa64.c: Ditto.
7725 * varobj.c: Ditto.
7726 * varobj.h: Ditto.
7727 For long function declaration, use single line.
7728 * hppa-tdep.h: Ditto.
7729 * inferior.h: Ditto.
7730
7371cf6d
PM
77312011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7732
7733 * python/python.h: Declare gdbpy_should_stop and
7734 gdbpy_breakpoint_has_py_cond.
7735 * python/python.c: Add python.h to includes. Remove python.h from
7736 HAVE_PYTHON definition
7737 (gdbpy_should_stop): New dummy function.
7738 (gdbpy_breakpoint_has_py_cond): New dummy function.
7739 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7740 sub-classing capabilities.
7741 (gdbpy_should_stop): New function.
7742 (gdbpy_breakpoint_has_py_cond): New function.
7743 (local_setattro): New function.
7744 * breakpoint.c (condition_command): Add check for Python 'stop'
7745 operation.
7746 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7747 operation function as part of stop/continue tests.
7748
37b50a69
TT
77492011-03-14 Tom Tromey <tromey@redhat.com>
7750
7751 PR gdb/12576:
7752 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7753 (needs_frame_dwarf_call): Likewise.
7754
eeae04df
PM
77552011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7756
7757 Fix ARI warning about functions without parameters that do not
7758 use (void).
7759 * breakpoint.c (all_tracepoints): Replace () by (void).
7760 * f-exp.y (match_string_literal): Ditto.
7761 (yylex): Ditto.
7762 * m2-exp.y (yylex): Ditto.
7763 * mep-tdep.c (current_me_module): Ditto.
7764 (current_options): Ditto.
7765 (current_cop_data_bus_width): Ditto.
7766 (current_cr_names): Ditto.
7767 (current_cr_is_float): Ditto.
7768 (current_ccr_names): Ditto.
7769 * objc-exp.y (yylex): Ditto.
7770 * p-exp.y (yylex): Ditto.
7771 * remote.c (send_interrupt_sequence): Ditto.
7772 * tracepoint.c (current_trace_status): Ditto.
7773 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7774 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7775
6dc3565d
MS
77762011-03-11 Michael Snyder <msnyder@vmware.com>
7777
1427fe5e
MS
7778 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7779 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7780 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7781 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7782 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7783
60bc018f
MS
7784 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7785 (delete_async_event_handler): Ditto.
7786
f3be5b64
MS
7787 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7788
4c2d5724
MS
7789 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7790
6dc3565d
MS
7791 * top.c (set_verbose): Assert showcmd was found.
7792
4e6ca6d5
MG
77932011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7794
7795 * xtensa-tdep.c (warning_once): Correct style issues.
7796
815a83e4
YQ
77972011-03-11 Yao Qi <yao@codesourcery.com>
7798
7799 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7800
f2eb0bc8
AS
78012011-03-11 Andreas Schwab <schwab@redhat.com>
7802
7803 * common/aclocal.m4: Remove.
7804
b801de47
MG
78052011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7806
7807 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7808 (xtensa_write_register, xtensa_read_register): Likewise.
7809 (xtensa_hextochar): Removed.
7810 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7811
dbab50de
MG
78122011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7813
7814 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7815 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7816 (xtensa_alloc_frame_cache): Add initialization for new fields.
7817 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7818 (warning_once): New function.
7819 (xtensa_insn_kind): New item c0opc_and.
7820 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7821 (call0_track_op): Change arguments. New local variable litbase.
7822 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7823 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7824 in the prologue.
dbab50de 7825 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7826 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7827 Add the variety of updates to handle extended prologues, which now can
7828 conduct dynamic stack adjustments.
7829 (call0_frame_cache): Likewise.
7830 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7831 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7832
b2c04452
MS
78332011-03-10 Michael Snyder <msnyder@vmware.com>
7834
f8f67713
MS
7835 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7836 (cmd_qtframe): Ditto.
7837 (cmd_qtbuffer): Ditto.
7838 (cmd_bigqtbuffer): Ditto.
7839
197f0a60
TT
78402011-03-10 Tom Tromey <tromey@redhat.com>
7841
7842 * tracepoint.c (trace_actions_command): Update.
7843 * thread.c (thread_apply_command): Update.
7844 * reverse.c (delete_bookmark_command): Update.
7845 (bookmarks_info): Update.
7846 * printcmd.c (undisplay_command): Update.
7847 * memattr.c (mem_enable_command): Update.
7848 (mem_disable_command): Update.
7849 (mem_delete_command): Update.
7850 * inferior.c (detach_inferior_command): Update.
7851 (kill_inferior_command): Update.
7852 (remove_inferior_command): Update.
7853 * cli/cli-utils.h (struct get_number_or_range_state): New.
7854 (init_number_or_range): Declare.
7855 (get_number_or_range): Update.
7856 * cli/cli-utils.c (init_number_or_range): New function.
7857 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7858 static variables.
7859 (number_is_in_list): Update.
7860 * breakpoint.h (get_tracepoint_by_number): Update.
7861 * breakpoint.c (map_breakpoint_numbers): Update for change to
7862 get_number_or_range.
7863 (find_location_by_number): Use get_number, not
7864 get_number_or_range.
7865 (trace_pass_set_count): New function.
7866 (trace_pass_command): Update for change to get_number_or_range.
7867 Rework loop logic.
7868 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7869 'state' parameter.
7870
ecec24e6
PM
78712011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7872
7873 * python/py-param.c (add_setshow_generic): Add set/show callback
7874 parameters. Register Python object context.
7875 (get_show_value): New function.
7876 (get_set_value): New function.
7877 (call_doc_function): New function.
7878 (get_doc_string): Move behind get_show_value/get_set_value.
7879
6d6c6b1f
JK
78802011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7881
7882 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7883
68d6df83
MG
78842011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7885
dbab50de 7886 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7887 (xtensa_write_register): Likewise.
7888 (xtensa_hextochar): Add comment and update to match coding conventions.
7889 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7890 (execute_l32e, execute_s32e, execute_code): Update comments.
7891 (xtensa_exception_handler_t): Update to match coding conventions.
7892 (xtensa_insn_kind): Likewise.
7893
85c9d6a6
MS
78942011-03-09 Michael Snyder <msnyder@vmware.com>
7895
7896 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7897
91495617
PA
78982011-03-09 Pedro Alves <pedro@codesourcery.com>
7899
7900 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7901
eb8c0621
TT
79022011-03-09 Tom Tromey <tromey@redhat.com>
7903
7904 * thread.c (restore_selected_frame): Handle frame_level == -1.
7905 (make_cleanup_restore_current_thread): Use
7906 get_selected_frame_if_set.
7907 * frame.h (get_selected_frame_if_set): Declare.
7908 * frame.c (get_selected_frame_if_set): New function.
7909
9f37bbcc
PA
79102011-03-09 Pedro Alves <pedro@codesourcery.com>
7911
7912 * cli/cli-cmds.c (shell_escape): Use lbasename.
7913 * coffread.c (coff_start_symtab): Constify parameter.
7914 (complete_symtab): Constify `name' parameter.
7915 (coff_symtab_read): Constify `filestring' local.
7916 (coff_getfilename): Constify return and `result' local.
7917 Use lbasename.
7918 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7919 * linux-fork.c (info_checkpoints_command): Use lbasename.
7920 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7921 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7922 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7923 * procfs.c (procfs_make_note_section): Use lbasename.
7924 * tui/tui-io.c (printable_part): Constity return and parameter.
7925 Use lbasename.
7926 (print_filename): Constify parameters, and local `s'.
7927 (tui_rl_display_match_list): Constify local `temp'.
7928
f8de3c55
JK
79292011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7930
7931 Revert:
7932 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7933 Fix DWARF-3+ DW_AT_accessibility default assumption.
7934 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7935 cu->header.version >= 3.
7936
d9837b00
YQ
79372011-03-09 Yao Qi <yao@codesourcery.com>
7938
7939 * common/Makefile.in: Remove.
7940 * common/configure: Remove.
7941 * common/configure.ac: Remove.
7942
e637a4f5
YQ
79432011-03-09 Yao Qi <yao@codesourcery.com>
7944
7945 Revert:
7946 2011-02-11 Yao Qi <yao@codesourcery.com>
7947
7948 * common/Makefile.in: Add copyright header.
7949
7950 2011-02-11 Yao Qi <yao@codesourcery.com>
7951
7952 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7953 libcommon.a.
7954 * configure.ac: Add common to sub dir.
7955 * configure: Regenerate.
7956
f976a05d
MG
79572011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7958
7959 * xtensa-tdep.c (call0_ret): New function.
7960 (xtensa_skip_prologue): Speed up analysis.
7961
57041825
MG
79622011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7963
7964 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7965 while executing MI command -data-list-changed-registers.
7966
08b9c608
MG
79672011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7968
7969 * xtensa-tdep.c (xtensa_read_register): New function.
7970 (xtensa_write_register): New function.
7971 (xtensa_find_register_by_name): New function.
7972 (xtensa_windowed_frame_cache): Update comments in type description.
7973 (xtensa_frame_cache): Likewise.
7974 (xtensa_window_interrupt_insn): New function.
7975 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7976 (xtensa_insn_kind): Add new instructions.
7977 (rwx_special_register): New function.
7978 (call0_classify_opcode): Add new instructions to the analysis.
7979 (a0_saved, a7_saved, a11_saved): New variables.
7980 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7981 (execute_l32e): New function.
7982 (execute_s32e): New function.
7983 (xtensa_exception_handler_t): New type.
7984 (execute_code): New function.
7985 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7986 analysis for Xtensa Window Exception handlers.
7987
4d1acb11
MG
79882011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7989
98689b25
MG
7990 * xtensa-tdep.c (TX_PS): New.
7991 (windowing_enabled): Update to count for Call0 ABI.
7992 (xtensa_hextochar): New.
7993 (xtensa_init_reggroups): Make algorithm generic.
7994 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7995
79962011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7997
7998 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 7999
d3f323f3
MS
80002011-03-08 Michael Snyder <msnyder@vmware.com>
8001
3dcabaa8
MS
8002 * i386-tdep.c (i386_follow_jump): Check return value of
8003 target_read_memory.
8004 (i386_analyze_struct_return): Ditto.
8005 (i386_skip_probe): Ditto.
8006 (i386_match_insn): Ditto.
8007 (i386_skip_noop): Ditto.
8008 (i386_analyze_frame_setup): Ditto.
8009 (i386_analyze_register_saves): Ditto.
8010 (i386_skip_prologue): Ditto.
8011 (i386_skip_main_prologue): Ditto.
8012
13b3fd9b
MS
8013 * target.c (read_whatever_is_readable): Fix memory leak.
8014
d3f323f3
MS
8015 * i386-tdep.c (i386_process_record): Document fall through.
8016
421d5c74
JK
80172011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8018
8019 Fix DWARF-3+ DW_AT_accessibility default assumption.
8020 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8021 cu->header.version >= 3.
8022
63154eca
PA
80232011-03-08 Pedro Alves <pedro@codesourcery.com>
8024
8025 * remote.c (remote_check_symbols): Skip if the target has no
8026 execution.
8027
f1a507a1
JB
80282011-03-08 Joel Brobecker <brobecker@adacore.com>
8029
8030 * target.c (read_whatever_is_readable): Reformat comment,
8031 with a minor typo fix. Minor reformatting of the code.
8032
36073a92
YQ
80332011-03-08 Yao Qi <yao@codesourcery.com>
8034
8035 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8036 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8037 Use cached result instead of calling displaced_in_arm_mode again.
8038 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8039 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8040 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8041 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8042 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8043 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8044 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8045 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8046 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8047 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8048 (arm_catch_kernel_helper_return): Likewise.
8049 * gdb/arm-tdep.h : Update function declarations.
8050
d3f323f3 80512011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8052
e0e40094
MS
8053 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8054
0b2381f5
MS
8055 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8056
0350914a
MS
8057 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8058
69feea6f
MS
8059 * elfread.c (elf_symtab_read): Stop memory leak.
8060
e6040cbd
MS
8061 * main.c (captured_main): Fix memory leak.
8062
052874e8
AS
80632011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8064
8065 * ada-lang.c (compare_names): Call is_name_suffix with string1
8066 instead of string2.
8067
b11896a5
TT
80682011-03-07 Tom Tromey <tromey@redhat.com>
8069
8070 * xcoffread.c (xcoff_sym_fns): Update.
8071 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8072 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8073 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8074 (symbol_file_add_with_addrs_or_offsets): Likewise.
8075 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8076 * somread.c (som_sym_fns): Update.
8077 * psymtab.h (require_partial_symbols): Declare.
8078 * psymtab.c (require_partial_symbols): New function.
8079 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8080 (ALL_OBJFILE_PSYMTABS): Undef.
8081 (ALL_PSYMTABS): Move from psympriv.h.
8082 (lookup_partial_symtab, find_pc_sect_psymtab)
8083 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8084 (find_last_source_symtab_from_partial)
8085 (forget_cached_source_info_partial)
8086 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8087 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8088 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8089 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8090 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8091 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8092 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8093 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8094 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8095 psymtabs.
8096 * mipsread.c (ecoff_sym_fns): Update.
8097 * machoread.c (macho_sym_fns): Update.
8098 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8099 (read_psyms): New function.
8100 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8101 (elf_sym_fns_lazy_psyms): New global.
8102 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8103 dwarf2_build_psymtabs.
8104 * dbxread.c (aout_sym_fns): Update.
8105 * coffread.c (coff_sym_fns): Update.
8106
fda326dd
TT
81072011-03-07 Tom Tromey <tromey@redhat.com>
8108
8109 * infrun.c (print_exited_reason): Include inferior id and pid in
8110 message.
8111
aeaec162
TT
81122011-03-07 Tom Tromey <tromey@redhat.com>
8113
8114 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8115 parameter.
8116 (target_has_execution_1): Update.
8117 (target_has_execution_current): Declare.
8118 (target_has_execution): Call target_has_execution_current.
8119 (default_child_has_execution): Update.
8120 * target.c (default_child_has_execution): Add 'the_ptid'
8121 parameter.
8122 (target_has_execution_1): Likewise.
8123 (target_has_execution_current): New function.
8124 (add_target): Update.
8125 (init_dummy_target): Update.
8126 * remote-m32r-sdi.c (m32r_has_execution): New function.
8127 (init_m32r_ops): Use it.
8128 * record.c (record_core_has_execution): Now static. Add
8129 'the_ptid' parameter.
8130 * inferior.c (have_live_inferiors): Don't save current thread.
8131 Use target_has_execution_1.
8132
08e14083
YQ
81332011-03-07 Yao Qi <yao@codesourcery.com>
8134
8135 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8136
c05d19c5
JB
81372011-03-07 Joel Brobecker <brobecker@adacore.com>
8138
8139 * elfread.c (elf_symtab_read): Minor reformatting.
8140
3e6ef9e4
JB
81412011-03-07 Joel Brobecker <brobecker@adacore.com>
8142
8143 * objc-lang.c (selectors_info): Minor reformatting.
8144
dbb8534f
JB
81452011-03-07 Joel Brobecker <brobecker@adacore.com>
8146
8147 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8148
dd70cc93
JB
81492011-03-07 Joel Brobecker <brobecker@adacore.com>
8150 Michael Snyder <msnyder@vmware.com>
8151
8152 * ada-valprint.c (ada_val_print_array): Move the declaration of
8153 "byte_order" and "elttype" inside the block where these variables
8154 are actually used. Remove some special handling for the case
8155 where "elttype" and "eltlen" are null. Replace by a comment
8156 and a couple of assertion checks.
8157
b27cf2b3
MS
81582011-03-05 Michael Snyder <msnyder@vmware.com>
8159
8160 * source.c (add_path): Replace semicolon at end of block.
8161 * dwarf2expr.c (execute_stack_op): Ditto.
8162
5387a0c6
MF
81632011-03-05 Mike Frysinger <vapier@gentoo.org>
8164
8165 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8166 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8167 (bfin-*-*): Likewise.
8168
e3aa49af
MS
81692011-03-05 Michael Snyder <msnyder@vmware.com>
8170
82ae4854
MS
8171 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8172 * mdebugread.c (parse_symbol): Ditto.
8173 * parse.c (parse_exp_in_context): Ditto.
8174 * source.c (add_path): Ditto.
8175 * utils.c (gnu_debuglink_crc32): Ditto.
8176 * varobj.c (variable_language): Ditto.
8177
e3aa49af
MS
8178 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8179
154f592e
MS
81802011-03-04 Michael Snyder <msnyder@vmware.com>
8181
da3ecdc6
MS
8182 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8183
9cc89665
MS
8184 * symfile.c (simple_overlay_update): Check for null return value
8185 from lookup_minimal_symbol.
8186
154f592e
MS
8187 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8188
63ffa6ee
TJB
81892011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8190
8191 * eval.c (parse_and_eval_address_1): Remove function.
8192 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8193 instead of parse_and_eval_address_1.
8194 * value.h (parse_and_eval_address_1): Remove prototype.
8195
a17d146e
MS
81962011-03-04 Michael Snyder <msnyder@vmware.com>
8197
8198 * remote.c (putpkt_binary): Document that case stmt falls through.
8199
1a6a67de
TJB
82002011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8201
8202 * breakpointc (print_it_typical): Move NULL check from here...
8203 (print_bp_stop_message): ... to here.
8204
488919c4
MS
82052011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8206
8207 * breakpoint.c (enable_command): Use break instead of continue,
8208 and fill in a missing break.
8209 (disable_command): Ditto.
8210
1e182ce8
UW
82112011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8212
8213 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8214 (terminal_save_ours): Remove misleading comment.
8215 (inflow_inferior_data_cleanup): Free ttystate.
8216 (inflow_inferior_exit): Likewise.
8217 (copy_terminal_info): Copy ttystate.
8218
8219 * serial.c (serial_copy_tty_state): New function.
8220 * serial.h (serial_copy_tty_state): Add prototype.
8221 (struct serial_ops): Add copy_tty_state callback.
8222 * ser-base.c (ser_base_copy_tty_state): New function.
8223 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8224 * ser-go32.c (dos_copy_tty_state): New function.
8225 (dos_ops): Install copy_tty_state callback.
8226 * ser-mingw.c (_initialize_ser_windows): Likewise.
8227 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8228 * ser-unix.c (hardwire_copy_tty_state): New function.
8229 (_initialize_ser_hardwire): Install it.
8230
b2c5f112
MS
82312011-03-04 Michael Snyder <msnyder@vmware.com>
8232
2abae994
MS
8233 * breakpoint.c (create_breakpoint): Add missing break statement.
8234
7f5936f9
MS
8235 Reverting this patch:
8236 * infcall.c (call_function_by_hand): Add break statements for lint.
8237
b2c5f112
MS
8238 Reverting this patch:
8239 * cli/cli-script.c (script_from_file): Add break for lint.
8240
42b1321c
MS
82412011-03-04 Michael Snyder <msnyder@vmware.com>
8242
8243 * solib.c (reload_shared_libraries_1): Close memory leak.
8244
3e2a0cee
TT
82452011-03-03 Tom Tromey <tromey@redhat.com>
8246
8247 PR gdb/12538:
8248 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8249 DW_STRING is NULL.
8250
58397cb7
MS
82512011-03-03 Michael Snyder <msnyder@vmware.com>
8252
2e3fd767
MS
8253 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8254 fields of struct 'st' to zero.
8255
58397cb7
MS
8256 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8257 sal.pspace before calling set_current_source_symtab_and_line.
8258
ced54c8f
YQ
82592011-03-03 Yao Qi <yao@codesourcery.com>
8260
8261 * Makefile.in (configure-common): Remove. Let Makefile
8262 in dir common to rebuild itself.
8263 (common/Makefile): Likewise.
8264
3351ea09
JB
82652011-03-03 Joel Brobecker <brobecker@adacore.com>
8266
8267 * utils.c (parse_escape): Add i18n markup in error message.
8268
bf9f652a
YQ
82692011-03-03 Yao Qi <yao@codesourcery.com>
8270
8271 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8272 ARM_PC_REGNUM.
8273 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8274 (displaced_write_reg, displaced_read_reg): Likewise.
8275 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8276 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8277 (cleanup_branch): Replace magic number 14 and 15 with
8278 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8279
d42de051
MS
82802011-03-02 Michael Snyder <msnyder@vmware.com>
8281
240f9570
MS
8282 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8283
10dd8b54
MS
8284 * cli/cli-script.c (script_from_file): Add break for lint.
8285
b98bd911
MS
8286 * mdebugread.c (parse_partial_symbols): Fix indent.
8287
3494b66d
MS
8288 * target-descriptions.c (tdesc_gdb_type): No need to call
8289 xstrdup, callee saves a copy.
8290
daac021a
MS
8291 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8292
c38d16a7
MS
8293 * infcall.c (call_function_by_hand): Add break statements for lint.
8294
905b671b
MS
8295 * utils.c (parse_escape): Escape the escape char.
8296
f2eb0bc8 8297 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8298 PyList_Append fails.
8299 (gdbpy_inferiors): Error out if build_inferior_list fails.
8300
8c6a60d1
MS
8301 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8302 a function call.
8303
d42de051
MS
8304 * record.c (record_restore): Move printf to before error return.
8305
4db71c0b
YQ
83062011-03-02 Yao Qi <yao@codesourcery.com>
8307
8308 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8309 is_thumb and insn_size.
8310 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8311 on both ARM and Thumb mode.
8312 (arm_process_displaced_insn): Set is_thumb and insn_size.
8313 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8314 (arm_displaced_step_fixup): Likewise.
8315
a9dc8dcc
MS
83162011-03-01 Michael Snyder <msnyder@vmware.com>
8317
53624a93
MS
8318 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8319
77766669
MS
8320 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8321
62d5b8da
MS
8322 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8323
5e9e105f
MS
8324 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8325
dc19db01
MS
8326 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8327 with xmalloc.
8328
5ce64950
MS
8329 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8330 which shadows function parameter.
8331
a0aa2878
MS
8332 * tracepoint.c (create_tsv_from_upload): Superfluous call
8333 to xstrdup. Callee already calls xstrdup.
8334
e325fb69
MS
8335 * linespec.c (decode_line_1): Remove unnecessary null check.
8336
21cbba77
MS
8337 * tracepoint.c (scope_info): Fix mem leak, remove underused
8338 variable.
8339
63360adc
MS
8340 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8341 superfluous null check.
8342
18ea20ac 8343 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8344 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8345
d014929c
MS
8346 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8347
6e9130cf
MS
8348 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8349 be null.
8350
5f01dbc0
MS
8351 * linespec.c (decode_line_1): Check for null before dereference.
8352
d684ab85
MS
8353 * reverse.c (record_restore): Move null-check to before pointer
8354 dereference.
8355
bfffb7e3
MS
8356 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8357
a9dc8dcc
MS
8358 * objc-lang.c (selectors_info): Add explanitory comment.
8359 (classes_info): Ditto.
8360
478fd957
UW
83612011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8362
8363 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8364 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8365 versions of the trampoline. Handle Thumb vs. ARM addresses.
8366 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8367 (arm_linux_init_abi): Install it.
8368 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8369 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8370
0480cefa
MS
83712011-02-28 Michael Snyder <msnyder@vmware.com>
8372
ac50ab3b
MS
8373 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8374 a little bigger, to avoid possibility of an overflow.
8375
f63fbe86
MS
8376 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8377 buffers a little bigger, to avoid possibility of an overflow.
8378
9e91a352
MS
8379 * coffread.c (coff_getfilename): Add check to avoid overflow.
8380
f2eb0bc8 8381 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8382 avoid overflow.
8383 (classes_info): Error out on too long REGEXP.
8384
098ab512
MS
8385 * infrun.c (handle_inferior_event): Remove unused function call.
8386
bcbd1de9
MS
8387 * fork-child.c (fork_inferior): Remove ifdef'd code and
8388 unused variable.
8389
2e456570
MS
8390 * linux-thread-db.c (attach_thread): Discard unused value.
8391
14571dad
MS
8392 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8393
a9cbf802
MS
8394 * remote.c (remote_get_noisy_reply): Discard unused value.
8395 (remote_vcont_resume): Ditto.
8396 (remote_stop_ns): Ditto.
8397
5715d26e
MS
8398 * linespec.c (decode_objc): Delete unused variable.
8399
4a9bca80
MS
8400 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8401
f47fb265
MS
8402 * dwarf2read.c (add_partial_symbol): Discard unused values.
8403 (read_base_type): Delete unused variable.
8404
e81cff30
MS
8405 * dbxread.c (read_dbx_symtab): Discard unused value.
8406
262acaeb
MS
8407 * eval.c (evaluate_subexp_standard): Delete unused variable,
8408 and discard unused values.
8409
df983543
MS
8410 * infcmd.c (_initialize_infcmd): Discard unused values.
8411
89acf84d
MS
8412 * stabsread.c (rs6000_builtin_type): Missing break statement.
8413
ab8b8aca
MS
8414 * dbxread.c (process_one_symbol): Discard unused value.
8415
6b4511ab
MS
8416 * coffread.c (coff_end_symtab): Delete unused variable.
8417
e8e80198
MS
8418 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8419 (dwarf2_add_typedef): Delete unused variable.
8420 (read_namespace): Ditto.
8421 (dwarf_decode_macros): Ditto.
8422
976aa66e
MS
8423 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8424
5b92b49f
MS
8425 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8426
91e8df85
MS
8427 * p-valprint.c (pascal_val_print): Discard unused value.
8428
899500d6
MS
8429 * utils.c (nquery): Call va_end before return;
8430 (yquery): Ditto.
8431 (query): Ditto.
8432
0480cefa
MS
8433 * proc-service.c (ps_plog): Call va_end before return.
8434
fb6a3ed3
TT
84352011-02-28 Tom Tromey <tromey@redhat.com>
8436
8437 * python/python.c (gdbpy_value_cst): New global.
8438 (_initialize_python): Initialize it.
8439 * python/python-internal.h (gdbpy_value_cst): Declare.
8440 * python/py-value.c (convert_value_from_python): Use
8441 gdbpy_value_cst.
8442
c05202a1
MS
84432011-02-28 Michael Snyder <msnyder@vmware.com>
8444
e463f587
MS
8445 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8446
c38eea1a
MS
8447 * breakpoint.c (catch_syscall_completer): Free malloced list.
8448
3ef09ab5
MS
8449 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8450
8f9a01ee
MS
8451 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8452 (lval_func_check_synthetic_pointer): Ditto.
8453 (lval_func_free_closure): Fix use-after-free.
c05202a1 8454
477d0d57
TT
84552011-02-28 Tom Tromey <tromey@redhat.com>
8456
8457 * psymtab.c (expand_partial_symbol_tables): Use
8458 ALL_OBJFILE_PSYMTABS.
8459
20937029
JK
84602011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8461
8462 * objc-lang.c (selectors_info): Error on too long REGEXP.
8463
907b7f4f
MS
84642011-02-28 Michael Snyder <msnyder@vmware.com>
8465
92e96192
MS
8466 * python/py-param.c (set_parameter_value): Add missing
8467 break statement.
8468
907b7f4f
MS
8469 * linux-record.c (record_linux_system_call): Add missing
8470 break statement.
8471
12c5a436
UW
84722011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8473
8474 * breakpoint.c (print_one_breakpoint_location): Remove unused
8475 argument PRINT_ADDRESS_BITS. Update callers.
8476 (print_one_breakpoint): Likewise.
8477
170b53b2
UW
84782011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8479
8480 * breakpoint.c (wrap_indent_at_field): New function.
8481 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8482 Allocate ui_stream locally instead of using STB argument.
8483 (print_one_breakpoint_location): Update call.
8484 * ui-out.c (ui_out_query_field): New function.
8485 * ui-out.h (ui_out_query_field): Add prototype.
8486
8ab1f94d
JB
84872011-02-28 Joel Brobecker <brobecker@adacore.com>
8488
8489 From Michael Snyder <msnyder@vmware.com>
8490 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8491
7d488639
MS
84922011-02-27 Michael Snyder <msnyder@vmware.com>
8493
ae179fba
MS
8494 * objc-lang.c (selectors_info): Prevent string overrun.
8495
086dbf66
MS
8496 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8497 error in strncpy.
8498
f2eb0bc8 8499 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8500 outer scope.
8501
7d488639
MS
8502 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8503 param with a local variable of the same name.
8504
3bd0f5ef
MS
85052011-02-27 Michael Snyder <msnyder@vmware.com>
8506
8507 * value.c (value_from_history_ref): New function.
8508 * value.h (value_from_history_ref): Export.
8509 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8510 to parse value history references.
8511 * cli/cli-utils.h (get_number_trailer): Update comment.
8512
85132011-02-27 Michael Snyder <msnyder@vmware.com>
8514
8515 * inferior.c (detach_inferior_command): Use get_number_or_range.
8516 (kill_inferior_command): Ditto.
8517 (remove_inferior_command): Ditto.
8518 (initialize_inferiors): Make command names plural.
8519 Update help strings.
8520
766062f6
MS
85212011-02-27 Michael Snyder <msnyder@vmware.com>
8522
8523 * darwin-nat-info.c: Fix comment typo.
8524 * dwarf2expr.h: Ditto.
8525 * fbsd-nat.c: Ditto.
8526 * fbsd-nat.h: Ditto.
8527 * frame-unwind.h: Ditto.
8528 * frame.h: Ditto.
8529 * hppa-hpux-tdep.c: Ditto.
8530 * i386-linux-nat.c: Ditto.
8531 * linux-nat.c: Ditto.
8532 * nbsd-nat.c: Ditto.
8533 * nbsd-nat.h: Ditto.
8534 * ppc-linux-tdep.c: Ditto.
8535 * serial.c: Ditto.
8536 * ui-file.h: Ditto.
8537 * tui/tui-winsource.c: Ditto.
8538
f2c4ead5
MS
85392011-02-26 Michael Snyder <msnyder@vmware.com>
8540
86b887df
MS
8541 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8542
66fd3b1e
MS
8543 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8544
8c814cdd
MS
8545 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8546 with a local variable of the same name.
8547
6d5e094a 8548 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8549 param with a local variable of the same name.
6d5e094a 8550 (i387_supply_xsave): Ditto.
e5b3d7d6 8551
5eee517d
MS
8552 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8553 that it does not shadow a function parameter.
8554
8fbf6b93
MS
8555 * i386-nat.c (i386_length_and_rw_bits): Document that case
8556 statement is meant to fall through.
8557
cb969d61
MS
8558 * expprint.c (dump_subexp_body_standard): Document that case
8559 statement is meant to fall through.
8560
f2c4ead5
MS
8561 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8562 dead if statement. Condition can't be false.
8563
b021a221
MS
85642011-02-25 Michael Snyder <msnyder@vmware.com>
8565
8566 * arm-tdep.c: Fix typos in comments.
8567 * bsd-uthread.c: Ditto.
8568 * completer.c: Ditto.
8569 * corelow.c: Ditto.
8570 * cp-namespace.c: Ditto.
8571 * cp-support.c: Ditto.
8572 * cris-tdep.c: Ditto.
8573 * dbxread.c: Ditto.
8574 * dwarf2read.c: Ditto.
8575 * frame.h: Ditto.
8576 * gdbtypes.h: Ditto.
8577 * inferior.h: Ditto.
8578 * mdebugread.c: Ditto.
8579 * mips-tdep.c: Ditto.
8580 * ppc-linux-nat.c: Ditto.
8581 * ppc-linux-tdep.c: Ditto.
8582 * printcmd.c: Ditto.
8583 * sol-thread.c: Ditto.
8584 * solib-frv.c: Ditto.
8585 * solist.h: Ditto.
8586 * sparc64-tdep.c: Ditto.
8587 * spu-tdep.c: Ditto.
8588 * stabsread.c: Ditto.
8589 * symfile.c: Ditto.
8590 * valops.c: Ditto.
8591 * varobj.c: Ditto.
8592 * vax-nat.c: Ditto.
8593 * python/py-block.c: Ditto.
8594 * python/py-symbol.c: Ditto.
8595 * python/py-symtab.c: Ditto.
8596 * python/py-value.c: Ditto.
8597 * tui/tui-win.c: Ditto.
8598
c82c0b55
MS
85992011-02-25 Michael Snyder <msnyder@vmware.com>
8600
8601 * inferior.c (print_inferior): Accept a string instead of an int
8602 for requested_inferiors, and use get_number_or_range to parse it.
8603 (info_inferiors_command): Pass args string to print_inferior.
8604 (initialize_inferiors): Change help string for info inferiors.
8605 * inferior.h (print_inferior): Export prototype change.
8606
ee00cd23
TT
86072011-02-25 Tom Tromey <tromey@redhat.com>
8608
8609 * common/ax.def (invalid2): Set to 0x31.
8610
0502ed8c
JK
86112011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8612
8613 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8614 L and plongest.
8615 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8616 use L and plongest.
8617 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8618
2c9de912
MS
86192011-02-24 Michael Snyder <msnyder@vmware.com>
8620
8621 * Makefile.in (clean): Make clean should remove generated files
8622 observer.h and observer.inc.
8623
a04b0428
JB
86242011-02-24 Joel Brobecker <brobecker@adacore.com>
8625
8626 Revert the following patch (not approved yet):
8627 2011-02-21 Hui Zhu <teawater@gmail.com>
8628 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8629 * ax-gdb.c (gen_printf_expr_callback): New function.
8630 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8631 * ax-general.c (ax_memcpy): New function.
8632 (ax_print): Handle "printf".
8633 (ax_reqs): Ditto.
8634 * ax.h (ax_memcpy): Forward declare.
8635 * common/ax.def (invalid2): Removed.
8636 (printf): New entry.
8637 * printcmd.c (printcmd.h): New include.
8638 (string_printf): New function.
8639 (ui_printf): Removed.
8640 (printf_command): Remove static. Call string_printf.
8641 (eval_command): Call string_printf.
8642 * printcmd.h: New file.
8643 * tracepoint.c (validate_actionline,
8644 encode_actions_1): handle printf_command.
8645
2b52013f
TT
86462011-02-23 Tom Tromey <tromey@redhat.com>
8647
8648 * ax-general.c (ax_pick): Add missing newline.
8649
e5a67952
MS
86502011-02-23 Michael Snyder <msnyder@vmware.com>
8651
8652 * breakpoint.c (breakpoint_1): Change first argument from an int
8653 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8654 breakpoints rather than just one. Use new function
e5a67952
MS
8655 'number_is_in_list' to implement.
8656 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8657 (watchpoints_info): Ditto.
8658 (tracepoints_info): Ditto.
8659 (maintenance_info_breakpoints): Ditto.
8660 (_initialize_breakpoint): Update help strings to reflect the fact
8661 that these functions can now take more than one argument.
8662 * cli/cli-utils.c (number_is_in_list): New function.
8663 * cli/cli-utils.h (number_is_in_list): Export.
8664
86652011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8666
8667 * memattr.c (mem_enable_command): Use get_number_or_range.
8668 (mem_disable_command): Ditto.
8669 (mem_delete_command): Ditto.
8670 (_initialize_mem): Tweak usage message to reflect multiple
8671 arguments.
8672
6e6fbe60
DE
86732011-02-22 Doug Evans <dje@google.com>
8674
8675 Add gdb.lookup_global_symbol python function.
8676 * NEWS: Add entry.
8677 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8678 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8679 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8680
79b97fa8
TT
86812011-02-22 Tom Tromey <tromey@redhat.com>
8682
8683 * language.c (language_class_name_from_physname): Rename
8684 'curr_language' argument to 'lang'; use in body.
8685
298f437a
MS
86862011-02-22 Michael Snyder <msnyder@vmware.com>
8687
8688 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8689
b7ea3126
PA
86902011-02-22 Pedro Alves <pedro@codesourcery.com>
8691
8692 * frame-unwind.h: Fix comment to mention the this frame, not the
8693 next.
8694
58ee6d60
TT
86952011-02-22 Tom Tromey <tromey@redhat.com>
8696
8697 * symfile.c (auto_solib_limit): Remove.
8698 * symfile.h (auto_solib_limit): Remove.
8699
36238dbc
JB
87002011-02-22 Joel Brobecker <brobecker@adacore.com>
8701
8702 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8703
aea5b279
MS
87042011-02-21 Michael Snyder <msnyder@vmware.com>
8705
8706 * gdbthread.h (print_thread_info): Change prototype.
8707 * thread.c (print_thread_info): Accept char* instead of int for
8708 requested_threads argument. Use new function number_is_in_list
8709 to determine which threads to list.
8710 (info_threads_command): Pass char* to print_thread_info.
8711 * cli/cli-utils.c (number_is_in_list): New function.
8712 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8713 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8714 print_thread_info.
8715 (print_one_inferior): Ditto.
8716 (mi_cmd_list_thread_groups): Ditto.
8717
8caa75ee
JK
87182011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8719
8720 * common/Makefile.in (CFLAGS): New.
8721 (COMPILE): Add $(CFLAGS).
8722
ea666128
TT
87232011-02-21 Tom Tromey <tromey@redhat.com>
8724
8725 * breakpoint.c (catch_syscall_command_1): Fix typo.
8726
e9cafbcc
TT
87272011-02-21 Tom Tromey <tromey@redhat.com>
8728
8729 * reverse.c: Include cli-utils.h.
8730 * printcmd.c: Include cli-utils.h.
8731 (string_printf): Use skip_spaces.
8732 * cli/cli-utils.h: New file.
8733 * cli/cli-utils.c: New file.
8734 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8735 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8736 * breakpoint.h (get_number, get_number_or_range): Move to
8737 cli-utils.h.
8738 * breakpoint.c: Include cli-utils.h.
8739 (get_number_trailer, get_number, get_number_or_range)
8740 (ep_skip_leading_whitespace): Move to cli-utils.c.
8741 (create_breakpoint_sal, find_condition_and_thread)
8742 (decode_static_tracepoint_spec, watch_command_1)
8743 (watch_maybe_just_location, ep_parse_optional_if_clause)
8744 (catch_fork_command_1, catch_exec_command_1)
8745 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8746 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8747 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8748 (HFILES_NO_SRCDIR): Add cli-utils.h.
8749 (cli-utils.o): New target.
8750
f67fd822
PM
87512011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8752
8753 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8754 before calling discard_all_inferiors.
8755
c9def01d
UW
87562011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8757
8758 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8759 (struct builtin_opencl_type): Remove.
8760 (builtin_opencl_type): Change return type to "struct type **".
8761 (lookup_opencl_vector_type): Update caller.
8762 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8763 (build_opencl_types): Install plain array of "struct type *"
8764 instead of "struct builtin_opencl_type".
8765
e3039479
UW
87662011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8767 Ulrich Weigand <uweigand@de.ibm.com>
8768
8769 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8770 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8771 (struct arm_linux_hwbp_cap): New type.
8772 (arm_linux_get_hwbp_cap): New function.
8773 (arm_linux_get_hw_breakpoint_count): Likewise.
8774 (arm_linux_get_hw_watchpoint_count): Likewise.
8775 (arm_linux_can_use_hw_breakpoint): Likewise.
8776 (arm_hwbp_type): New type.
8777 (arm_hwbp_control_t): Likewise.
8778 (struct arm_linux_hw_breakpoint): Likewise.
8779 (struct arm_linux_thread_points): Likewise.
8780 (arm_threads): New global variable.
8781 (arm_linux_find_breakpoints_by_tid): New function.
8782 (arm_hwbp_control_initialize): Likewise.
8783 (arm_hwbp_control_is_enabled): Likewise.
8784 (arm_hwbp_control_disable): Likewise.
8785 (arm_linux_hw_breakpoint_initialize): Likewise.
8786 (arm_linux_get_hwbp_type): Likewise.
8787 (arm_linux_hw_watchpoint_initialize): Likewise.
8788 (arm_linux_hw_breakpoint_equal): Likewise.
8789 (arm_linux_insert_hw_breakpoint1): Likewise.
8790 (arm_linux_remove_hw_breakpoint1): Likewise.
8791 (arm_linux_insert_hw_breakpoint): Likewise.
8792 (arm_linux_remove_hw_breakpoint): Likewise.
8793 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8794 (arm_linux_insert_watchpoint): Likewise.
8795 (arm_linux_remove_watchpoint): Likewise.
8796 (arm_linux_stopped_data_address): Likewise.
8797 (arm_linux_stopped_by_watchpoint): Likewise.
8798 (arm_linux_watchpoint_addr_within_range): Likewise.
8799 (arm_linux_new_thread): Likewise.
8800 (arm_linux_thread_exit): Likewise.
8801 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8802 related target callbacks. Register arm_linux_new_thread and
8803 arm_linux_thread_exit.
8804 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8805 * arm-tdep.c (arm_pc_is_thumb): Make global.
8806 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8807
b5db5dfc
UW
88082011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8809
8810 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8811 per-frame locations while within a function epilogue.
8812
e25b2cfa
PM
88132011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8814
8815 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8816 to GNU coding standards.
8817
4af53f97
PM
88182011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8819
8820 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8821 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8822 (ser_windows_close): Only call CancelIo if function exists.
8823 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8824 to check for existence of CancelIo function in kernel32 DLL.
8825
d0e92d82
HZ
88262011-02-21 Hui Zhu <teawater@gmail.com>
8827
8828 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8829 * ax-gdb.c (gen_printf_expr_callback): New function.
8830 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8831 * ax-general.c (ax_memcpy): New function.
8832 (ax_print): Handle "printf".
8833 (ax_reqs): Ditto.
8834 * ax.h (ax_memcpy): Forward declare.
8835 * common/ax.def (invalid2): Removed.
8836 (printf): New entry.
8837 * printcmd.c (printcmd.h): New include.
8838 (string_printf): New function.
8839 (ui_printf): Removed.
8840 (printf_command): Remove static. Call string_printf.
8841 (eval_command): Call string_printf.
8842 * printcmd.h: New file.
8843 * tracepoint.c (validate_actionline,
8844 encode_actions_1): handle printf_command.
8845
7d357efd
MS
88462011-02-19 Michael Snyder <msnyder@vmware.com>
8847
8848 * reverse.c (delete_one_bookmark): Argument is now bookmark
8849 id rather than pointer to bookmark struct.
8850 (delete_bookmark_command): Use get_number_or_range.
8851 (goto_bookmark_command): Parse with get_number instead of strtoul.
8852 (bookmark_1): New function. Print info for one bookmark.
8853 (bookmarks_info): Use get_number_or_range and bookmark_1.
8854
7a45ebd7
MS
88552011-02-18 Michael Snyder <msnyder@vmware.com>
8856
f2eb0bc8 8857 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8858 get_number_or_range.
65ebfb52 8859 (thread_apply_command): Ditto.
7a45ebd7 8860
94d5e490
TT
88612011-02-18 Tom Tromey <tromey@redhat.com>
8862
8863 * common/ax.def: New file.
8864 * ax.h (enum agent_op): Use ax.def.
8865 * ax-general.c (aop_map): Use ax.def.
8866
c7f96d2b
TT
88672011-02-18 Tom Tromey <tromey@redhat.com>
8868
8869 * ax-general.c (aop_map): Add pick and rot.
8870 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8871 <DW_OP_rot>: Implement.
8872 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8873 (ax_pick): Declare.
8874 * ax-general.c (ax_pick): New function.
8875
66694b75
TT
88762011-02-18 Tom Tromey <tromey@redhat.com>
8877
8878 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8879
eeaafae2
JK
88802011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8881 Tom Tromey <tromey@redhat.com>
8882
8883 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8884 make_symbol_overload_list_block with NULL BLOCK.
8885 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8886
3c3fe74c
PA
88872011-02-18 Pedro Alves <pedro@codesourcery.com>
8888
8889 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8890 * breakpoint.h (get_number_or_range): Declare.
8891 * printcmd.c (ALL_DISPLAYS): Declare.
8892 (delete_display): Reimplement taking a display pointer.
8893 (undisplay_command): Accept a range of displays to delete, using
8894 get_number_or_range.
8895
13163d80
PM
88962011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8897
8898 * c-valprint.c (c_val_print): Add embedded_offset to address
8899 for arrays of unspecified length.
8900 * p-valprint.c (pascal_val_print): Likewise.
8901
b434a28f
YQ
89022011-02-18 Yao Qi <yao@codesourcery.com>
8903
8904 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8905 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8906 (thumb_process_displaced_insn): New.
8907 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8908 call to arm_process_displaced_insn.
8909 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8910
9f6f94ff
TT
89112011-02-17 Tom Tromey <tromey@redhat.com>
8912
8913 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8914 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8915 compile_dwarf_to_ax. No longer static. Call
8916 dwarf2_compile_cfa_to_ax.
8917 (locexpr_tracepoint_var_ref): Update.
8918 (loclist_tracepoint_var_ref): Update.
8919 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8920 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8921 argument; add 'gdbarch' and 'pc'.
8922 (dwarf2_compile_cfa_to_ax): New function.
8923 (dwarf2_frame_cache): Update.
8924
e67ad678
JB
89252011-02-17 Joel Brobecker <brobecker@adacore.com>
8926
8927 * ada-lang.c (ada_type_of_array): Fix the size of the array
8928 in the case of an unconstrained packed array.
8929
946ebb0d
YQ
89302011-02-17 Yao Qi <yao@codesourcery.com>
8931
8932 * common/Makefile.in: Add more targets for make.
8933
1ba1b353
TT
89342011-02-16 Tom Tromey <tromey@redhat.com>
8935
8936 * dwarf2loc.c (unimplemented): Fix typo.
8937
b1bfef65
TT
89382011-02-16 Tom Tromey <tromey@redhat.com>
8939
8940 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8941 (compile_dwarf_to_ax) <default>: Use unimplemented.
8942 <DW_OP_deref>: Update.
8943 (disassemble_dwarf_expression): Update.
8944 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8945 (decode_locdesc): Update.
8946 * dwarf2expr.h (dwarf_stack_op_name): Update.
8947
5f1e6f19
TT
89482011-02-16 Tom Tromey <tromey@redhat.com>
8949
8950 * ax.h (struct aop_map) <name>: Now const.
8951
a0c78a73
PA
89522011-02-16 Tom Tromey <tromey@redhat.com>
8953
8954 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8955 than axs_rvalue.
8956
946ebb0d 89572011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
8958
8959 * infrun.c (get_displaced_step_closure_by_addr): New.
8960 * inferior.h: Declare it.
8961 * arm-tdep.c: (arm_pc_is_thumb): Call
8962 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8963 returns non-NULL.
8964
08807d5a
PA
89652011-02-16 Pedro Alves <pedro@codesourcery.com>
8966 Jan Kratochvil <jan.kratochvil@redhat.com>
8967
8968 gdb/
8969 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8970
29976f3f
PA
89712011-02-16 Pedro Alves <pedro@codesourcery.com>
8972 Jan Kratochvil <jan.kratochvil@redhat.com>
8973
8974 * value.c (value_contents_copy_raw): Extend describing comment.
8975 Assert that the destination contents we're overwriting are wholly
8976 available.
fb68ae73 8977 (value_contents_copy): Extend describing comment.
29976f3f 8978
cd24cfaa
PA
89792011-02-16 Pedro Alves <pedro@codesourcery.com>
8980 Jan Kratochvil <jan.kratochvil@redhat.com>
8981
8982 * value.c (value_available_contents_eq): Remove redundant local
8983 variables. Fix available contents comparision.
8984 * value.h (value_available_contents_eq): Extend describing
8985 comment.
8986
60bbf338
YQ
89872011-02-16 Yao Qi <yao@codesourcery.com>
8988
8989 * thread.c (info_threads_command): Add missing i18n markup and remove
8990 trailing newline.
8991
17450429
PP
89922011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8993
8994 * breakpoint.c (longjmp_names): New variable.
8995 (struct breakpoint_objfile_data): New type.
8996 (breakpoint_objfile_key): New variable.
8997 (msym_not_found): New variable.
8998 (msym_not_found_p): New predicate.
8999 (get_breakpoint_objfile_data): New function.
9000 (create_overlay_event_breakpoint): Check per-objfile cache for
9001 symbols first.
9002 (create_longjmp_master_breakpoint): Likewise.
9003 (create_std_terminate_master_breakpoint): Likewise.
9004 (create_exception_master_breakpoint): Likewise.
9005 (_initialize_breakpoint): Register per-objfile data key.
9006
af02033e
PP
90072011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9008
9009 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9010 parameter value.
9011 (create_longjmp_master_breakpoint): Loop over longjmp names.
9012 (create_std_terminate_master_breakpoint): Const-propagate parameter
9013 value.
9014 (update_breakpoints_after_exec): Adjust.
9015 (breakpoint_re_set): Adjust.
9016
60f98dde
MS
90172011-02-15 Michael Snyder <msnyder@vmware.com>
9018
cdf99611
MS
9019 * thread.c (info_threads_command): Process arg as thread id,
9020 or list of thread ids.
9021 (thread_find_command): New command.
9022 (_initialize_thread): Document argument for info threads.
9023 Document 'thread find' command.
9024 * NEWS: Document new command "thread find".
60f98dde 9025
0feedb2c
JK
90262011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9027
9028 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9029 * aclocal.m4: Regenerated with aclocal-1.11.1.
9030 * common/configure: Regenerate with autoconf-2.64.
9031
648cd113
KW
90322011-02-15 Ken Werner <ken.werner@de.ibm.com>
9033
9034 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9035 bool data type to a size of one byte.
9036
5657161f
PA
90372011-02-15 Pedro Alves <pedro@codesourcery.com>
9038 Jan Kratochvil <jan.kratochvil@redhat.com>
9039
9040 * target.c (memory_xfer_live_readonly_partial): Document where to
9041 look for interface description.
9042
494e194e
YQ
90432011-02-15 Yao Qi <yao@codesourcery.com>
9044
9045 PR tdep/12352
9046 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9047 order to store PC value on stack instead of text section.
9048
d9492458
TJB
90492011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9050
9051 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9052 the EFP register set size.
9053 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9054 data from the VMX register.
9055 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9056 and write data from/to the VMX register.
9057
cdf99611
MS
90582011-02-14 Michael Snyder <msnyder@vmware.com>
9059
9060 * command.h (enum command_class): New class 'no_set_class', for
9061 "show" commands without a corresponding "set" command.
9062 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9063 * copying.c (_initialize_copying): Ditto for "show copying" and
9064 "show warranty".
9065 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9066 "show version".
9067 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9068 which there is no corresponding "set" command (eg. "show copying").
9069
424447ee
PA
90702011-02-14 Pedro Alves <pedro@codesourcery.com>
9071 Jan Kratochvil <jan.kratochvil@redhat.com>
9072
9073 * exec.c (section_table_available_memory): Change `len' parameter
9074 type to ULONGEST.
9075 * exec.h (section_table_available_memory): Ditto.
9076 * value.h (read_value_memory): Rename the `offset' parameter to
9077 `embedded_offset'.
9078
c0f61f9c 90792011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9080 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9081
9082 * memrange.c (compare_mem_ranges): Mention sort order in
9083 describing comment.
9084 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9085 * tracepoint.c (traceframe_available_memory): Extend comment to
9086 mention what happens to RESULT when the target does not support
9087 the query.
9088
6bfc80c7
PA
90892011-02-14 Pedro Alves <pedro@codesourcery.com>
9090 Jan Kratochvil <jan.kratochvil@redhat.com>
9091
9092 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9093 range.
9094
e7303042
PA
90952011-02-14 Pedro Alves <pedro@codesourcery.com>
9096
9097 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9098 No longer handle NULL values.
9099
8af8e3bc
PA
91002011-02-14 Pedro Alves <pedro@codesourcery.com>
9101
9102 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9103 * value.c: Include "exceptions.h".
9104 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9105 generic error.
9106 * cp-abi.c: Include gdb_assert.h.
9107 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9108 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9109 errors.
9110 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9111 parameters. No longer returns -1 on error.
9112 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9113 `val' parameters.
9114 * cp-valprint.c: Include exceptions.h.
9115 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9116 the baseclass_offset. Handle unavailable base classes. Use
9117 val_print_invalid_address.
9118 * p-valprint.c: Include exceptions.h.
9119 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9120 when fetching the baseclass_offset. No longer expect
9121 baseclass_offset returning -1. Handle unavailable base classes.
9122 Use val_print_invalid_address.
9123 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9124 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9125 `embedded_offset' and `val' parameters. Adjust.
9126 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9127 parameter, and change its type to gdb_byte pointer. Add
9128 `embedded_offset' and `val' parameters. Adjust. No longer expect
9129 baseclass_offset returning -1.
9130 (value_dynamic_cast): Use value_contents_for_printing rather than
9131 value_contents. Adjust.
9132 (search_struct_field): No longer expect baseclass_offset returning
9133 -1.
9134 (search_struct_method): If reading memory from the target is
9135 necessary, wrap it in a new value to pass to baseclass_offset. No
9136 longer expect baseclass_offset returning -1.
9137 (find_method_list): No longer expect baseclass_offset returning
9138 -1. Use value_contents_for_printing rather than value_contents.
9139 * valprint.c (val_print_invalid_address): New function.
9140 * valprint.h (val_print_invalid_address): Declare.
9141 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9142 and `val' parameters. No longer expect baseclass_offset returning
9143 -1. Adjust.
9144 * gnu-v2-abi.c: Include "exceptions.h".
9145 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9146 parameters. Handle unavailable memory. Recurse through
9147 gnuv2_baseclass_offset directly, rather than through
9148 baseclass_offset. No longer returns -1 on not found, instead
9149 throw an error.
9150 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9151 `val' parameters. Adjust.
9152
1b28d0b3
PA
91532011-02-14 Pedro Alves <pedro@codesourcery.com>
9154
9155 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9156 almost but not quite adjacent.
9157
ec0a52e1
PA
91582011-02-14 Pedro Alves <pedro@codesourcery.com>
9159
9160 * value.h (value_entirely_available): Declare.
9161 * value.c (value_entirely_available): New function.
9162 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9163 real type if the pointer is unavailable.
9164
24e6bcee
PA
91652011-02-14 Pedro Alves <pedro@codesourcery.com>
9166
9167 * valops.c (value_repeat): Use read_value_memory instead of
9168 read_memory.
9169
39d37385
PA
91702011-02-14 Pedro Alves <pedro@codesourcery.com>
9171
9172 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9173 * value.c (value_contents_copy_raw, value_contents_copy): New
9174 functions.
9175 (value_primitive_field): Use value_contents_copy_raw instead of
9176 memcpy.
9177 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9178 memcpy.
9179 (value_array, value_slice): Ditto.
9180 * valarith.c (value_subscripted_rvalue): Use
9181 value_contents_copy_raw instead of memcpy.
9182
a3d34bf4
PA
91832011-02-14 Pedro Alves <pedro@codesourcery.com>
9184
9185 <unavailable> references.
9186
9187 * valops.c (get_value_at): Use value_from_contents_and_address,
9188 avoiding read_memory.
9189
9fc6d940
PA
91902011-02-14 Pedro Alves <pedro@codesourcery.com>
9191
9192 * c-valprint.c (c_val_print): Print a string with unavailable
9193 contents as an array.
9194
5467c6c8
PA
91952011-02-14 Pedro Alves <pedro@codesourcery.com>
9196
9197 * value.h (unpack_bits_as_long): Delete declaration.
9198 (unpack_value_bits_as_long): Declare.
9199 (unpack_value_field_as_long): Declare.
9200 (value_field_bitfield): Declare.
9201 * value.c (unpack_bits_as_long): Rename to...
9202 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9203 value parameters. Return the extracted result in a new output
9204 parameter. If the value contents are unavailable, return false,
9205 otherwise return true.
9206 (unpack_value_bits_as_long): New.
9207 (unpack_field_as_long): Rename to...
9208 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9209 Add embedded_offset and value parameters. Return the extracted
9210 result in a new output parameter. If the value contents are
9211 unavailable, return false, otherwise return true.
9212 (unpack_value_field_as_long): New.
9213 (unpack_field_as_long_1): New.
9214 (unpack_field_as_long): Reimplement as wrapper around
9215 unpack_value_field_as_long_1.
9216 (value_field_bitfield): New function.
9217 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9218 unpack_value_bits_as_long. Mark the value as unavailable, if it
9219 is unavailable.
9220 * jv-valprint.c (java_print_value_fields): Use
9221 value_field_bitfield.
9222 * p-valprint.c (pascal_object_print_value_fields): Use
9223 value_field_bitfield.
9224 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9225
3158c6ed
PA
92262011-02-14 Pedro Alves <pedro@codesourcery.com>
9227
9228 * value.c (get_internalvar_integer): Also return the int value of
9229 TYPE_CODE_INT INTERNALVAR_VALUE values.
9230 (set_internalvar): Don't special case TYPE_CODE_INT.
9231
9fbdca0d
PA
92322011-02-14 Pedro Alves <pedro@codesourcery.com>
9233
9234 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9235 INTERNALVAR_POINTER.
9236 <pointer>: Delete.
9237 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9238 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9239 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9240
c8c1c22f
PA
92412011-02-14 Pedro Alves <pedro@codesourcery.com>
9242
9243 * value.h (value_available_contents_eq): Declare.
9244 * value.c (find_first_range_overlap): New function.
9245 (value_available_contents_eq): New function.
9246 * valprint.c (val_print_array_elements): Use
9247 value_available_contents_eq.
9248 * ada-valprint.c (val_print_packed_array_elements): Use
9249 value_available_contents_eq.
9250 * jv-valprint.c (java_value_print): Use
9251 value_available_contents_eq.
9252
e6e4e701
PA
92532011-02-14 Pedro Alves <pedro@codesourcery.com>
9254
9255 * target.c (target_read_live_memory): New function.
9256 (memory_xfer_live_readonly_partial): New.
9257 (memory_xfer_partial): If reading from a traceframe, fallback to
9258 reading unavailable read-only memory from read-only regions of
9259 live target memory.
9260 * tracepoint.c (disconnect_tracing): Adjust.
9261 (set_current_traceframe): New, factored out from
9262 set_traceframe_number.
9263 (set_traceframe_number): Reimplement to only change the traceframe
9264 number on the GDB side.
9265 (do_restore_current_traceframe_cleanup): Adjust.
9266 (make_cleanup_restore_traceframe_number): New.
9267 (cur_traceframe_number): New global.
9268 (tfile_open): Set cur_traceframe_number to no traceframe.
9269 (set_tfile_traceframe): New function.
9270 (tfile_trace_find): If looking up a traceframe using any method
9271 other than by number, make sure the current tfile traceframe
9272 matches gdb's current traceframe. Update the current tfile
9273 traceframe if the lookup succeeded.
9274 (tfile_fetch_registers, tfile_xfer_partial)
9275 (tfile_get_trace_state_variable_value): Make sure the remote
9276 traceframe matches gdb's current traceframe.
9277 * remote.c (remote_traceframe_number): New global.
9278 (remote_open_1): Set it to -1.
9279 (set_remote_traceframe): New function.
9280 (remote_fetch_registers, remote_store_registers)
9281 (remote_xfer_memory, remote_xfer_partial)
9282 (remote_get_trace_state_variable_value): Make sure the remote
9283 traceframe matches gdb's current traceframe.
9284 (remote_trace_find): If looking up a traceframe using any method
9285 other than by number, make sure the current remote traceframe
9286 matches gdb's current traceframe. Update the current remote
9287 traceframe if the lookup succeeded.
9288 * infrun.c (fetch_inferior_event): Adjust.
9289 * tracepoint.h (set_current_traceframe): Declare.
9290 (get_traceframe_number, set_traceframe_number): Add describing
9291 comments.
9292
e6ca34fc
PA
92932011-02-14 Pedro Alves <pedro@codesourcery.com>
9294
9295 Mark pieces of values as unavailable if the corresponding memory
9296 is unavailable.
9297
9298 * valops.c: Include tracepoint.h.
9299 (value_fetch_lazy): Use read_value_memory.
9300 (read_value_memory): New.
9301 * value.h (read_value_memory): Declare.
9302 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9303 * exec.c (section_table_available_memory): New function.
9304 * exec.h (section_table_available_memory): Declare.
9305
2a7498d8
PA
93062011-02-14 Pedro Alves <pedro@codesourcery.com>
9307
9308 * Makefile.in (SFILES): Add memrange.c.
9309 (HFILES_NO_SRCDIR): Add memrange.h.
9310 (COMMON_OBS): Add memrange.o.
9311 * memrange.c: New file.
9312 * memrange.h: New file.
9313 * tracepoint.c: Include memrange.h.
9314 (struct mem_range): Delete.
9315 (mem_range_s): Delete.
9316 (traceframe_available_memory): New function.
9317 * tracepoint.h (traceframe_available_memory): Declare.
9318
b3b9301e
PA
93192011-02-14 Pedro Alves <pedro@codesourcery.com>
9320
9321 * target.h (struct traceframe_info): Forward declare.
9322 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9323 (struct target_ops) <to_traceframe_info>: New field.
9324 (target_traceframe_info): New.
9325 * target.c (update_current_target): Inherit and default
9326 to_traceframe_info.
9327 * remote.c (PACKET_qXfer_traceframe_info): New.
9328 (remote_protocol_features): Register qXfer:traceframe-info:read.
9329 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9330 (remote_traceframe_info): New.
9331 (init_remote_ops): Install it.
9332 (_initialize_remote): Install "set/show remote traceframe-info"
9333 commands.
9334 * tracepoint.h (parse_traceframe_info): Declare.
9335 * tracepoint.c (struct mem_range): New.
9336 (mem_range_s): New typedef.
9337 (struct traceframe_info): New.
9338 (traceframe_info): New global.
9339 (free_traceframe_info): New function.
9340 (clear_traceframe_info): New function.
9341 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9342 info.
9343 (build_traceframe_info): New function.
9344 (tfile_traceframe_info): New function.
9345 (init_tfile_ops): Install tfile_traceframe_info.
9346 (traceframe_info_start_memory, free_result): New functions.
9347 (memory_attributes, traceframe_info_elements): New globals.
9348 (parse_traceframe_info, get_traceframe_info): New functions.
9349 * features/traceframe-info.dtd: New file.
9350 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9351
4e07d55f
PA
93522011-02-14 Pedro Alves <pedro@codesourcery.com>
9353
9354 Base support for <unavailable> value contents.
9355
4e07d55f
PA
9356 * value.h (value_bytes_available): Declare.
9357 (mark_value_bytes_unavailable): Declare.
9358 * value.c (struct range): New struct.
9359 (range_s): New typedef.
9360 (ranges_overlap): New function.
9361 (range_lessthan): New function.
9362 (ranges_contain_p): New function.
9363 (struct value) <unavailable>: New field.
9364 (value_bytes_available): New function.
9365 (mark_value_bytes_unavailable): New function.
9366 (require_not_optimized_out): Constify parameter.
9367 (require_available): New function.
9368 (value_contents_all, value_contents): Require all bytes be
9369 available.
9370 (value_free): Free `unavailable'.
9371 (value_copy): Copy `unavailable'.
9372 * valprint.h (val_print_unavailable): Declare.
9373 * valprint.c (valprint_check_validity): Rename `offset' parameter
9374 to `embedded_offset'. If printing a scalar, check whether the
9375 value chunk is available.
9376 (val_print_unavailable): New.
9377 (val_print_scalar_formatted): Check whether the value is
9378 available.
9379 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9380 pretty-printing unavailable values.
9381
bc9a5551
JK
93822011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9383
9384 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9385 * c-typeprint.c (c_type_print_args): Update the function comment. New
9386 variable param_type, initialize it. Remove const/volatile qualifiers
9387 for language_cplus and !show_artificial. Use param_type.
9388
93b55aa1
JK
93892011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9390
9391 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9392 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9393 * symtab.h (struct symtab) <next>: Comment extension.
9394
181d9476
YQ
93952011-02-12 Yao Qi <yao@codesourcery.com>
9396
9397 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9398
b708a5c7
JK
93992011-02-11 Yao Qi <yao@codesourcery.com>
9400
9401 * common/Makefile.in: Add copyright header.
9402
c5187ac6
PA
94032011-02-11 Pedro Alves <pedro@codesourcery.com>
9404
9405 * infrun.c (proceed): Move switching out and in of tfind mode from
9406 here ...
9407 (fetch_inferior_event): ... to here.
9408
4f3e6fb7
YQ
94092011-02-11 Yao Qi <yao@codesourcery.com>
9410
9411 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9412 libcommon.a.
9413 * configure.ac: Add common to sub dir.
9414 * configure: Regenerate.
9415
b708a5c7
JK
94162011-02-11 Yao Qi <yao@codesourcery.com>
9417
9418 Build libcommon.a.
9419
9420 * common/Makefile.in: New.
9421 * common/configure.ac: New.
9422 * common/aclocal.m4: New.
9423 * common/configure: Generate.
9424
2287cc7e
PA
94252011-02-10 Pedro Alves <pedro@codesourcery.com>
9426
9427 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9428 side of the parenthesis.
9429
9430 Merge from GCC:
9431 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9432 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9433
fd62cb89
MS
94342011-02-08 Michael Snyder <msnyder@vmware.com>
9435
9436 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9437
56d2815c
JK
94382011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9439
9440 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9441 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9442 psubd and paddd.
9443
4f7d61a8
JK
94442011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9445
9446 PR 12361.
9447 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9448 phsubsw.
9449 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9450 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9451
54fcddd0
UW
94522011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9453
9454 * dwarf2read.c (read_subroutine_type): Set special calling
9455 convention flag for functions compiled by IBM XL C for OpenCL.
9456 * ppc-sysv-tdep.c: Include "dwarf2.h"
9457 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9458 calling convention.
9459 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9460 IBM OpenCL vector types calling convention.
9461 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9462 (ppc_sysv_abi_broken_return_value): Likewise.
9463 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9464 types calling convention.
9465 (ppc64_sysv_abi_return_value): Likewise.
9466 * spu-tdep.c: Include "dwarf2.h"
9467 (spu_return_value): Implement IBM OpenCL vector types calling
9468 convention.
9469
d6dafb7c
UW
94702011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9471
9472 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9473 correct ABI for AltiVec vector arguments.
9474
32b72a42
PA
94752011-02-07 Pedro Alves <pedro@codesourcery.com>
9476
9477 * valprint.c (val_print): Extend comment.
9478 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9479 interface explanation to val_print.
9480 (ada_val_print_array): Adjust comment to current interface.
9481 (print_field_values): Adjust comment to current interface.
9482 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9483 explanation to val_print.
9484 * f-valprint.c (f_val_print): Ditto.
9485 * jv-valprint.c (java_val_print): Ditto.
9486 * m2-valprint.c (m2_val_print): Ditto.
9487 * p-valprint.c (pascal_val_print): Ditto.
9488
9998af43
TJB
94892011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9490
9491 * breakpoint.c (parse_breakpoint_sals): Fix description.
9492
505500db 94932011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9494 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9495
9496 * python/py-inferior.c (python_on_normal_stop): New function.
9497 (python_on_resume): New function.
9498 (python_inferior_exit): New function.
9499 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9500 inferior_exit observers.
9501 * python/py-evtregistry.c: New file.
9502 * python/py-threadevent.c : New file.
9503 * python/py-event.c: New file.
9504 * python/py-evts.c: New file.
9505 * python/py-continueevent.c: New file.
9506 * python/py-bpevent.c: New file.
9507 * python/py-signalevent.c: New file.
9508 * python/py-exetiedevent.c: New file.
9509 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9510 Move struct breakpoint_object from here...
9511 * python/python-internal.h: ... to here.
9512 * python/py-event.h: New file.
9513 * python/py-events.h: New file.
9514 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9515 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9516 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9517 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9518 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9519 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9520 Add build rules for all the above.
9521
9e0ac564
TT
95222011-02-04 Tom Tromey <tromey@redhat.com>
9523
9524 * dwarf2read.c (dwarf2_section_empty_p): New function.
9525 (dwarf2_read_section): Use dwarf2_section_empty_p.
9526 (dwarf2_section_size): New function.
9527 (dwarf2_get_section_info): Unconditionally read section.
9528 (dwarf2_read_index): Use dwarf2_section_empty_p.
9529 (partial_read_comp_unit_head): Use dwarf2_section_size.
9530 (dwarf2_symbol_mark_computed): Likewise.
9531
eee5b35e
DD
95322011-02-04 David Daney <ddaney@caviumnetworks.com>
9533
9534 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9535
385203ed
DD
95362011-02-04 David Daney <ddaney@caviumnetworks.com>
9537
9538 * mips-linux-tdep.c: Include xml-syscall.h.
9539 (mips_linux_get_syscall_number): New function.
9540 (mips_linux_init_abi): Add calls to
9541 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9542 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9543 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9544 * syscalls/mips-n32-linux.xml: New file.
9545 * syscalls/mips-n64-linux.xml: New file.
9546 * syscalls/mips-o32-linux.xml: New file.
9547
9277c30c
UW
95482011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9549
9550 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9551 Complain about inverted range entries.
9552 (dwarf2_record_block_ranges): Likewise.
9553
a3be7890
TJB
95542011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9555
9556 Fix some typos.
9557 * breakpoint.c (update_watchpoint): Fix name of the
9558 update_global_location_list function.
9559 (print_one_breakpoint): Fix typo.
9560 (_initialize_breakpoint): Remove extra space in hbreak help
9561 string.
9562 * breakpoint.h (struct bp_location) <length>: Fix field
9563 description.
9564
041274d8
PA
95652011-02-04 Pedro Alves <pedro@codesourcery.com>
9566
9567 * regcache.c (registers_changed_ptid): Don't explictly always
9568 clear `current_regcache'. Only clear current_thread_ptid and
9569 current_thread_arch when PTID matches. Only reinit the frame
9570 cache if PTID matches the current inferior_ptid. Move alloca(0)
9571 call to ...
9572 (registers_changed): ... here.
9573
c1c2ab58
UW
95742011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9575
9576 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9577 starts with __stack_chk_guard as stack guard symbol.
9578
9011945e
AB
95792011-02-03 Andrew Burgess <aburgess@broadcom.com>
9580
9581 * disasm.c (compare_lines): Handle the end of sequence markers
9582 within the line table to better support disassembling over
9583 compilation unit boundaries.
9584
e0634ccf
UW
95852011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9586
9587 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9588 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9589 implementation even if no symbols are available.
9590 (thumb_analyze_prologue): Update call to skip_prologue_function.
9591 (arm_analyze_prologue): Likewise.
9592
0e9e9abd
UW
95932011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9594
9595 * arm-tdep.c: Include "observer.h".
9596 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9597 (arm_exidx_data_key): New static variable.
9598 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9599 (struct arm_exidx_data): Likewise.
9600 (arm_exidx_data_free): New function.
9601 (arm_compare_exidx_entries): Likewise.
9602 (arm_obj_section_from_vma): Likewise.
9603 (arm_exidx_new_objfile): Likewise.
9604 (arm_find_exidx_entry): Likewise.
9605 (arm_exidx_fill_cache): Likewise.
9606 (arm_exidx_unwind_sniffer): Likewise.
9607 (arm_exidx_unwind): New global variable.
9608 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9609 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9610 observer. Register arm_exidx_data_key as objfile data.
9611
2e9e421f
UW
96122011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9613
9614 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9615 due to accessing uninitialized variable. Fix indentation.
9616
580688f3
PA
96172011-02-02 Pedro Alves <pedro@codesourcery.com>
9618
9619 * c-valprint.c (c_value_print): When doing virtual base pointer
9620 adjustment, create a new value with adjusted contents rather than
9621 changing the contents of the value being printed (and getting it
9622 wrong).
9623
3d2c1d41
PA
96242011-02-02 Pedro Alves <pedro@codesourcery.com>
9625
9626 * xml-support.c (xml_find_attribute): New.
9627 (xinclude_start_include): Use it.
9628 * xml-support.h (xml_find_attribute): Declare.
9629 * memory-map.c (memory_map_start_memory)
9630 (memory_map_start_property): Use xml_find_attribute.
9631 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9632 xml_find_attribute.
9633 * remote.c (start_thread): Use xml_find_attribute.
9634 * solib-target.c (library_list_start_segment)
9635 (library_list_start_section, library_list_start_library)
9636 (library_list_start_list): Use xml_find_attribute.
9637 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9638 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9639 (tdesc_start_field): Use xml_find_attribute.
9640
0af3e2db
UW
96412011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9642
9643 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9644 (BUILD_OCL_VTYPES): Update.
9645
c1039e3c
JB
96462011-02-02 Joel Brobecker <brobecker@adacore.com>
9647
9648 * configure.ac: Work around non-GNU sed limitation when computing
9649 python version number.
9650 * configure: Regenerate.
9651
600ea1be
JK
96522011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9653
9654 Fix debug printing of TYPE_INSTANCE.
9655 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9656 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9657
56c12414
JK
96582011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9659
9660 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9661 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9662 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9663 * ada-operator.inc: Rename the file to ...
9664 * ada-operator.def: ... here, wrap all the entries by macro OP.
9665 * expprint.c (op_name_standard): Remove all the entries. Include
9666 "std-operator.def" instead.
9667 * expression.h (enum exp_opcode): Include "std-operator.def" and
9668 "ada-operator.def". Move all the entries ...
9669 * std-operator.def: ... here, wrap all the entries by macro OP.
9670
c52b559d
PP
96712011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9672
9673 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9674 * breakpoint.c (remove_jit_event_breakpoints): New function.
9675 * jit.c (jit_descriptor_addr): Delete.
9676 (registering_code): Delete.
9677 (clear_int): Delete.
9678 (jit_inferior_data): New variable.
9679 (struct jit_inferior_data): New type.
9680 (get_jit_inferior_data): New function.
9681 (jit_inferior_data_cleanup): New function.
9682 (jit_read_descriptor): Adjust.
9683 (jit_register_code): Adjust.
9684 (jit_breakpoint_re_set_internal): New function; move code here ...
9685 (jit_inferior_init): ... from here.
9686 (jit_breakpoint_re_set): Adjust.
9687 (jit_reset_inferior_data_and_breakpoints): New function.
9688 (jit_inferior_created_observer): Adjust.
9689 (jit_inferior_exit_hook): Adjust.
9690 (jit_executable_changed_observer): New function.
9691 (jit_event_handler): Adjust.
9692 (_initialize_jit): Adjust.
9693
e839132d
MS
96942011-01-31 Michael Snyder <msnyder@vmware.com>
9695
9696 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9697 line.
9698
47a80e90
TT
96992011-01-31 Tom Tromey <tromey@redhat.com>
9700
9701 PR python/12216:
9702 * python/python.c (execute_gdb_command): Call
9703 prevent_dont_repeat.
9704 * top.c (suppress_dont_repeat): New global.
9705 (dont_repeat): Use it.
9706 (prevent_dont_repeat): New function.
9707 * command.h (prevent_dont_repeat): Declare.
9708
45a43567
TT
97092011-01-31 Tom Tromey <tromey@redhat.com>
9710
9711 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9712 * python/py-breakpoint.c (bppy_set_silent): Use
9713 breakpoint_set_silent.
9714 (bppy_set_thread): Use breakpoint_set_thread.
9715 (bppy_set_task): Use breakpoint_set_task.
9716 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9717 (breakpoint_set_task): Declare.
9718 (make_breakpoint_silent): Remove.
9719 * breakpoint.c (breakpoint_set_silent): New function.
9720 (breakpoint_set_thread): Likewise.
9721 (breakpoint_set_task): Likewise.
9722 (make_breakpoint_silent): Remove.
9723
09d682a4
TT
97242011-01-31 Tom Tromey <tromey@redhat.com>
9725
9726 * breakpoint.h (user_breakpoint_p): Declare.
9727 * breakpoint.c (user_breakpoint_p): New function.
9728 (breakpoint_1): Use it.
9729 (save_breakpoints): Likewise.
9730
9c4ea6c5
JB
97312011-01-31 Joel Brobecker <brobecker@adacore.com>
9732
9733 * configure.ac: Add handling of Python distribution on Windows.
9734 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9735 sysconfig variables are not defined, then do not use them.
9736 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9737 instead. On Windows, return all paths using forward-slashes
9738 rather than backslashes.
9739
ac534cba
JB
97402011-01-31 Joel Brobecker <brobecker@adacore.com>
9741
9742 * configure.ac: Remove fallback behavior for building
9743 against Python. Remove tweaking of Python include path.
9744 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9745 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9746 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9747 Always restore CPPFLAGS and LIBS after linking test.
9748 * configure: Regenerated.
9749 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9750 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9751 * python/python-internal.h: Adjust includes of Python .h files.
9752
c2f0d045
JB
97532011-01-31 Joel Brobecker <brobecker@adacore.com>
9754
9755 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9756 in error message.
9757
6b0c4c1f
JB
97582011-01-31 Joel Brobecker <brobecker@adacore.com>
9759
9760 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9761 value test.
9762
672c9795
YQ
97632011-01-31 Yao Qi <yao@codesourcery.com>
9764
9765 * arm-linux-nat.c: Update calls to regcache_register_status
9766 instead of regcache_valid_p.
9767 * aix-thread.c: Likewise.
9768 * i386gnu-nat.c: Likewise.
9769
80b23b6a
JK
97702011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9771
9772 Fix crash.
9773 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9774 touching TYPE_FIELD_ARTIFICIAL.
9775
4cd712bd
RE
97762011-01-28 Richard Earnshaw <rearnsha@arm.com>
9777
9778 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9779 Committers.
9780
ffd5ec24
PA
97812011-01-28 Pedro Alves <pedro@codesourcery.com>
9782
9783 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9784 selected, don't try iterating over the traceframe's blocks.
9785 (tfile_has_stack): If there's no traceframe selected, then there's
9786 no stack.
9787 (tfile_has_registers): If there's no traceframe selected, then
9788 there's no registers.
9789
e8c9e0a1
PA
97902011-01-28 Pedro Alves <pedro@codesourcery.com>
9791
9792 * target.c (memory_xfer_partial): No need to restore shadows if we
9793 haven't read anything.
9794
de15c4ab
PA
97952011-01-28 Pedro Alves <pedro@codesourcery.com>
9796
9797 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9798 and val_print_scalar_formatted.
9799
9f41c731
PA
98002011-01-27 Pedro Alves <pedro@codesourcery.com>
9801
9802 * tracepoint.c (tfile_read): New.
9803 (tfile_open): Use it.
9804 (tfile_get_traceframe_address): Use it.
9805 (tfile_trace_find): Use it.
9806 (walk_blocks_callback_func): New typedef.
9807 (match_blocktype): New function.
9808 (traceframe_walk_blocks): New function.
9809 (traceframe_find_block_type): New function.
9810 (tfile_fetch_registers, tfile_xfer_partial)
9811 (tfile_get_trace_state_variable_value): Use
9812 traceframe_find_block_type and tfile_read.
9813
cdefc55d
KB
98142011-01-26 Kevin Buettner <kevinb@redhat.com>
9815
9816 * remote-mips.c: Add internationalization mark ups. Remove
9817 trailing \n from already marked up strings.
9818
a81766d8
TT
98192011-01-26 Tom Tromey <tromey@redhat.com>
9820
9821 * python/py-prettyprint.c (print_string_repr): Clear
9822 'addressprint' option when calling val_print_string.
9823 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9824 option when calling val_print_string.
9825
74aedc46
TT
98262011-01-26 Tom Tromey <tromey@redhat.com>
9827
9828 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9829 GDB_PY_LL_ARG.
9830 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9831 macros.
9832 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9833 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9834 (gdb_py_long_as_ulongest): New defines.
9835 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9836 (gdb_py_int_as_long): Declare.
9837 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9838 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9839 (valpy_long): Add comment.
9840 * python/py-utils.c (get_addr_from_python): Use
9841 gdb_py_long_as_ulongest. Handle overflow properly.
9842 (gdb_py_object_from_longest): New function.
9843 (gdb_py_object_from_ulongest): Likewise.
9844 (gdb_py_int_as_long): Likewise.
9845 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9846 * python/py-symtab.c (salpy_get_pc): Use
9847 gdb_py_long_from_ulongest.
9848 (salpy_get_line): Use PyInt_FromLong.
9849 * python/py-param.c (set_parameter_value): Use
9850 gdb_py_int_as_long.
9851 * python/py-lazy-string.c (stpy_get_address): Use
9852 gdb_py_long_from_ulongest.
9853 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9854 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9855 * python/py-breakpoint.c (bppy_set_thread): Use
9856 gdb_py_int_as_long.
9857 (bppy_set_task): Likewise.
9858 (bppy_set_ignore_count): Likewise.
9859 (bppy_set_hit_count): Likewise.
9860 * python/py-block.c (blpy_get_start): Use
9861 gdb_py_object_from_ulongest.
9862 (blpy_get_end): Likewise.
9863 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9864
e4f6d2ec
TJB
98652011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9866
9867 PR/symtab 11766:
9868 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9869 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9870 equality test for objfile, initialize addr_low if needed.
9871
b30aa278
PA
98722011-01-25 Pedro Alves <pedro@codesourcery.com>
9873
9874 * tui/tui-regs.c (tui_register_format): Remove dead code.
9875
ab2188aa
PA
98762011-01-25 Pedro Alves <pedro@codesourcery.com>
9877
9878 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9879 instead of print_scalar_formatted.
9880 (print_scalar_formatted): Don't handle 's' format strings here,
9881 and add an assertion that we never see such format here.
9882 * valprint.h (val_print_scalar_formatted): Declare.
9883 * valprint.c (val_print_scalar_formatted): New.
9884 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9885 instead of print_scalar_formatted.
9886 * jv-valprint.c (java_val_print): Ditto.
9887 * p-valprint.c (pascal_val_print): Ditto.
9888 * ada-valprint.c (ada_val_print_1): Ditto.
9889 * f-valprint.c (f_val_print): Ditto.
9890 * infcmd.c (registers_info): Ditto.
9891 * m2-valprint.c (m2_val_print): Ditto.
9892
66d61a4c
PA
98932011-01-25 Pedro Alves <pedro@codesourcery.com>
9894
9895 * m2-valprint.c (print_unbounded_array): Pass
9896 value_contents_for_printing rather than value_contents, to
9897 m2_print_array_contents. Also pass in the value.
9898
831adc1f
JK
98992011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9900
9901 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9902 (save_gdb_index_command): Switch to .gdb_index version 4.
9903
20622269
PA
99042011-01-25 Pedro Alves <pedro@codesourcery.com>
9905
9906 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9907 than frame_register, and always pass a valid value to val_print.
9908
585fdaa1
PA
99092011-01-25 Pedro Alves <pedro@codesourcery.com>
9910
9911 Centralize printing "<optimized out>".
9912
9913 * valprint.h (val_print_optimized_out): Declare.
9914 * cp-valprint.c (cp_print_value_fields): Use
9915 val_print_optimized_out.
9916 * jv-valprint.c (java_print_value_fields): Ditto.
9917 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9918 * printcmd.c (print_formatted): Ditto.
9919 * valprint.c (valprint_check_validity): Ditto.
9920 (value_check_printable): Ditto.
9921 (val_print_optimized_out): New.
9922
29ec5263
PA
99232011-01-25 Pedro Alves <pedro@codesourcery.com>
9924
9925 * infcmd.c (default_print_registers_info): Allocate values so to
9926 never pass a NULL value to val_print.
9927
de4127a3
PA
99282011-01-25 Pedro Alves <pedro@codesourcery.com>
9929
9930 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9931 boolean. Make sure to always pass a value that matches the
9932 contents buffer to callees. Preserve `address' for following
9933 iterations.
9934 * value.c (value_contents_for_printing_const): New.
9935 (value_address): Constify value argument.
9936 * value.h (value_contents_for_printing_const): Declare.
9937 (value_address): Constify value argument.
9938
ee99023e
PA
99392011-01-25 Pedro Alves <pedro@codesourcery.com>
9940
9941 * regcache.c (struct regcache_descr): Rename
9942 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9943 and sizeof_cooked_register_valid_p to
9944 sizeof_cooked_register_status.
9945 (init_regcache_descr): Adjust.
9946 (struct regcache): Rename register_valid_p field to
9947 register_status.
9948 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9949 (do_cooked_read): Adjust.
9950 (regcache_valid_p): Rename to ...
9951 (regcache_register_status): ... this. Adjust.
9952 (regcache_invalidate): Adjust.
9953 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9954 Adjust.
9955 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9956 as unavailable, not valid.
9957 (regcache_dump): Adjust.
9958 * regcache.h (enum register_status): New.
9959 (regcache_register_status): Declare.
9960 (regcache_invalidate): Delete declaration.
9961 * corelow.c (get_core_registers): Adjust.
9962 * tracepoint.c (tfile_fetch_registers): Adjust.
9963 * trad-frame.c (REG_VALUE): Rename to ...
9964 (TF_REG_VALUE): ... this.
9965 (REG_UNKNOWN): Rename to ...
9966 (TF_REG_UNKNOWN): ... this.
9967 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9968 * mi/mi-main.c (register_changed_p): Adjust.
9969
99e42fd8
PA
99702011-01-25 Pedro Alves <pedro@codesourcery.com>
9971
9972 * regcache.c (struct regcache_descr): Remove outdated comment.
9973 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9974 overallocate hack.
9975 (regcache_xmalloc): Rename to ...
9976 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9977 Allocate the regcache type accordingly.
9978 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9979 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9980 cooked registers, not raw.
9981 (regcache_dup_no_passthrough): Delete.
9982 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9983 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9984 mention obsolete write_register_bytes.
9985 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9986
f7605bc2
PA
99872011-01-25 Pedro Alves <pedro@codesourcery.com>
9988
9989 Stop remote_read_bytes from handling partial reads itself.
9990
9991 * remote-fileio.c: Include target.h.
9992 (remote_fileio_write_bytes): Delete.
9993 (remote_fileio_func_open, remote_fileio_func_write)
9994 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9995 target_read_memory.
9996 (remote_fileio_func_stat): Use target_read_memory and
9997 target_write_memory.
9998 (remote_fileio_func_gettimeofday): Use target_write_memory.
9999 (remote_fileio_func_system): Use target_read_memory.
10000 * remote.c (remote_write_bytes): Make it static.
10001 (remote_read_bytes): Don't handle partial reads here.
10002 * remote.h (remote_read_bytes): Delete declaration.
10003
efc0eabd
PA
100042011-01-25 Pedro Alves <pedro@codesourcery.com>
10005
10006 Simplify XML parsing a bit.
10007
10008 * xml-support.h (gdb_xml_parse_quick): Declare.
10009 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10010 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10011 parameter.
10012 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10013 gdb_xml_create_parser_and_cleanup_1.
10014 (gdb_xml_parse_quick): New.
10015 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10016 * osdata.c (osdata_parse): Ditto.
10017 * remote.c (remote_threads_info): Ditto.
10018 * solib-target.c (solib_target_parse_libraries): Ditto.
10019 * xml-syscall.c (syscall_parse_xml): Ditto.
10020 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10021
314d366a
KB
100222011-01-24 Kevin Buettner <kevinb@redhat.com>
10023
10024 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10025 with remote-mips.o added to gdb_target_obs.
10026 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10027
a491d753
PA
100282011-01-24 Pedro Alves <pedro@codesourcery.com>
10029
10030 * ada-valprint.c (val_print_packed_array_elements): Pass the
10031 correct struct value to val_print.
10032 (ada_val_print_1): Ditto.
10033
490f124f
PA
100342011-01-24 Pedro Alves <pedro@codesourcery.com>
10035
10036 Don't lose embedded_offset in printing routines throughout.
10037
10038 * valprint.h (val_print_array_elements): Change prototype.
10039 * valprint.c (val_print_array_elements): Add `embedded_offset'
10040 parameter, and adjust to pass it down to val_print, while passing
10041 `valaddr' or `address' unmodified. Take embedded_offset into
10042 account when checking repetitions.
10043 * c-valprint.c (c_val_print): Pass embedded_offset to
10044 val_print_array_elements instead of adjusting `valaddr' and
10045 `address'.
10046 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10047 embedded_offset to val_print_array_elements instead of adjusting
10048 `valaddr'.
10049 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10050 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10051 val_print_array_elements and pascal_object_print_value_fields
10052 instead of adjusting `valaddr'.
10053 (pascal_object_print_value_fields): Add `offset' parameter, and
10054 adjust to use it.
10055 (pascal_object_print_value): Add `offset' parameter, and adjust to
10056 use it.
10057 (pascal_object_print_static_field): Use
10058 value_contents_for_printing/value_embedded_offset, rather than
10059 value_contents.
10060 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10061 parameter, and adjust to use it. Use
10062 value_contents_for_printing/value_embedded_offset, rather than
10063 value_contents.
10064 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10065 (ada_val_print_array): Add `offset' parameter, and adjust to use
10066 it.
10067 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10068 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10069 Instead work with offsets. Use
10070 value_contents_for_printing/value_embedded_offset, rather than
10071 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10072 and use value_from_pointer to extract a target pointer, rather
10073 than value_from_longest.
10074 (print_variant_part): Add `offset' parameter. Replace
10075 `outer_valaddr' parameter by a new `outer_offset' parameter.
10076 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10077 (ada_value_print): Use
10078 value_contents_for_printing/value_embedded_offset, rather than
10079 value_contents.
10080 (print_record): Add `offset' parameter, and adjust to pass it
10081 down.
10082 (print_field_values): Add `offset' parameter. Replace
10083 `outer_valaddr' parameter by a new `outer_offset' parameter.
10084 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10085 Use value_contents_for_printing/value_embedded_offset, rather than
10086 value_contents.
10087 * d-valprint.c (dynamic_array_type): Use
10088 value_contents_for_printing/value_embedded_offset, rather than
10089 value_contents.
10090 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10091 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10092 (java_print_value_fields): Take `offset' into account. Don't
10093 re-adjust `valaddr'. Instead pass down adjusted offsets.
10094 (java_val_print): Take `embedded_offset' into account. Pass it to
10095 java_print_value_fields.
10096 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10097 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10098 down adjusted offsets.
10099 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10100 (f_val_print): Take `embedded_offset' into account.
10101
7bfc9434
JB
101022011-01-21 Joel Brobecker <brobecker@adacore.com>
10103
10104 * inflow.c: Include "gdbcmd.h".
10105 (interactive_mode): New static global, moved here from top.c.
10106 (show_interactive_mode): New function, moved here from top.c.
10107 use gdb_has_a_terminal instead of input_from_terminal_p to
10108 determine the current mode.
10109 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10110 setting.
10111 (_initialize_inflow): Add the "set/show interactive-mode"
10112 commands. Moved here from top.c, after having adjusted slightly
10113 the help text.
10114 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10115 to inflow.c.
10116 (input_from_terminal_p): Remove handling of "interactive-mode"
10117 setting, moved to infow.c.
10118 (init_main): Remove creation of the "set/show interactive-mode"
10119 commands, moved to inflow.c.
10120
44603653
JB
101212011-01-19 Joel Brobecker <brobecker@adacore.com>
10122
10123 * NEWS: Add entry for native ia64-hpux support.
10124
4694da01
TT
101252011-01-19 Tom Tromey <tromey@redhat.com>
10126
10127 PR mi/8618:
10128 * thread.c (free_thread): Free 'name'.
10129 (print_thread_info): Emit thread name. Change CLI output.
10130 (thread_name_command): New function.
10131 (do_captured_thread_select): Emit newline.
10132 (_initialize_thread): Register 'thread name' command.
10133 * target.h (struct target_ops) <to_thread_name>: New field.
10134 (target_thread_name): New macro.
10135 * target.c (update_current_target): Handle to_thread_name.
10136 * python/py-infthread.c (thpy_get_name): New function.
10137 (thpy_set_name): Likewise.
10138 (thread_object_getset): Add "name".
10139 * linux-nat.c (linux_nat_thread_name): New function.
10140 (linux_nat_add_target): Set to_thread_name.
10141 * gdbthread.h (struct thread_info) <name>: New field.
10142
10d44370
JB
101432011-01-18 Joel Brobecker <brobecker@adacore.com>
10144
10145 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10146 (ada_val_print_1): Likewise.
10147
e3acb115
JB
101482011-01-18 Joel Brobecker <brobecker@adacore.com>
10149
10150 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10151 upper limit address is not greater than the function end address
10152 when the upper limit could not be computed using the debugging
10153 info.
10154
dc92e161
TT
101552011-01-17 Tom Tromey <tromey@redhat.com>
10156
10157 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10158 get_regcomp_error.
10159 * utils.c: Include gdb_regex.h.
10160 (do_regfree_cleanup): New function.
10161 (make_regfree_cleanup): Likewise.
10162 (get_regcomp_error): Likewise.
10163 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10164
f55af66d
TT
101652011-01-17 Tom Tromey <tromey@redhat.com>
10166
10167 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10168 re_compile_fastmap.
10169
a5a44b53
PM
101702011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10171
10172 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10173 for internal variables.
10174 (last_was_structop): New static variable.
10175 (COMPLETE): New token.
10176 (field_exp): New rule to group all '.' suffix handling.
10177 Add mark_struct_expression calls when approriate to be able
10178 to correctly find fields for completion.
10179 (yylex): Adapt to handle field completion and set INTVAR when
10180 required.
10181
2c291032
YQ
101822011-01-14 Yao Qi <yao@codesourcery.com>
10183
10184 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10185 save_reggroup, restore_reggroup and all_reggroup.
10186
447b483c
JB
101872011-01-14 Joel Brobecker <brobecker@adacore.com>
10188
10189 * ada-valprint. (ada_printchar): Use the correct type length
10190 in call to ada_emit_char.
10191 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10192
7b64a93b
PM
101932011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10194
10195 * solib-som.h (hpux_major_release): Declare variable here.
10196 * solib-som.c: Remove <sys/utsname.h> header.
10197 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10198 (hpux_major_release): Make global, change default value to
10199 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10200 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10201 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10202 Add "solib-som.h" header.
10203 (set_hpux_major_release): New function.
10204 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10205
4e18c053
MF
102062011-01-14 Mike Frysinger <vapier@gentoo.org>
10207
10208 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10209
a9df6b22
JB
102102011-01-14 Joel Brobecker <brobecker@adacore.com>
10211
10212 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10213 new-line at end of warning message.
10214 (ia64_hpux_store_register): Remove trailing new-line at end of
10215 error message.
10216 * ia64-hpux-tdep.c: Rephrase comment.
10217 * solib-ia64-hpux.c (struct dld_info): Change type of field
10218 dld_flags from "long long" to ULONGEST.
10219
ecb956dd
PA
102202011-01-14 Pedro Alves <pedro@codesourcery.com>
10221
10222 * target.h (deprecated_child_ops): Delete declaration.
10223 * target.c (deprecated_child_ops): Delete definition.
10224
76adfcae
PA
102252011-01-14 Pedro Alves <pedro@codesourcery.com>
10226
10227 * Makefile.in (hpux-thread.o): Delete rule.
10228 * configure.ac: Don't check for HPUX DCE threads support.
10229 * configure, config.in: Regenerate.
10230 * hppa-hpux-nat.c (child_suppress_run): Delete.
10231 (hppa_hpux_child_can_run): Delete.
10232 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10233 * hpux-thread.c: Delete.
10234
042e866e
JB
102352011-01-13 Joel Brobecker <brobecker@adacore.com>
10236
10237 * hpux-thread.c (hpux_pid_to_str): Delete.
10238
4ffa5a33
JB
102392011-01-13 Joel Brobecker <brobecker@adacore.com>
10240
10241 * ada-valprint.c (ada_emit_char): Remove strange code.
10242 Check that c is <= UCHAR_MAX before passing it to isascii.
10243 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10244
de8fa76c
JB
102452011-01-13 Joel Brobecker <brobecker@adacore.com>
10246
10247 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10248 to the case where instream is stdin.
10249
c4de7027
JB
102502011-01-13 Joel Brobecker <brobecker@adacore.com>
10251
10252 * ia64-tdep.h (struct regcache): Forward declare.
10253 (struct ia64_infcall_ops): New struct type.
10254 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10255 and "infcall_ops".
10256 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10257 Renames ia64_find_global_pointer.
10258 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10259 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10260 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10261 methods.
10262 (ia64_infcall_ops): New static global constant.
10263 (ia64_gdbarch_init): Set tdep->infcall_ops.
10264 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10265 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10266 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10267 (ia64_hpux_dummy_code): New static global constant.
10268 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10269 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10270 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10271 New function.
10272 (ia64_hpux_infcall_ops): New static global constant.
10273 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10274 for inferior function calls to work properly on ia64-hpux.
10275
77ca787b
JB
102762011-01-13 Joel Brobecker <brobecker@adacore.com>
10277
10278 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10279 * ia64-tdep.h (struct frame_info): forward declaration.
10280 (struct gdbarch_tdep): Add field size_of_register_frame.
10281 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10282 to determine the size of the register frame.
10283 (ia64_size_of_register_frame): New function.
10284 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10285 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10286 (IA64_HPUX_UREG_REASON): New macro.
10287 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10288 New functions.
10289 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10290 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10291 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10292 objects.
10293
92c9a463
JB
102942011-01-13 Joel Brobecker <brobecker@adacore.com>
10295
10296 Add support for ia64-hpux.
10297 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10298 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10299
10300 * configure.host: Add handling for ia64-hpux hosts. Add associated
10301 floatformats.
10302 * configure.tgt: Add handling for ia64-hpux targets.
10303 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10304 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10305 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10306
f688d93f
JB
103072011-01-13 Joel Brobecker <brobecker@adacore.com>
10308
10309 [ttrace] Compute thread list immediately after attach.
10310 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10311 New subprogram.
10312 (inf_ttrace_attach): Use it.
10313
1b89e62f
JB
103142011-01-13 Joel Brobecker <brobecker@adacore.com>
10315
10316 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10317 if we could not determine the frame's function address. Instead,
10318 use the frame's PC, and then continue.
10319
3e5e6e2a
JB
103202011-01-13 Joel Brobecker <brobecker@adacore.com>
10321
10322 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10323 not already defined.
10324
825d6d8a
JB
103252011-01-13 Joel Brobecker <brobecker@adacore.com>
10326
10327 * ia64-tdep.c (ia64_struct_type_p): New function.
10328 (ia64_extract_return_value): Handle integral values that are
10329 less than 8 bytes long.
10330 (ia64_push_dummy_call): Likewise.
10331
7458e667
JB
103322011-01-13 Joel Brobecker <brobecker@adacore.com>
10333
10334 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10335 floatformat_ia64_ext.
10336 (floatformat_ia64_ext_big): New static const.
10337 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10338
1b05df00
TT
103392011-01-12 Tom Tromey <tromey@redhat.com>
10340
10341 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10342 messages.
10343 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10344 (mi_cmd_thread_list_ids): Likewise.
10345 (mi_cmd_data_list_changed_registers): Likewise.
10346 (mi_cmd_data_list_register_values): Likewise.
10347 (mi_cmd_data_write_register_values): Likewise.
10348 (mi_cmd_data_evaluate_expression): Likewise.
10349 (mi_cmd_data_read_memory): Likewise.
10350 (mi_cmd_data_read_memory_bytes): Likewise.
10351 (mi_cmd_data_write_memory): Likewise.
10352 (mi_cmd_enable_timings): Likewise.
10353 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10354 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10355 (mi_cmd_var_delete): Likewise.
10356 (mi_cmd_var_set_format): Likewise.
10357 (mi_cmd_var_show_format): Likewise.
10358 (mi_cmd_var_info_num_children): Likewise.
10359 (mi_cmd_var_list_children): Likewise.
10360 (mi_cmd_var_info_type): Likewise.
10361 (mi_cmd_var_info_expression): Likewise.
10362 (mi_cmd_var_show_attributes): Likewise.
10363 (mi_cmd_var_assign): Likewise.
10364 (mi_cmd_var_update): Likewise.
10365 (mi_cmd_enable_pretty_printing): Likewise.
10366 (mi_cmd_var_set_update_range): Likewise.
10367 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10368 messages.
10369 (mi_cmd_target_file_put): Likewise.
10370 (mi_cmd_target_file_delete): Likewise.
10371 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10372 messages.
10373 (mi_cmd_stack_info_depth): Likewise.
10374 (mi_cmd_stack_list_locals): Likewise.
10375 (mi_cmd_stack_list_args): Likewise.
10376 (mi_cmd_stack_select_frame): Likewise.
10377 (mi_cmd_stack_select_frame): Likewise.
10378 (mi_cmd_stack_info_frame): Likewise.
10379 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10380 messages.
10381 (mi_cmd_file_list_exec_source_files): Likewise.
10382 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10383 (mi_cmd_env_cd): Likewise.
10384 (mi_cmd_env_path): Likewise.
10385 (mi_cmd_env_dir): Likewise.
10386 (mi_cmd_inferior_tty_show): Likewise.
10387 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10388 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10389 (mi_cmd_break_watch): Likewise.
10390
ad422571
TJB
103912011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10392
10393 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10394 (ppc_linux_insert_hw_breakpoint): Likewise.
10395 (ppc_linux_remove_hw_breakpoint): Likewise.
10396 (ppc_linux_insert_watchpoint): Likewise.
10397
c2ff108b
JK
103982011-01-12 Andrew Burgess <aburgess@broadcom.com>
10399 Jan Kratochvil <jan.kratochvil@redhat.com>
10400
10401 PR fortran/11104 and DWARF unbound arrays detection.
10402 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10403 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10404 unspecified upper bound.
10405 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10406 variables array_size_array, tmp_type and offset_item. New variable
10407 array. Remove call to f77_get_upperbound. New variables array_type
10408 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10409 the final call to deprecated_set_value_type.
10410
41e8491f
JK
104112011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10412
10413 Make value allocations more lazy.
10414 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10415 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10416 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10417 instead of allocate_value and set_value_lazy.
10418 * findvar.c (value_of_register_lazy): Likewise.
10419 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10420 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10421 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10422 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10423 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10424 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10425 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10426 the end, remove set_value_lazy there.
10427 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10428 instead of allocate_value and set_value_lazy when possible.
10429 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10430 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10431 of allocate_value and set_value_lazy.
10432 (value_from_contents_and_address): Use allocate_value_lazy instead of
10433 allocate_value and set_value_lazy when possible.
10434
b716877b
AB
104352011-01-12 Andrew Burgess <aburgess@broadcom.com>
10436
10437 * disasm.c (dump_insns): Support dumping opcodes for MI.
10438 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10439 dumping of instruction opcodes.
10440
d5ae309f
JB
104412011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10442
10443 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10444 appropiately.
10445
98871305
TT
104462011-01-11 Tom Tromey <tromey@redhat.com>
10447
10448 * thread.c (do_captured_thread_select): Emit newline before
10449 printing frame.
10450
c378eb4e
MS
104512011-01-11 Michael Snyder <msnyder@vmware.com>
10452
10453 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10454 * score-tdep.c: Ditto.
10455 * score-tdep.h: Ditto.
10456 * ser-base.c: Ditto.
10457 * ser-go32.c: Ditto.
10458 * serial.c: Ditto.
10459 * serial.h: Ditto.
10460 * ser-mingw.c: Ditto.
10461 * ser-pipe.c: Ditto.
10462 * ser-tcp.c: Ditto.
10463 * ser-unix.c: Ditto.
10464 * sh64-tdep.c: Ditto.
10465 * shnbsd-nat.c: Ditto.
10466 * sh-tdep.c: Ditto.
10467 * sh-tdep.h: Ditto.
10468 * solib.c: Ditto.
10469 * solib-darwin.c: Ditto.
10470 * solib-frv.c: Ditto.
10471 * solib.h: Ditto.
10472 * solib-irix.c: Ditto.
10473 * solib-osf.c: Ditto.
10474 * solib-pa64.c: Ditto.
10475 * solib-som.c: Ditto.
10476 * solib-spu.c: Ditto.
10477 * solib-sunos.c: Ditto.
10478 * solib-svr4.c: Ditto.
10479 * solist.h: Ditto.
10480 * sol-thread.c: Ditto.
10481 * somread.c: Ditto.
10482 * source.c: Ditto.
10483 * source.h: Ditto.
10484 * sparc64-linux-tdep.c: Ditto.
10485 * sparc64-tdep.c: Ditto.
10486 * sparc-linux-nat.c: Ditto.
10487 * sparc-linux-tdep.c: Ditto.
10488 * sparc-sol2-nat.c: Ditto.
10489 * sparc-sol2-tdep.c: Ditto.
10490 * sparc-tdep.c: Ditto.
10491 * sparc-tdep.h: Ditto.
10492 * spu-tdep.c: Ditto.
10493 * stabsread.c: Ditto.
10494 * stabsread.h: Ditto.
10495 * stack.c: Ditto.
10496 * symfile.c: Ditto.
10497 * symfile.h: Ditto.
10498 * symmisc.c: Ditto.
10499 * symtab.c: Ditto.
10500 * symtab.h: Ditto.
10501 * target.c: Ditto.
10502 * target-descriptions.c: Ditto.
10503 * target-descriptions.h: Ditto.
10504 * target.h: Ditto.
10505 * target-memory.c: Ditto.
10506 * terminal.h: Ditto.
10507 * thread.c: Ditto.
10508 * top.c: Ditto.
10509 * tracepoint.c: Ditto.
10510 * tracepoint.h: Ditto.
10511 * trad-frame.h: Ditto.
10512 * typeprint.c: Ditto.
10513
581e13c1
MS
105142011-01-11 Michael Snyder <msnyder@vmware.com>
10515
10516 * ui-file.c: Comment cleanup, mostly periods and spaces.
10517 * ui-file.h: Ditto.
10518 * ui-out.c: Ditto.
10519 * ui-out.h: Ditto.
10520 * utils.c: Ditto.
10521 * v850-tdep.c: Ditto.
10522 * valarith.c: Ditto.
10523 * valops.c: Ditto.
10524 * valprint.c: Ditto.
10525 * valprint.h: Ditto.
10526 * value.c: Ditto.
10527 * value.h: Ditto.
10528 * varobj.c: Ditto.
10529 * varobj.h: Ditto.
10530 * vax-tdep.c: Ditto.
10531 * vec.c: Ditto.
10532 * vec.h: Ditto.
10533 * version.h: Ditto.
10534 * windows-nat.c: Ditto.
10535 * windows-tdep.c: Ditto.
10536 * xcoffread.c: Ditto.
10537 * xcoffsolib.c: Ditto.
10538 * xml-support.c: Ditto.
10539 * xstormy16-tdep.c: Ditto.
10540 * xtensa-tdep.c: Ditto.
10541 * xtensa-tdep.h: Ditto.
10542
90e4670f
TJB
105432011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10544
10545 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10546 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10547
e09342b5
TJB
105482011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10549 Thiago Jung Bauermann <bauerman@br.ibm.com>
10550
10551 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10552 * breakpoint.h
e09342b5
TJB
10553 (struct breakpoint_ops) <resources_needed>: New method.
10554 Initialize to NULL in all existing breakpoint_ops instances.
10555 (struct breakpoint) <exact>: New field.
10556 (target_exact_watchpoints): Declare external global.
10557 * breakpoint.c (target_exact_watchpoints): New global flag.
10558 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10559 b->enable_state to bp_enabled before calling
10560 hw_watchpoint_used_count.
10561 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10562 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10563 if available.
10564 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10565 if the watchpoint is exact.
10566 (resources_needed_watchpoint): New function.
10567 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10568 (watch_command_1): Set b->exact if the user asked for an exact
10569 watchpoint and one can be set.
10570 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10571 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10572 the user asks for an exact watchpoint and one can be set. Return
10573 number of needed debug registers to watch the expression.
10574 * gdbtypes.c (is_scalar_type): New function, based on
10575 valprint.c:scalar_type_p.
10576 (is_scalar_type_recursive): New function.
10577 * gdbtypes.h (is_scalar_type_recursive): Declare.
10578 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10579 handle regions when ranged watchpoints are available.
10580 (create_watchpoint_request): New function.
10581 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10582 create_watchpoint_request.
10583 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10584 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10585 `set powerpc' and `show powerpc' commands.
10586 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10587 Mention documentation comment in the target macro.
10588 (target_region_ok_for_hw_watchpoint): Document return value.
10589
9fa40276
TJB
105902011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10591
10592 * breakpoint.c (update_watchpoint): Decide on using a software or
10593 hardware watchpoint after the bp_locations are created.
10594
77b06cd7
TJB
105952010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10596
10597 Convert hardware watchpoints to use breakpoint_ops.
10598 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10599 <insert_location>: ... this. Return int instead of void.
10600 Accept pointer to struct bp_location instead of pointer to
10601 struct breakpoint. Adapt all implementations.
f2eb0bc8 10602 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10603 <remove_location>: ... this. Accept pointer to struct bp_location
10604 instead of pointer to struct breakpoint. Adapt all implementations.
10605 * breakpoint.c (insert_catchpoint): Delete function.
10606 (insert_bp_location): Call the watchpoint or catchpoint's
10607 breakpoint_ops.insert method.
10608 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10609 breakpoint_ops.remove method.
10610 (insert_watchpoint, remove_watchpoint): New functions.
10611 (watchpoint_breakpoint_ops): New structure.
10612 (watch_command_1): Initialize the OPS field.
10613 * inf-child.c (inf_child_insert_fork_catchpoint)
10614 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10615 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10616 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10617 Delete functions.
10618 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10619 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10620 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10621 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10622 * target.c (update_current_target): Change default implementation of
10623 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10624 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10625 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10626 to_set_syscall_catchpoint to return_one.
10627 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10628 (debug_to_insert_exec_catchpoint): Report return value.
10629 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10630 (to_insert_exec_catchpoint): Change declaration to return int instead
10631 of void.
10632
9b20d036
MS
106332011-01-11 Michael Snyder <msnyder@vmware.com>
10634
10635 * arm-tdep.c: Internationalization.
10636 * c-lang.c: Ditto.
10637 * charset.c: Ditto.
10638 * fork-child.c: Ditto.
10639 * nto-procfs.c: Ditto.
10640 * ppc-sysv-tdep.c: Ditto.
10641 * procfs.c: Ditto.
10642 * remote-mips.c: Ditto.
10643 * remote.c: Ditto.
10644 * rs6000-nat.c: Ditto.
10645 * rs6000-tdep.c: Ditto.
10646 * target.c: Ditto.
10647 * valops.c: Ditto.
10648 * value.c: Ditto.
10649 * xml-support.c: Ditto.
10650 * mi/mi-cmd-break.c: Ditto.
10651 * mi/mi-cmd-var.c: Ditto.
10652 * mi/mi-interp.c: Ditto.
10653 * mi/mi-main.c: Ditto.
10654
dae477fe
AB
106552011-01-11 Andrew Burgess <aburgess@broadcom.com>
10656
10657 * remote-sim.c (gdbsim_store_register): Update API to
10658 sim_store_register to check more error conditions.
10659
0df8b418
MS
106602011-01-10 Michael Snyder <msnyder@vmware.com>
10661
10662 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10663 * nto-tdep.c: Ditto.
10664 * nto-tdep.h: Ditto.
10665 * objc-exp.y: Ditto.
10666 * objc-lang.c: Ditto.
10667 * objfiles.c: Ditto.
10668 * objfiles.h: Ditto.
10669 * observer.c: Ditto.
10670 * opencl-lang.c: Ditto.
10671 * osabi.c: Ditto.
10672 * parse.c: Ditto.
10673 * parser-defs.h: Ditto.
10674 * p-exp.y: Ditto.
10675 * p-lang.c: Ditto.
10676 * posix-hdep.c: Ditto.
10677 * ppcbug-rom.c: Ditto.
10678 * ppc-linux-nat.c: Ditto.
10679 * ppc-linux-tdep.c: Ditto.
10680 * ppc-linux-tdep.h: Ditto.
10681 * ppcnbsd-tdep.c: Ditto.
10682 * ppcobsd-tdep.c: Ditto.
10683 * ppcobsd-tdep.h: Ditto.
10684 * ppc-sysv-tdep.c: Ditto.
10685 * ppc-tdep.h: Ditto.
10686 * printcmd.c: Ditto.
10687 * proc-abi.c: Ditto.
10688 * proc-flags.c: Ditto.
10689 * procfs.c: Ditto.
10690 * proc-utils.h: Ditto.
10691 * progspace.h: Ditto.
10692 * prologue-value.c: Ditto.
10693 * prologue-value.h: Ditto.
10694 * psympriv.h: Ditto.
10695 * psymtab.c: Ditto.
10696 * p-typeprint.c: Ditto.
10697 * p-valprint.c: Ditto.
10698 * ravenscar-sparc-thread.c: Ditto.
10699 * ravenscar-thread.c: Ditto.
10700 * ravenscar-thread.h: Ditto.
10701 * record.c: Ditto.
10702 * regcache.c: Ditto.
10703 * regcache.h: Ditto.
10704 * remote.c: Ditto.
10705 * remote-fileio.c: Ditto.
10706 * remote-fileio.h: Ditto.
10707 * remote.h: Ditto.
10708 * remote-m32r-sdi.c: Ditto.
10709 * remote-mips.c: Ditto.
10710 * remote-sim.c: Ditto.
10711 * rs6000-aix-tdep.c: Ditto.
10712 * rs6000-nat.c: Ditto.
10713 * rs6000-tdep.c: Ditto.
10714
0d7a18f7
MS
107152011-01-10 Michael Snyder <msnyder@vmware.com>
10716
10717 * charset.c (validate): Internationalization.
10718 * coffread.c (read_one_sym): Ditto.
10719 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10720 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10721 * inflow.c (new_tty): Ditto.
10722 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10723 * m32c-tdep.c (m32c_return_value): Ditto.
10724 * mep-tdep.c (mep_store_return_value): Ditto.
10725 * score-tdep.c (score7_fetch_insn): Ditto.
10726 * ser-mingw.c (pipe_windows_open): Ditto.
10727 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10728 * spu-tdep.c (spu_register_type): Ditto.
10729 * tracepoint.c (trace_find_command): Ditto.
10730 * valarith.c (value_pos): Ditto.
10731
9a153e0b
JB
107322011-01-10 Joel Brobecker <brobecker@adacore.com>
10733
10734 * ada-valprint.c (printstr): Minor comment reformatting.
10735
35ecd2d6
MS
107362011-01-08 Michael Snyder <msnyder@vmware.com>
10737
10738 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10739 markup.
10740
1777feb0
MS
107412011-01-08 Michael Snyder <msnyder@vmware.com>
10742
10743 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10744 * hppa-hpux-tdep.c: Ditto.
10745 * hppa-linux-nat.c: Ditto.
10746 * hppa-linux-tdep.c: Ditto.
10747 * hppanbsd-tdep.c: Ditto.
10748 * hppa-tdep.c: Ditto.
10749 * hppa-tdep.h: Ditto.
10750 * hpux-thread.c: Ditto.
10751 * i386-cygwin-tdep.c: Ditto.
10752 * i386-darwin-nat.c: Ditto.
10753 * i386gnu-nat.c: Ditto.
10754 * i386-linux-nat.c: Ditto.
10755 * i386-linux-tdep.c: Ditto.
10756 * i386-nat.c: Ditto.
10757 * i386-nat.h: Ditto.
10758 * i386nbsd-tdep.c: Ditto.
10759 * i386-sol2-nat.c: Ditto.
10760 * i386-stub.c: Ditto.
10761 * i386-tdep.c: Ditto.
10762 * i386-tdep.h: Ditto.
10763 * i387-tdep.c: Ditto.
10764 * ia64-linux-nat.c: Ditto.
10765 * ia64-linux-tdep.c: Ditto.
10766 * ia64-tdep.c: Ditto.
10767 * infcall.c: Ditto.
10768 * infcall.h: Ditto.
10769 * infcmd.c: Ditto.
10770 * inferior.c: Ditto.
10771 * inferior.h: Ditto.
10772 * infloop.c: Ditto.
10773 * inflow.c: Ditto.
10774 * infrun.c: Ditto.
10775 * interps.c: Ditto.
10776 * interps.h: Ditto.
10777 * iq2000-tdep.c: Ditto.
10778 * irix5-nat.c: Ditto.
10779 * jit.c: Ditto.
10780 * jit.h: Ditto.
10781 * jv-exp.y: Ditto.
10782 * jv-lang.c: Ditto.
10783 * jv-lang.h: Ditto.
10784 * jv-typeprint.c: Ditto.
10785 * jv-valprint.c: Ditto.
10786 * language.c: Ditto.
10787 * language.h: Ditto.
10788 * linespec.c: Ditto.
10789 * linux-fork.c: Ditto.
10790 * linux-nat.c: Ditto.
10791 * linux-thread-db.c: Ditto.
10792 * lm32-tdep.c: Ditto.
10793
025bb325
MS
107942011-01-08 Michael Snyder <msnyder@vmware.com>
10795
10796 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10797 * m2-lang.c: Ditto.
10798 * m2-typeprint.c: Ditto.
10799 * m2-valprint.c: Ditto.
10800 * m32c-tdep.c: Ditto.
10801 * m32r-linux-nat.c: Ditto.
10802 * m32r-rom.c: Ditto.
10803 * m32r-tdep.c: Ditto.
10804 * m32r-tdep.h: Ditto.
10805 * m68hc11-tdep.c: Ditto.
10806 * m58klinux-nat.c: Ditto.
10807 * m68k-tdep.c: Ditto.
10808 * m88k-tdep.c: Ditto.
10809 * m88k-tdep.h: Ditto.
10810 * machoread.c: Ditto.
10811 * macrocmd.c: Ditto.
10812 * macroexp.c: Ditto.
10813 * macrotab.c: Ditto.
10814 * main.c: Ditto.
10815 * maint.c: Ditto.
10816 * mdebugread.c: Ditto.
10817 * mdebugread.h: Ditto.
10818 * memattr.c: Ditto.
10819 * memattr.h: Ditto.
10820 * memory-map.h: Ditto.
10821 * mep-tdep.c: Ditto.
10822 * microblaze-rom.c: Ditto.
10823 * microblaze-tdep.c: Ditto.
10824 * minsyms.c: Ditto.
10825 * mips-irix-tdep.c: Ditto.
10826 * mips-linux-nat.c: Ditto.
10827 * mips-linux-tdep.c: Ditto.
10828 * mips-linux-tdep.h: Ditto.
10829 * mipsnbsd-nat.c: Ditto.
10830 * mipsnbsd-tdep.c: Ditto.
10831 * mipsread.c: Ditto.
10832 * mips-tdep.c: Ditto.
10833 * mips-tdep.h: Ditto.
10834 * mn10300-linux-tdep.c: Ditto.
10835 * mn10300-tdep.c: Ditto.
10836 * mn10300-tdep.h: Ditto.
10837 * monitor.c: Ditto.
10838 * monitor.h: Ditto.
10839 * moxie-tdep.c: Ditto.
10840 * moxie-tdep.h: Ditto.
10841 * mt-tdep.c: Ditto.
10842
1642781b
MF
108432011-01-08 Mike Frysinger <vapier@gentoo.org>
10844
10845 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10846
394b0adb
JB
108472011-01-08 Robert Millan <rmh@gnu.org>
10848
10849 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10850
b670013c
MS
108512011-01-07 Michael Snyder <msnyder@vmware.com>
10852
10853 * charset.c (_initialize_charset): Fix typo in string.
10854
a743e542
MS
108552011-01-07 Michael Snyder <msnyder@vmware.com>
10856
10857 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10858 for i18n.
f2eb0bc8 10859 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10860 Split line so that operator goes to beginning of line.
10861 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10862 assignment out of if statement.
10863
0963b4bd
MS
108642011-01-07 Michael Snyder <msnyder@vmware.com>
10865
10866 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10867 * ada-lang.h: Ditto.
10868 * ada-tasks.c: Ditto.
10869 * ada-valprint.c: Ditto.
10870 * aix-threads.c: Ditto.
10871 * alpha-linux-nat.c: Ditto.
10872 * alpha-linux-tdep.c: Ditto.
10873 * alpha-mdebug-tdep.c: Ditto.
10874 * alpha-nat.c: Ditto.
10875 * alpha-osf1-tdep.c: Ditto.
10876 * alpha-tdep.c: Ditto.
10877 * alphabsd-nat.c: Ditto.
10878 * alphabsd-tdep.c: Ditto.
10879 * amd64-darwin-tdep.c: Ditto.
10880 * amd64-linux-nat.c: Ditto.
10881 * amd64-linux-tdep.c: Ditto.
10882 * amd64-sol2-tdep.c: Ditto.
10883 * amd64-tdep.c: Ditto.
10884 * amd64-fbsd-tdep.c: Ditto.
10885 * amd64-nbsd-tdep.c: Ditto.
10886 * amd64-obsd-tdep.c: Ditto.
10887 * amd64-linux-nat.c: Ditto.
10888 * amd64-linux-tdep.c: Ditto.
10889 * arm-tdep.c: Ditto.
10890 * arm-tdep.h: Ditto.
10891 * armnbsd-nat.c: Ditto.
10892 * avr-tdep.c: Ditto.
10893 * bfin-tdep.c: Ditto.
10894 * bsd-kvm.c: Ditto.
10895 * c-typeprintc: Ditto.
10896 * c-valprint.c: Ditto.
10897 * coff-pe-read.h: Ditto.
10898 * coffreead.c: Ditto.
10899 * cris-tdep.c: Ditto.
10900 * d-lang.c: Ditto.
10901 * darwin-nat-info.c: Ditto.
10902 * darwin-nat.c: Ditto.
10903 * dbug-rom.c: Ditto.
10904 * dbxread.c: Ditto.
10905 * dcache.c: Ditto.
10906 * dcache.h: Ditto.
10907 * dec-thread.c: Ditto.
10908 * defs.h: Ditto.
10909 * demangle.c: Ditto.
10910 * dicos-tdep.c: Ditto.
10911 * dictionary.c: Ditto.
10912 * dictionary.h: Ditto.
10913 * dink32-rom.c: Ditto.
10914 * disasm.c: Ditto.
10915 * doublest.c: Ditto.
10916 * dsrec.c: Ditto.
10917 * dummy-frame.c: Ditto.
10918 * dwarf2-frame.c: Ditto.
10919 * dwarf2expr.c: Ditto.
10920 * dwarf2loc.c: Ditto.
10921 * dwarf2read.c: Ditto.
10922 * elfread.c: Ditto.
10923 * environ.c: Ditto.
10924 * eval.c: Ditto.
10925 * event-top.h: Ditto.
10926 * exceptions.c: Ditto.
10927 * exceptions.h: Ditto.
10928 * exec.c: Ditto.
10929 * expprint.c: Ditto.
10930 * expression.h: Ditto.
10931 * f-exp.y: Ditto.
10932 * f-lang.c: Ditto.
10933 * f-lang.h: Ditto.
10934 * f-typeprint.c: Ditto.
10935 * f-valprint.c: Ditto.
10936 * fbsd-nat.c: Ditto.
10937 * findvar.c: Ditto.
10938 * fork-child.c: Ditto.
10939 * frame.c: Ditto.
10940 * frame.h: Ditto.
10941 * frv-linux-tdep.c: Ditto.
10942 * frv-tdep.c: Ditto.
10943 * gcore.c: Ditto.
10944 * gdb-stabs.h: Ditto.
10945 * gdb_assert.h: Ditto.
10946 * gdb_string.h: Ditto.
10947 * gdb_thread_db.h: Ditto.
10948 * gdb_wait.h: Ditto.
10949 * gdbarch.sh: Ditto.
10950 * gdbcore.h: Ditto.
10951 * gdbthread.h: Ditto.
10952 * gdbtypes.c: Ditto.
10953 * gdbtypes.h: Ditto.
10954 * gnu-nat.c: Ditto.
10955 * gnu-nat.h: Ditto.
10956 * gnu-v2-abi.c: Ditto.
10957 * gnu-v3-abi.c: Ditto.
10958 * go32-nat.c: Ditto.
10959 * gdbarch.c: Regenerate.
10960 * gdbarch.h: Regenerate.
10961
ac74f770
MS
109622011-01-07 Michael Snyder <msnyder@vmware.com>
10963
10964 * ax-gdb.c: Adjust some long output strings.
10965 * breakpoint.c: Ditto.
10966 * charset.c: Ditto.
10967 * cp-abi.c: Ditto.
10968 * infcall.c: Ditto.
10969 * infrun.c: Ditto.
10970 * linux-nat.c: Ditto.
10971 * solib-pa64.c: Ditto.
10972 * solib-som.c: Ditto.
10973
d8e22779
TT
109742011-01-06 Tom Tromey <tromey@redhat.com>
10975
10976 PR python/12367:
10977 * NEWS: Add item.
10978 * python/python.c (GdbMethods): Add "newest_frame" method.
10979 * python/python-internal.h (gdbpy_newest_frame): Declare.
10980 * python/py-frame.c (gdbpy_newest_frame): New function.
10981
a255712f
PP
109822010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10983
10984 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10985 * jit.c (jit_debug): New variable.
10986 (show_jit_debug): New function.
10987 (struct target_buffer): Use ULONGEST.
10988 (bfd_open_from_target_memory): Likewise.
10989 (jit_register_code, jit_inferior_init): Add debug output.
10990 (_initialize_jit): Register "debug jit" command.
10991
ccfc3d6e
TT
109922011-01-06 Tom Tromey <tromey@redhat.com>
10993
10994 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10995 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10996 and ARCH_FRAME.
10997
57126e4a
TT
109982011-01-06 Tom Tromey <tromey@redhat.com>
10999
11000 * python/py-frame.c (frapy_block): Use get_frame_block.
11001
16dfc9ce
JB
110022011-01-06 Joel Brobecker <brobecker@adacore.com>
11003
11004 Do not stop on SIGPRIO signals by default
11005 * infrun.c (_initialize_infrun): Unset signal_stop and
11006 signal_print for TARGET_SIGNAL_PRIO.
11007
b1ce2347
JB
110082011-01-06 Joel Brobecker <brobecker@adacore.com>
11009
11010 * ada-tasks.c: Fix style violation in comment.
11011
8f7e195f
JB
110122011-01-06 Joel Brobecker <brobecker@adacore.com>
11013
11014 * linespec.c (decode_compound, find_method): Remove trailing \n
11015 at end of error string.
11016 * solib-irix.c (irix_current_sos): Likewise.
11017 * varobj.c (uninstall_variable): Likewise.
11018
e9bdf92c
JB
110192011-01-06 Joel Brobecker <brobecker@adacore.com>
11020
11021 * copyright.py: New script.
11022 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11023 Launch emacs without exec'ing. Call copyright.py afterwards.
11024
3e43a32a
MS
110252011-01-05 Michael Snyder <msnyder@vmware.com>
11026
11027 * addrmap.c: Shorten lines of >= 80 columns.
11028 * arch-utils.c: Ditto.
11029 * arch-utils.h: Ditto.
11030 * ax-gdb.c: Ditto.
11031 * ax-general.c: Ditto.
11032 * bcache.c: Ditto.
11033 * blockframe.c: Ditto.
11034 * breakpoint.c: Ditto.
11035 * buildsym.c: Ditto.
11036 * c-lang.c: Ditto.
11037 * c-typeprint.c: Ditto.
11038 * charset.c: Ditto.
11039 * coffread.c: Ditto.
11040 * command.h: Ditto.
11041 * corelow.c: Ditto.
11042 * cp-abi.c: Ditto.
11043 * cp-namespace.c: Ditto.
11044 * cp-support.c: Ditto.
11045 * dbug-rom.c: Ditto.
11046 * dbxread.c: Ditto.
11047 * defs.h: Ditto.
11048 * dfp.c: Ditto.
11049 * dfp.h: Ditto.
11050 * dictionary.c: Ditto.
11051 * disasm.c: Ditto.
11052 * doublest.c: Ditto.
11053 * dwarf2-frame.c: Ditto.
11054 * dwarf2expr.c: Ditto.
11055 * dwarf2loc.c: Ditto.
11056 * dwarf2read.c: Ditto.
11057 * elfread.c: Ditto.
11058 * eval.c: Ditto.
11059 * event-loop.c: Ditto.
11060 * event-loop.h: Ditto.
11061 * exceptions.h: Ditto.
11062 * exec.c: Ditto.
11063 * expprint.c: Ditto.
11064 * expression.h: Ditto.
11065 * f-lang.c: Ditto.
11066 * f-valprint.c: Ditto.
11067 * findcmd.c: Ditto.
11068 * frame-base.c: Ditto.
11069 * frame-unwind.c: Ditto.
11070 * frame-unwind.h: Ditto.
11071 * frame.c: Ditto.
11072 * frame.h: Ditto.
11073 * gcore.c: Ditto.
11074 * gdb-stabs.h: Ditto.
11075 * gdb_assert.h: Ditto.
11076 * gdb_dirent.h: Ditto.
11077 * gdb_obstack.h: Ditto.
11078 * gdbcore.h: Ditto.
11079 * gdbtypes.c: Ditto.
11080 * gdbtypes.h: Ditto.
11081 * inf-ttrace.c: Ditto.
11082 * infcall.c: Ditto.
11083 * infcmd.c: Ditto.
11084 * inflow.c: Ditto.
11085 * infrun.c: Ditto.
11086 * inline-frame.h: Ditto.
11087 * language.c: Ditto.
11088 * language.h: Ditto.
11089 * libunwind-frame.c: Ditto.
11090 * libunwind-frame.h: Ditto.
11091 * linespec.c: Ditto.
11092 * linux-nat.c: Ditto.
11093 * linux-nat.h: Ditto.
11094 * linux-thread-db.c: Ditto.
11095 * machoread.c: Ditto.
11096 * macroexp.c: Ditto.
11097 * macrotab.c: Ditto.
11098 * main.c: Ditto.
11099 * maint.c: Ditto.
11100 * mdebugread.c: Ditto.
11101 * memattr.c: Ditto.
11102 * minsyms.c: Ditto.
11103 * monitor.c: Ditto.
11104 * monitor.h: Ditto.
11105 * objfiles.c: Ditto.
11106 * objfiles.h: Ditto.
11107 * osabi.c: Ditto.
11108 * p-typeprint.c: Ditto.
11109 * p-valprint.c: Ditto.
11110 * parse.c: Ditto.
11111 * printcmd.c: Ditto.
11112 * proc-events.c: Ditto.
11113 * procfs.c: Ditto.
11114 * progspace.c: Ditto.
11115 * progspace.h: Ditto.
11116 * psympriv.h: Ditto.
11117 * psymtab.c: Ditto.
11118 * record.c: Ditto.
11119 * regcache.c: Ditto.
11120 * regcache.h: Ditto.
11121 * remote-fileio.c: Ditto.
11122 * remote.c: Ditto.
11123 * ser-mingw.c: Ditto.
11124 * ser-tcp.c: Ditto.
11125 * ser-unix.c: Ditto.
11126 * serial.c: Ditto.
11127 * serial.h: Ditto.
11128 * solib-frv.c: Ditto.
11129 * solib-irix.c: Ditto.
11130 * solib-osf.c: Ditto.
11131 * solib-pa64.c: Ditto.
11132 * solib-som.c: Ditto.
11133 * solib-sunos.c: Ditto.
11134 * solib-svr4.c: Ditto.
11135 * solib-target.c: Ditto.
11136 * solib.c: Ditto.
11137 * somread.c: Ditto.
11138 * source.c: Ditto.
11139 * stabsread.c: Ditto.
11140 * stabsread.c: Ditto.
11141 * stack.c: Ditto.
11142 * stack.h: Ditto.
11143 * symfile-mem.c: Ditto.
11144 * symfile.c: Ditto.
11145 * symfile.h: Ditto.
11146 * symmisc.c: Ditto.
11147 * symtab.c: Ditto.
11148 * symtab.h: Ditto.
11149 * target-descriptions.c: Ditto.
11150 * target-memory.c: Ditto.
11151 * target.c: Ditto.
11152 * target.h: Ditto.
11153 * terminal.h: Ditto.
11154 * thread.c: Ditto.
11155 * top.c: Ditto.
11156 * tracepoint.c: Ditto.
11157 * tracepoint.h: Ditto.
11158 * ui-file.c: Ditto.
11159 * ui-file.h: Ditto.
11160 * ui-out.h: Ditto.
11161 * user-regs.c: Ditto.
11162 * user-regs.h: Ditto.
11163 * utils.c: Ditto.
11164 * valarith.c: Ditto.
11165 * valops.c: Ditto.
11166 * valprint.c: Ditto.
11167 * valprint.h: Ditto.
11168 * value.c: Ditto.
11169 * varobj.c: Ditto.
11170 * varobj.h: Ditto.
11171 * vec.h: Ditto.
11172 * xcoffread.c: Ditto.
11173 * xcoffsolib.c: Ditto.
11174 * xcoffsolib.h: Ditto.
11175 * xml-syscall.c: Ditto.
11176 * xml-tdesc.c: Ditto.
11177
9a2b4c1b
MS
111782011-01-05 Michael Snyder <msnyder@vmware.com>
11179
11180 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11181 * cli/cli-decode.c: Ditto.
11182 * cli/cli-dump.c: Ditto.
11183 * cli/cli-logging.c: Ditto.
11184 * cli/cli-script.c: Ditto.
11185 * cli/cli-setshow.c: Ditto.
11186 * common/signals.c: Ditto.
11187 * mi/mi-cmd-break.c: Ditto.
11188 * mi/mi-cmd-disas.c: Ditto.
11189 * mi/mi-cmd-stack.c: Ditto.
11190 * mi/mi-cmd-var.c: Ditto.
11191 * mi/mi-cmds.c: Ditto.
11192 * mi/mi-common.h: Ditto.
11193 * mi/mi-console.c: Ditto.
11194 * mi/mi-interp.c: Ditto.
11195 * mi/mi-main.c: Ditto.
11196 * osf-share/cma_attr.c: Ditto.
11197 * osf-share/cma_deb_core.h: Ditto.
11198 * osf-share/cma_debug_client.h: Ditto.
11199 * osf-share/cma_handle.h: Ditto.
11200 * osf-share/cma_mutex.h: Ditto.
11201 * osf-share/cma_stack_int.h: Ditto.
11202 * osf-share/cma_tcb_defs.h: Ditto.
11203 * python/py-auto-load.c: Ditto.
11204 * python/py-breakpoint.c: Ditto.
11205 * python/py-cmd.c: Ditto.
11206 * python/py-frame.c: Ditto.
11207 * python/py-objfile.c: Ditto.
11208 * python/py-param.c: Ditto.
11209 * python/py-progspace.c: Ditto.
11210 * python/py-symbol.c: Ditto.
11211 * python/py-value.c: Ditto.
11212 * python/python-internal.h: Ditto.
11213 * python/python.c: Ditto.
11214 * tui/tui-data.c: Ditto.
11215 * tui/tui-disasm.c: Ditto.
11216 * tui/tui-hooks.c: Ditto.
11217 * tui/tui-io.c: Ditto.
11218 * tui/tui-layout.c: Ditto.
11219 * tui/tui-regs.c: Ditto.
11220 * tui/tui-source.c: Ditto.
11221 * tui/tui-stack.c: Ditto.
11222 * tui/tui-win.c: Ditto.
11223 * tui/tui-windata.c: Ditto.
11224 * tui/tui-winsource.c: Ditto.
11225
44944448
JB
112262011-01-05 Joel Brobecker <brobecker@adacore.com>
11227
11228 * configure.ac, gdb.1: Copyright year update.
11229
ebedcab5
JK
112302011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11231
11232 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11233 this_pc_in_block, morestack_msym and morestack_name. Check for
11234 "__morestack" minimal symbol there.
11235
e5cc9f32
JB
112362011-01-03 Joel Brobecker <brobecker@adacore.com>
11237
11238 * symfile.c (find_sym_fns): Add call to dont_repeat.
11239
7b6bb8da
JB
112402011-01-01 Joel Brobecker <brobecker@adacore.com>
11241
11242 Copyright year update in most files (performed by copyright.sh).
11243
71ce852c
JB
112442011-01-01 Joel Brobecker <brobecker@adacore.com>
11245
11246 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11247
c3c1ebe8 11248For older changes see ChangeLog-2010.
c906108c
SS
11249\f
11250Local Variables:
11251mode: change-log
11252left-margin: 8
11253fill-column: 74
11254version-control: never
57da7796 11255coding: utf-8
c906108c 11256End:
This page took 1.749732 seconds and 4 git commands to generate.