* MAINTAINERS (Write After Approval): Add myself to the list.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a74bc576
SP
12012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2
3 * MAINTAINERS (Write After Approval): Add myself to the list.
4
667e0a4b
DE
52012-07-05 Doug Evans <dje@google.com>
6
7 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
8
34b536a8
HZ
92012-07-05 Hui Zhu <hui_zhu@mentor.com>
10
11 * ax-gdb.c (cli/cli-utils.h): New include.
12 (linespec.h): Ditto.
13 (agent_eval_command_one): New function.
14 (agent_command_1): Ditto.
15 (agent_command): Call function agent_command_1.
16 (agent_eval_command): Ditto.
17 (_initialize_ax_gdb): Change help for "maint agent"
18 and "maint agent-eval".
19
e6f0bce7
HZ
202012-07-05 Hui Zhu <hui_zhu@mentor.com>
21
22 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
23 * cli/cli-utils.c (check_for_argument): New function.
24 * cli/cli-utils.h (check_for_argument): Ditto.
25
1b3371b1
L
262012-07-04 H.J. Lu <hongjiu.lu@intel.com>
27
28 * NEWS: Mention x32 ABI support.
29
23e2d720
L
302012-07-04 H.J. Lu <hongjiu.lu@intel.com>
31
32 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
33 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
34
35 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
36 and pc_regnum_from_eax to -1. Update SP regnum from
37 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
38 needed.
39
40 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
41 pc_regnum_from_eax.
42
836bf454
JK
432012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
44
45 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
46 * dwarf2expr.h: Include gdbtypes.h.
47 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
48 these forward declarations.
49 (cu_offset, sect_offset): Move these ...
50 * gdbtypes.h: Remove include dwarf2expr.h.
51 (cu_offset, sect_offset): ... here.
52
1e55e04f
L
532012-07-03 H.J. Lu <hongjiu.lu@intel.com>
54
55 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
56 (amd64_linux_sigtramp_code): This.
57 (amd64_x32_linux_sigtramp_code): New.
58 (LINUX_SIGTRAMP_LEN): Updated.
59 (amd64_linux_sigtramp_start): Check x32 sigtramp.
60
7d0e21ad
JK
612012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
62
63 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
64
8775fd2d
JK
652012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
66
67 * config.in: Regenerate.
68 * configure: Regenerate.
69 * configure.ac: Remove check for gnu/libc-version.h.
70 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
71 gnu/libc-version.h.
72 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
73 variables libc_version, libc_major and libc_minor. Replace sscanf by
74 inferior_has_bug. Extend the comment.
75
fcb44371
JK
762012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
77
78 * linux-thread-db.c (inferior_has_bug): New function.
79 (thread_db_find_new_threads_silently): Return boolean as checked by
80 inferior_has_bug, describe it in the comments.
81 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
82 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 83 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
84 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
85 if UNTIL_NO_NEW,
86
09406207
DE
872012-07-02 Doug Evans <dje@google.com>
88
0907af0c
DE
89 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
90 related to queue management.
91
09406207
DE
92 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
93 instead of "debug dwarf2-die" in debugging printfs.
94 (create_debug_info_hash_table_reader): Ditto.
95 (create_debug_info_hash_table): Ditto.
96 (init_dwo_file): Ditto.
97 (init_cutu_and_read_dies): Add debugging printf.
98 (init_cutu_and_read_dies_no_follow): Ditto.
99 (process_psymtab_comp_unit_reader): Ditto.
100
d3ce09f5
SS
1012012-07-02 Stan Shebs <stan@codesourcery.com>
102
103 Add target-side support for dynamic printf.
104 * NEWS: Mention the additional style.
105 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
106 (struct bp_location): New field cmd_bytecode.
107 * breakpoint.c: Include format.h.
108 (disconnected_dprintf): New global.
109 (parse_cmd_to_aexpr): New function.
110 (build_target_command_list): New function.
111 (insert_bp_location): Call it.
112 (remove_breakpoints_pid): Skip dprintf breakpoints.
113 (print_one_breakpoint_location): Ditto.
114 (dprintf_style_agent): New global.
115 (dprintf_style_enums): Add dprintf_style_agent.
116 (update_dprintf_command_list): Add agent case.
117 (agent_printf_command): New function.
118 (_initialize_breakpoint): Add new commands.
119 * common/ax.def (printf): New bytecode.
120 * ax.h (ax_string): Declare.
121 * ax-gdb.h (gen_printf): Declare.
122 * ax-gdb.c: Include cli-utils.h, format.h.
123 (gen_printf): New function.
124 (maint_agent_print_command): New function.
125 (_initialize_ax_gdb): Add maint agent-printf command.
126 * ax-general.c (ax_string): New function.
127 (ax_print): Add printf disassembly.
128 * Makefile.in (SFILES): Add format.c
129 (COMMON_OBS): Add format.o.
130 * common/format.h: New file.
131 * common/format.c: New file.
132 * printcmd.c: Include format.h.
133 (ui_printf): Call parse_format_string.
134 * remote.c (remote_state): New field breakpoint_commands.
135 (PACKET_BreakpointCommands): New enum.
136 (remote_breakpoint_commands_feature): New function.
137 (remote_protocol_features): Add new BreakpointCommands entry.
138 (remote_can_run_breakpoint_commands): New function.
139 (remote_add_target_side_commands): New function.
140 (remote_insert_breakpoint): Call it.
141 (remote_insert_hw_breakpoint): Ditto.
142 (_initialize_remote): Add new packet configuration for
143 target-side breakpoint commands.
144 * target.h (struct target_ops): New field
145 to_can_run_breakpoint_commands.
146 (target_can_run_breakpoint_commands): New macro.
147 * target.c (update_current_target): Handle
148 to_can_run_breakpoint_commands.
149
2d7b58e8
JK
1502012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
151
152 Execute -ix and -iex only after system and user gdbinit files.
153 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
154 processing down after gdbinit files.
155
8690e634
JK
1562012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
157
158 Add fnmatch-gnu module.
159 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
160 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
161 * gnulib/aclocal.m4: Regenerate.
162 * gnulib/config.in: Regenerate.
163 * gnulib/configure: Regenerate.
164 * gnulib/import/dummy.c: Remove.
165 * gnulib/import/Makefile.am: Regenerate.
166 * gnulib/import/Makefile.in: Likewise.
167 * gnulib/import/m4/gnulib-cache.m4: Likewise.
168 * gnulib/import/m4/gnulib-comp.m4: Likewise.
169 * gnulib/import/alloca.c: New file.
170 * gnulib/import/alloca.in.h: Likewise.
171 * gnulib/import/config.charset: Likewise.
172 * gnulib/import/fnmatch.c: Likewise.
173 * gnulib/import/fnmatch.in.h: Likewise.
174 * gnulib/import/fnmatch_loop.c: Likewise.
175 * gnulib/import/localcharset.c: Likewise.
176 * gnulib/import/localcharset.h: Likewise.
177 * gnulib/import/m4/alloca.m4: Likewise.
178 * gnulib/import/m4/codeset.m4: Likewise.
179 * gnulib/import/m4/configmake.m4: Likewise.
180 * gnulib/import/m4/fcntl-o.m4: Likewise.
181 * gnulib/import/m4/fnmatch.m4: Likewise.
182 * gnulib/import/m4/glibc21.m4: Likewise.
183 * gnulib/import/m4/localcharset.m4: Likewise.
184 * gnulib/import/m4/locale-fr.m4: Likewise.
185 * gnulib/import/m4/locale-ja.m4: Likewise.
186 * gnulib/import/m4/locale-zh.m4: Likewise.
187 * gnulib/import/m4/mbrtowc.m4: Likewise.
188 * gnulib/import/m4/mbsinit.m4: Likewise.
189 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
190 * gnulib/import/m4/mbstate_t.m4: Likewise.
191 * gnulib/import/m4/stdbool.m4: Likewise.
192 * gnulib/import/m4/wchar_h.m4: Likewise.
193 * gnulib/import/m4/wctype_h.m4: Likewise.
194 * gnulib/import/m4/wint_t.m4: Likewise.
195 * gnulib/import/mbrtowc.c: Likewise.
196 * gnulib/import/mbsinit.c: Likewise.
197 * gnulib/import/mbsrtowcs-impl.h: Likewise.
198 * gnulib/import/mbsrtowcs-state.c: Likewise.
199 * gnulib/import/mbsrtowcs.c: Likewise.
200 * gnulib/import/ref-add.sin: Likewise.
201 * gnulib/import/ref-del.sin: Likewise.
202 * gnulib/import/stdbool.in.h: Likewise.
203 * gnulib/import/streq.h: Likewise.
204 * gnulib/import/strnlen1.c: Likewise.
205 * gnulib/import/strnlen1.h: Likewise.
206 * gnulib/import/verify.h: Likewise.
207 * gnulib/import/wchar.in.h: Likewise.
208 * gnulib/import/wctype.in.h: Likewise.
209
202cbf1c
JK
2102012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
211
212 Support shell wildcards for 'set auto-load safe-path'.
213 * auto-load.c: Include fnmatch.h.
214 (filename_is_in_dir): Rename to ...
215 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
216 it. Update function comment. Rename dir_len to pattern_len. New
217 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
218 messages. Use gdb_filename_fnmatch.
219 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
220 pattern.
221 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
222 * defs.h (gdb_filename_fnmatch): New declaration.
223 * utils.c: Include fnmatch.h.
224 (gdb_filename_fnmatch): New function.
225
fb7b5af4
SDJ
2262012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
227
228 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
229 `-probe' and `-probe-stap' options.
230
72d0e2c5
YQ
2312012-07-01 Yao Qi <yao@codesourcery.com>
232
233 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
234 always_inserted_off, and always_inserted_enums.
235 Change always_inserted_mode's type to 'enum auto_boolean'.
236 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
237 callers.
238 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
239 of add_setshow_enum_cmd.
240 * infrun.c: Remove can_use_displaced_stepping_auto,
241 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
242 can_use_displaced_stepping_enum.
243 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
244 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
245 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
246 add_setshow_enum_cmd.
247
42e7ad6c
DE
2482012-06-30 Doug Evans <dje@google.com>
249
250 * dwarf2read.c (signatured_type): Make "per_cu" member first.
251 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
252 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
253
39cf75f7
DE
2542012-06-29 Doug Evans <dje@google.com>
255
256 * linespec.c: #include "stack.h".
257 (decode_line_with_current_source): Moved here from symtab.c and
258 renamed from decode_line_spec. All callers updated.
259 (decode_line_with_last_displayed): Moved here from breakpoint.c and
260 renamed from decode_line_spec_1. All callers updated.
261 * linespec.h (decode_line_with_current_source): Move declaration here
262 from symtab.h and renamed from decode_line_spec.
263 (decode_line_with_last_displayed): Move declaration here from symtab.h
264 and renamed from decode_line_spec_1.
265 * macrocmd.c: #include "linespec.h".
266 * symtab.c: Remove #include "linespec.h".
267
433df2d4
DE
2682012-06-28 Doug Evans <dje@google.com>
269
1ce1cefd
DE
270 * dwarf2read.c (get_cu_length): New function.
271 (offset_in_cu_p, error_check_comp_unit_head): Call it.
272 (create_debug_types_hash_table): Ditto.
273 (init_cutu_and_read_dies): Ditto.
274 (init_cutu_and_read_dies_no_follow): Ditto.
275
3b80fe9b
DE
276 * dwarf2read.c (dwarf2_find_base_address): Move definition.
277
433df2d4
DE
278 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
279 (struct abbrev_table): Define.
280 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
281 abbrev_table.
282 (init_cutu_and_read_dies): Update.
283 (abbrev_table_alloc_abbrev): New function. Replaces
284 dwarf_alloc_abbrev. All callers updated.
285 (abbrev_table_add_abbrev): New function.
286 (abbrev_table_lookup_abbrev): New function. Replaces
287 dwarf2_lookup_abbrev. All callers updated.
288 (abbrev_table_read_table): New function. Contents moved here from
289 dwarf2_read_abbrevs.
290 (dwarf2_read_abbrevs): Call it.
291 (abbrev_table_free): New function.
292 (dwarf2_free_abbrev_table): Call it.
293
71caed83
SS
2942012-06-28 Stan Shebs <stan@codesourcery.com>
295
296 * osdata.c (info_osdata_command): Filter out "Title" columns
297 from non-MI uses.
298 * common/linux-osdata.c (struct osdata_type): Add title field.
299 (osdata_table): Add titles to each entry.
300 (linux_command_xfer_osdata): Add a column for title data.
301
37ce89eb
SS
3022012-06-28 Stan Shebs <stan@codesourcery.com>
303
304 Make logging work for MI.
305 * NEWS: Mention it.
306 * interps.h (interp_set_logging_ftype): New typedef.
307 (struct interp_procs): New field set_logging_proc.
308 (current_interp_set_logging): Declare.
309 * interps.c (current_interp_set_logging): New function.
310 * cli/cli-logging.c: Include interps.h.
311 (set_logging_redirect): Call current_interp_set_logging.
312 (pop_output_files): Ditto.
313 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
314 * mi/mi-console.h (mi_console_set_raw): Declare.
315 * mi/mi-console.c (mi_console_set_raw): New function.
316 * mi/mi-interp.c (saved_raw_stdout): New global.
317 (mi_set_logging): New function.
318 (_initialize_mi_interp): Add it to interp procs.
319
659c9f3a
DE
3202012-06-28 Doug Evans <dje@google.com>
321
a743abeb
DE
322 * symtab.c (lookup_symbol_aux_objfile): Use
323 ALL_OBJFILE_PRIMARY_SYMTABS.
324
659c9f3a
DE
325 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
326
da2d6d3d
JK
3272012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
328
329 * common/buffer.c: Include inttypes.h and stdint.h.
330 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
331
e5ef252a
PA
3322012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
333 Pedro Alves <palves@redhat.com>
334
335 * gdbthread.h (ALL_THREADS): New macro.
336 (thread_list): Declare.
337 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
338 going, but instead fall through to the stepping handling.
339 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
340 the passed in signal. Adjust debug output.
341 (resume_callback): Rename to ...
342 (linux_nat_resume_callback): ... this. Pass the thread's last
343 stop signal, if in "pass" state.
344 (linux_nat_resume): Adjust to rename.
345 (stop_wait_callback): New assertion. Don't respawn signals;
346 instead let the LWP remain with SIGNALLED set.
347 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
348 * remote.c (append_pending_thread_resumptions): New.
349 (remote_vcont_resume): Call it.
350 * target.h (target_resume): Extend comment.
351
1d7975eb
IS
3522012-06-28 Iain Sandoe <iain@codesourcery.com>
353
354 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
355
2e3cf129
DE
3562012-06-27 Doug Evans <dje@google.com>
357
358 * dwarf2read.c (dwarf2_cu): Add ranges_base.
359 Delete have_addr_base, unused. All uses updated.
360 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
361 (dwarf2_get_pc_bounds): Add ranges_base.
362 (dwarf2_record_block_ranges): Ditto.
363
1bb9788d
TT
3642012-06-27 Tom Tromey <tromey@redhat.com>
365
366 PR macros/7961:
367 * varobj.c (varobj_create): Update.
368 (varobj_set_value): Update.
369 * tracepoint.c (validate_actionline): Update.
370 (encode_actions_1): Update.
371 * parse.c (parse_exp_1): Add 'pc' argument.
372 (parse_exp_in_context): Add 'pc' argument. Change how
373 expression_context_pc is set.
374 (parse_expression): Update.
375 (parse_field_expression): Update.
376 * expression.h (parse_exp_1): Update.
377 * eval.c (parse_to_comma_and_eval): Update.
378 * breakpoint.c (set_breakpoint_condition): Update.
379 (update_watchpoint): Update.
380 (init_breakpoint_sal): Update
381 (find_condition_and_thread): Update.
382 (watch_command_1): Update.
383 (update_breakpoint_locations): Update.
384 * ada-lang.c (ada_read_renaming_var_value): Update.
385 (create_excep_cond_exprs): Update.
386
0bc3a05c
DE
3872012-06-27 Doug Evans <dje@google.com>
388
389 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
390 type units.
391
4bdcc0c1
DE
3922012-06-26 Doug Evans <dje@google.com>
393
394 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
395 prototype.
396 (error_check_comp_unit_head): New arg abbrev_section. All callers
397 updated.
398 (read_and_check_comp_unit_head): Ditto.
399 (read_and_check_type_unit_head): Ditto.
400
ee0bf529
SCR
4012012-06-26 Siva Chandra Reddy <sivachandra@google.com>
402
403 New attribute 'last' for gdb.Symtab_and_line.
404 * NEWS (Python Scripting): Add entry about the new attribute.
405 * python/py-symtab.c (salpy_get_last): New function which
406 implements the get method for the 'last' attribute of
407 gdb.Symtab_and_line.
408 (sal_object_getset): Add entry for the 'last' attribute.
409
1c658ad5
DE
4102012-06-26 Doug Evans <dje@google.com>
411
09262596
DE
412 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
413 (dwo_sections): Add macinfo, macro.
414 (dwarf2_locate_dwo_sections): Watch for macro sections.
415 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
416 All callers updated. Handle DWO files.
417
45cfd468
DE
418 * NEWS: Mention new options "set debug dwarf2-read" and
419 "set debug symtab-create".
420 * dwarf2read.c (dwarf2_read_debug): New static global.
421 (dwarf2_build_psymtabs_hard): Add debugging printfs.
422 (process_queue): Ditto.
423 (process_full_comp_unit): Ditto.
424 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
425 * elfread.c (elf_symfile_read): Add debugging printf.
426 * minsyms.c (install_minimal_symbols): Ditto.
427 * psymtab.c (allocate_psymtab): Ditto.
428 * symfile.c (allocate_symtab): Ditto.
429 * symtab.c (symtab_create_debug): New global.
430 (_initialize_symtab): Add new option "set debug symtab-create".
431 * symtab.h (symtab_create_debug): Declare.
432
1c658ad5
DE
433 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
434 (lookup_dwo_type_unit): Ditto.
435
6fea9e18
L
4362012-06-26 Roland McGrath <roland@hack.frob.com>
437 H.J. Lu <hongjiu.lu@intel.com>
438
439 * amd64-linux-nat.c: Include <sys/user.h>.
440 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
441 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
442 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
443
444 * configure.ac: Check if the fs_base and gs_base members of
445 `struct user_regs_struct' exist.
446 * config.in: Regenerated.
447 * configure: Likewise.
448
adb4fe3b
ME
4492012-06-25 Michael Eager <eager@eagercon.com>
450
451 PR python/14291
452 * python/python.c (gdbpy_write): Check for interrupted output.
453
fc51cce1
MGD
4542012-06-25 Greta Yorsh <greta.yorsh@arm.com>
455
456 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
457 register as a stack alignment in ARM mode.
458
40a73391
JK
4592012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
462 * gnulib/config.in: Regenerate.
463 * gnulib/configure: Likewise.
464 * gnulib/import/m4/extensions.m4: Update it.
465 * gnulib/import/m4/gnulib-common.m4: Likewise.
466 * gnulib/import/m4/memmem.m4: Likewise.
467 * gnulib/import/m4/mmap-anon.m4: Likewise.
468 * gnulib/import/m4/multiarch.m4: Likewise.
469 * gnulib/import/stdint.in.h: Likewise.
470
972daa01
YQ
4712012-06-24 Yao Qi <yao@codesourcery.com>
472
473 * corefile.c (write_memory_with_notification): New.
474 * gdbcore.h: Declare write_memory_with_notification.
475 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
476 'observer_notify_memory_changed' with 'write_memory_with_notification'.
477 * valops.c (value_assign): Likewise.
478 * python/py-inferior.c (infpy_write_memory): Call
479 'write_memory_with_notification'.
480
8d6e0714
JK
4812012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 * cc-with-index.sh: Use also -ex "set auto-load no".
484
156942c7
DE
4852012-06-23 Doug Evans <dje@google.com>
486
487 PR 14125
488 * NEWS: Document additions to .gdb_index.
489 * dwarf2read.c: #include "gdb/gdb-index.h".
490 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
491 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
492 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
493 (dwarf2_read_index): Recognize version 7.
494 (dw2_do_expand_symtabs_matching): New args want_specific_block,
495 block_kind, domain): All callers updated.
496 (dw2_find_symbol_file): Handle new index CU values.
497 (dw2_expand_symtabs_matching): Match symbol kind if requested.
498 (add_index_entry): New args is_static, kind. All callers updated.
499 (offset_type_compare, uniquify_cu_indices): New functions
500 (symbol_kind): New function.
501 (write_psymtabs_to_index): Remove duplicate CU values.
502 (write_psymtabs_to_index): Write .gdb_index version 7.
503
352b3eda
JB
5042012-06-22 Joel Brobecker <brobecker@adacore.com>
505
506 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
507 * configure: Regenerate.
508
2678e2af
YQ
5092012-06-20 Yao Qi <yao@codesourcery.com>
510
511 * python/py-inferior.c: Update comments of infpy_read_memory
512 and infpy_write_memory.
513
95c391b6
TT
5142012-06-19 Tom Tromey <tromey@redhat.com>
515
516 PR exp/9514:
517 * parser-defs.h (insert_type, insert_type_address_space): Declare.
518 (push_type_address_space): Remove.
519 * parse.c (insert_into_type_stack): New function.
520 (insert_type): Likewise.
521 (insert_type_address_space): Rename from push_type_address_space.
522 Insert tp_space_identifier.
523 * c-exp.y (ptr_operator): New production.
524 (abs_decl): Use ptr_operator.
525 (space_identifier): Call insert_type_address_space.
526 (ptype): Don't use const_or_volatile_or_space_identifier.
527 (const_or_volatile_noopt): Call insert_type.
528 (conversion_type_id, conversion_declarator): New productions.
529 (operator): Use conversion_type_id.
530
6ac9ef80
DE
5312012-06-18 Doug Evans <dje@google.com>
532
422d65e7
DE
533 * symtab.h (minimal_symbol): New member created_by_gdb.
534 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
535 created by gdb.
536 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
537 (search_symbols): Call it instead of lookup_symbol.
538 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
539
49f6c839
DE
540 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
541 Adjust address for DW_OP_GNU_addr_index.
542 * dwarf2expr.h (dwarf_expr_context): Update comment.
543 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
544 all callers updated. Handle TLS vars described with
545 DW_OP_GNU_const_index.
546 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
547 and DW_OP_GNU_const_index.
548 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
549
6ac9ef80
DE
550 * block.c (find_block_in_blockvector): Make explicit the fact that we
551 ignore GLOBAL_BLOCK.
552
4cd18215
TT
5532012-06-18 Tom Tromey <tromey@redhat.com>
554
555 * c-exp.y (operator): Remove trailing space after "delete" and
556 "delete[]".
557
a9b8d892
JK
5582012-06-18 Mark Kettenis <kettenis@gnu.org>
559 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 Switch i386 and derived targets to ON_STACK.
562 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
563 (amd64_dicos_init_abi): Remove its installment.
564 * dicos-tdep.c (dicos_init_abi): Remove the
565 set_gdbarch_call_dummy_location call. Update the comment here.
566 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
567 (i386_dicos_init_abi): Remove its installment.
568 * i386-tdep.c (i386_push_dummy_code): New function.
569 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
570 i386_push_dummy_code.
571
e2e4d78b
JK
5722012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
573
574 Remove stale dummy frames.
575 * breakpoint.c: Include dummy-frame.h.
576 (longjmp_breakpoint_ops): New variable.
577 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
578 bp_longjmp_call_dummy.
579 (bpstat_what, bptype_string, print_one_breakpoint_location)
580 (init_bp_location): Support bp_longjmp_call_dummy.
581 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
582 (set_longjmp_breakpoint_for_call_dummy)
583 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
584 functions.
585 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
586 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
587 FIXME comment and extend the other comment for bp_call_dummy.
588 (set_longjmp_breakpoint_for_call_dummy)
589 (check_longjmp_breakpoint_for_call_dummy): New declarations.
590 * dummy-frame.c: Include gdbthread.h.
591 (pop_dummy_frame_bpt): New function.
592 (pop_dummy_frame): Call pop_dummy_frame_bpt.
593 (dummy_frame_discard): New function.
594 (cleanup_dummy_frames): Update the comment about longjmps.
595 * dummy-frame.h (dummy_frame_discard): New declaration.
596 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
597 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
598 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
599 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
600 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
601 keep_going if IS_LONGJMP and there is no other reason to stop.
602
09d5912c
TT
6032012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
604
605 * remote-sim.c (sim_command_completer): Initialize
606 variable 'result'.
607
1788b2d3
JK
6082012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
609
610 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
611 * dwarf2loc.c (call_site_parameter_matches): Support
612 CALL_SITE_PARAMETER_PARAM_OFFSET.
613 (needs_dwarf_reg_entry_value): Push stub value.
614 * dwarf2read.c (read_call_site_scope): New variable origin. Support
615 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
616 * gdbtypes.h (enum call_site_parameter_kind): New item
617 CALL_SITE_PARAMETER_PARAM_OFFSET.
618 (struct call_site.parameter.u): New field param_offset.
619
24c5c679
JK
6202012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
621
622 Code cleanup: Generalize call_site.parameter key.
623 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
624 variable dwarf_reg. New variable kind_u. Update parameters to
625 push_dwarf_reg_entry_value.
626 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
627 * dwarf2expr.h (enum call_site_parameter_kind)
628 (union call_site_parameter_u): Forward declarations.
629 (struct dwarf_expr_context_funcs): Update parameters and their
630 description for push_dwarf_reg_entry_value.
631 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
632 * dwarf2loc.c (call_site_parameter_matches): New function.
633 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
634 description. Use call_site_parameter_matches.
635 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
636 Update parameters and their description.
637 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
638 New variable kind_u. Adjust the caller for updated parameters.
639 (needs_dwarf_reg_entry_value): Update parameters.
640 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
641 instead of attr. Update for the changed fields of struct
642 call_site_parameter.
643 * gdbtypes.h: Include dwarf2expr.h.
644 (enum call_site_parameter_kind): New.
645 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
646 fb_offset into new union u.
647
ac142d96
L
6482012-06-16 H.J. Lu <hongjiu.lu@intel.com>
649
650 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
651 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
652 for x32.
653
ba224c70
L
6542012-06-16 H.J. Lu <hongjiu.lu@intel.com>
655
656 * amd64-linux-nat.c (compat_x32_clock_t): New.
657 (compat_x32_siginfo_t): Likewise.
658 (compat_x32_siginfo_from_siginfo): Likewise.
659 (siginfo_from_compat_x32_siginfo): Likewise.
660 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
661 and siginfo_from_compat_x32_siginfo for x32.
662
7ecbc825
HZ
6632012-06-15 Hui Zhu <hui_zhu@mentor.com>
664
665 * tracepoint.c (tfile_xfer_partial): Add a lseek.
666
233dfcf0
L
6672012-06-15 H.J. Lu <hongjiu.lu@intel.com>
668
669 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
670 instead of gdbarch_ptr_bit.
671 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
672 (amd64_supply_native_gregset): Likewise.
673 (amd64_collect_native_gregset): Likewise.
674 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
675 (amd64_supply_xsave): Likewise.
676 (amd64_collect_fxsave): Likewise.
677 (amd64_collect_xsave): Likewise.
678
6da38f42
L
6792012-06-15 H.J. Lu <hongjiu.lu@intel.com>
680
681 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
682 (amd64_linux_read_description): Check DS segment register for
683 x32 process.
684
663b969e
TT
6852012-06-15 Tom Tromey <tromey@redhat.com>
686
687 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
688 init_cutu_and_read_dies.
689
d6f05027
IS
6902012-06-15 Iain Sandoe <iain@codesourcery.com>
691
692 * MAINTAINERS (Write After Approval): Add myself to the list.
693
6598ed07
TT
6942012-06-15 Tom Tromey <tromey@redhat.com>
695
696 * valops.c (value_find_oload_method_list): Now static.
697 * value.h (value_find_oload_method_list): Don't declare.
698
2b214ea6
TT
6992012-06-15 Tom Tromey <tromey@redhat.com>
700
701 * valops.c (find_overload_match): Use value_ind.
702
a210c238
MR
7032012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
704
705 * infrun.c (handle_inferior_event): Correct indentation.
706
3771a44c
DE
7072012-06-14 Doug Evans <dje@google.com>
708
709 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
710 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
711 All uses updated.
712 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
713 updated. Handle DEBUG_LOC_START_LENGTH.
714 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
715 (loclist_describe_location): Ditto.
716
1c5a993e
MR
7172012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
718
719 PR backtrace/13866
720 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
721 after hiding inline functions.
722
0b155465
JB
7232012-06-13 Joel Brobecker <brobecker@adacore.com>
724
725 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
726 _initialize_inf_ttrace.
727
45717bac
JB
7282012-06-13 Joel Brobecker <brobecker@adacore.com>
729
730 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
731 _initialize_hppa_hpux_nat.
732
34370865
JB
7332012-06-13 Joel Brobecker <brobecker@adacore.com>
734
735 * remote-sim.c (sim_command_completer): Change type of return
736 value to "VEC (char_ptr) *". Adjust implementation accordingly.
737
284c5a60
MK
7382012-06-13 Mark Kettenis <kettenis@gnu.org>
739 Jan Kratochvil <jan.kratochvil@redhat.com>
740
741 PR tdep/14222
742 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
743 stack on a 16-byte boundary.
744
2535757a
TT
7452012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
746
747 * jit.c (finalize_symtab): Set function's return type to 'void' by
748 default.
749
fff4548b
MK
7502012-06-13 Mark Kettenis <kettenis@gnu.org>
751 H.J. Lu <hongjiu.lu@intel.com>
752
5a83521a
MK
753 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
754 Move bits common to both the classic LP64 and the new x32 ILP32
755 ABI here.
756 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
757 (amd64_x32_linux_init_abi): New function.
758 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
759 subtype.
760
fff4548b
MK
761 * i386-tdep.h (i386_pseudo_register_name): New prototype.
762 * i386-tdep.c (i386_pseudo_register_name): Make public.
763 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
764 * amd64-tdep.c (amd64_dword_names): Add "eip".
765 (amd64_x32_pseudo_register_type): New function
766 (amd64_x32_init_abi): New function.
767
dd80ea3c
JK
7682012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
769
770 PR build/14003
771 * inferior.h (struct inferior_suspend_state): Comment out.
772 (struct inferior): Comment out the field suspend.
773 * infrun.c (struct infcall_suspend_state): Comment out the field
774 inferior_suspend.
775 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
776 out its assignment.
777
50af5481
JK
7782012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
779
780 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
781 * c-exp.y (classify_inner_name): Remove caller assumptions in the
782 function comment. Return ERROR for unresolved cases. Implement
783 returning proper NAME.
784 (yylex): Accept also NAME from classify_inner_name.
785 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
786 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
787 LOC_TYPEDEF type.
788 * cp-support.h (cp_lookup_nested_type): Update its declaration.
789
d55637df
TT
7902012-06-13 Tom Tromey <tromey@redhat.com>
791
792 * breakpoint.c (condition_completer): New function.
793 (_initialize_breakpoint): Use it.
794 * value.c (complete_internalvar): New function.
795 * value.h (complete_internalvar): Declare.
796
49c4e619
TT
7972012-06-13 Tom Tromey <tromey@redhat.com>
798
799 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
800 * breakpoint.c (catch_syscall_completer): Return a VEC.
801 * cli/cli-cmds.c (complete_command): Update.
802 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
803 (complete_on_enum): Likewise.
804 * command.h: Include gdb_vecs.h.
805 (completer_ftype): Change return type.
806 (complete_on_cmdlist, complete_on_enum): Likewise.
807 * completer.c (noop_completer, filename_completer)
808 (location_completer): Return a VEC.
809 (add_struct_fields): Remove 'nextp' argument. Change 'output'
810 to a VEC.
811 (expression_completer, complete_line_internal, complete_line)
812 (command_completer): Return a VEC.
813 (gdb_completion_word_break_characters, line_completion_function):
814 Update.
815 * completer.h: Include gdb_vecs.h.
816 (complete_line, noop_completer, filename_completer)
817 (expression_completer, location_completer, command_completer):
818 Update.
819 * f-lang.c (f_word_break_characters): Return a VEC.
820 * interps.c (interpreter_completer): Return a VEC.
821 * language.h (struct language_defn)
822 <la_make_symbol_completion_list>: Return a VEC.
823 * python/py-cmd.c (cmdpy_completer): Return a VEC.
824 * symtab.c (free_completion_list): Take a VEC.
825 (return_val_size, return_val_index): Remove.
826 (return_val): Now a VEC.
827 (completion_list_add_name): Update.
828 (default_make_symbol_completion_list_break_on)
829 (default_make_symbol_completion_list, make_symbol_completion_list)
830 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
831 Return a VEC.
832 (add_filename_to_list): Update.
833 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
834 <list>: Now a VEC.
835 (maybe_add_partial_symtab_filename): Update.
836 (make_source_files_completion_list): Return a VEC.
837 * symtab.h (default_make_symbol_completion_list_break_on)
838 (default_make_symbol_completion_list, make_symbol_completion_list)
839 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
840 (make_source_files_completion_list): Update.
841
625e8578
TT
8422012-06-13 Tom Tromey <tromey@redhat.com>
843
844 * breakpoint.c (add_catch_command): Use completer_ftype.
845 * breakpoint.h: Include command.h.
846 (add_catch_command): Use completer_ftype.
847 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
848 * cli/cli-decode.h (struct cmd_list_element) <completer>:
849 Use completer_ftype.
850 * command.h (completer_ftype): New typedef.
851 (set_cmd_completer): Use it.
852 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
853 completer_ftype.
854
5eb3b062
PA
8552012-06-13 Pedro Alves <palves@redhat.com>
856
857 Partial revert of previous change.
858
859 * serial.c (scb_base): New global.
860 (serial_for_fd): New.
861 (serial_open, serial_fdopen_ops): Link new serial in open serials
862 chain.
863 (do_serial_close): Unlink serial from the open serials chain.
864
8b3ee56d
PA
8652012-06-12 Pedro Alves <palves@redhat.com>
866
867 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
868 threads here.
869 (prepare_for_detach): No longer context switch here in non-stop
870 mode.
871 (fetch_inferior_event): Ditto.
872 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
873 to the event thread before removing breakpoints. Switch to the
874 event thread before inserting breakpoints and resuming.
875 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
876 event thread before resuming.
877 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
878 Switch to the event thread before removing breakpoints.
879
5d60742e
EZ
8802012-06-12 Eli Zaretskii <eliz@gnu.org>
881
882 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
883 special characters correctly for the Windows shells. See
884 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
885 report.
886 [!__MINGW32__]: Remove extra double quote character from special
887 characters.
888
a6feecf7
SS
8892012-06-11 Stan Shebs <stan@codesourcery.com>
890
891 * ui-out.h: Remove #if 0 declarations.
892 * ui-out.c: Remove #if 0 functions.
893
ddefb60f
PA
8942012-06-11 Pedro Alves <palves@redhat.com>
895
896 * ser-base.c (run_async_handler_and_reschedule): New.
897 (fd_event, push_event): Use it.
898 * serial.c (serial_open, serial_fdopen_ops): Set the initial
899 reference count to 1.
900 (do_serial_close): Set the bufp field to NULL. Use serial_unref
901 instead of xfree.
902 (serial_is_open, serial_ref, serial_unref): New.
903 * serial.h (serial_open): Adjust comment.
904 (serial_is_open): Declare.
905 (serial_close): Adjust comment.
906 (serial_ref, serial_unref) Declare.
907 (struct serial): New field 'refcnt'.
908
d5ad6aa5
PA
9092012-06-11 Pedro Alves <palves@redhat.com>
910
911 Remove #if 0'd "connect" command, and unnecessary associated
912 refcounting and serial reuse bits.
913
914 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
915 * serial.c (last_serial_opened): Delete.
916 (scb_base): Delete.
917 (serial_open): Adjust.
918 (serial_for_fd): Delete.
919 (serial_fdopen_ops, do_serial_close): Adjust.
920 (serial_fdopen_ops): Adjust.
921
318aa544
PA
9222012-06-11 Pedro Alves <palves@redhat.com>
923
924 * serial.c (do_serial_close): Remove early return when SCB is
925 null.
926
07261596
TT
9272012-06-11 Tom Tromey <tromey@redhat.com>
928
929 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
930
cc80f267
JK
9312012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
932
933 Fix regression by the "ambiguous linespec" series.
934 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
935 get_last_displayed_symtab and get_last_displayed_line and depending
936 on CURSAL.
937
356d9f9d
TT
9382012-06-11 Tom Tromey <tromey@redhat.com>
939
940 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
941 (dw2_find_symbol_file): Use it.
942
232b8704
ME
9432012-06-11 Michael Eager <eager@eagercon.com>
944
945 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
946 * mips-linux-tdep.h (mips_signals): New
947
e81a37f7
TT
9482012-06-11 Tom Tromey <tromey@redhat.com>
949
950 * infrun.c (handle_inferior_event)
951 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
952 breakpoint.
953 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
954 exception logic in all cases. Update comments.
955 (insert_longjmp_resume_breakpoint): Set the exception resume
956 breakpoint.
957
2e81047f
MR
9582012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
959
960 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
961
4e32eda7
SCR
9622012-06-09 Siva Chandra Reddy <sivachandra@google.com>
963
964 * valarith.c (binop_types_user_defined_p): Fix a typo.
965
18648a37
YQ
9662012-06-08 Yao Qi <yao@codesourcery.com>
967 Chung-Lin Tang <cltang@codesourcery.com>
968
969 * arch-utils.c (default_return_in_first_hidden_param_p): New.
970 * arch-utils.h: Declare.
971 * gdbarch.sh: Add return_in_first_hidden_param_p.
972 * gdbarch.c, gdbarch.h: Regenerated.
973 * infcall.c (call_function_by_hand): Call
974 gdbarch_return_in_first_hidden_param_p instead of
975 language_pass_by_reference.
976
977 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
978 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
979 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
980 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
981 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
982 `cplus_return_struct_by_reference'.
983 (tic6x_return_value): Handle language cplusplus.
984 (tic6x_return_in_first_hidden_param_p): New.
985 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
986
034e5797
DE
9872012-06-07 Doug Evans <dje@google.com>
988
989 * dwarf2read.c (dwarf2_cu): Add comment.
990
6a00aa1e
MR
9912012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
992
993 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
994 variable.
995 (mips_eabi_push_dummy_call): Likewise.
996 (mips_n32n64_push_dummy_call): Likewise.
997 (mips_o32_push_dummy_call): Likewise.
998 (mips_o64_push_dummy_call): Likewise.
999
eaa05d59
MR
10002012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1001
1002 * mips-tdep.c (mips_convert_register_p): Correct coding style.
1003
de13fcf2
MR
10042012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1005
1006 * mips-tdep.c (mips_pseudo_register_type): Use
1007 mips_float_register_p.
1008
c3a01a22
PA
10092012-06-06 Pedro Alves <palves@redhat.com>
1010
1011 * infrun.c (handle_inferior_event): Remove calls to
1012 reinit_frame_cache that follow a context_switch call.
1013
d25f45d9
PA
10142012-06-06 Pedro Alves <palves@redhat.com>
1015
1016 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
1017 context_switch and remove stale comment.
1018
359f5fe6
PA
10192012-06-06 Pedro Alves <palves@redhat.com>
1020
1021 * infrun.c (struct execution_control_state): Remove
1022 `new_thread_event' field.
1023 (handle_inferior_event): Simplify new threads handling; don't
1024 resume the inferior if we find a new thread.
1025
2d4c29c5
TS
10262012-06-06 Thomas Schwinge <thomas@codesourcery.com>
1027
1028 * NEWS: Document the deprecation of SH's 'regs' command.
1029 * inferior.h (all_registers_info): Add function declaration.
1030 * sh-tdep.c (sh_show_regs): Remove variable.
1031 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
1032 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1033 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
1034 (sh_show_regs_command): Remove functions.
1035 (sh_gdbarch_init): Don't set sh_show_regs.
1036 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
1037 'info all-registers'.
1038 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
1039 (sh64_show_regs): Remove functions.
1040 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
1041
f5f1cdb6
JK
10422012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1043
1044 * configure.ac: Move development=true below AC_INIT.
1045 * configure: Regenerate.
1046
bf6309af
SS
10472012-06-05 Stan Shebs <stan@codesourcery.com>
1048
1049 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
1050 gdb_stdout.
1051
45aa4659
JK
10522012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
1053
1054 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
1055 argument as ssize_t.
1056 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
1057 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
1058 * target.c (target_read_stack, target_write_memory)
1059 (target_write_raw_memory): Likewise.
1060 * target.h (target_read_stack, target_write_memory)
1061 (target_write_raw_memory): Likewise.
1062
1b162304
JK
10632012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1064
1065 * symfile-mem.c: Change gdb_static_assert to ssize_t.
1066 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
1067 * target.c (target_read_memory): Change LEN to ssize_t.
1068 * target.h (target_read_memory): Change LEN to ssize_t.
1069
8556afb4
PA
10702012-06-05 Pedro Alves <palves@redhat.com>
1071
1072 PR backtrace/13866
1073
1074 * breakpoint.c (until_break_command): Only fetch the selected
1075 frame after decode_line_1.
1076
fb139f32
PA
10772012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1078
1079 * solib-svr4.c (enable_break): Don't fallback to setting the solib
1080 event breakpoint at _start, __start or main if a program
1081 interpreter is not found.
1082
a8e1bb34
JB
10832012-06-05 Joel Brobecker <brobecker@adacore.com>
1084
1085 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
1086 Add declaration.
1087 * windows-tdep.c: #include "objfiles.h".
1088 (windows_iterate_over_objfiles_in_search_order): New function.
1089 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1090 iterate_over_objfiles_in_search_order gdbarch method to
1091 windows_iterate_over_objfiles_in_search_order.
1092 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1093
19630284
JB
10942012-06-05 Joel Brobecker <brobecker@adacore.com>
1095
1096 * gdbarch.sh: Add generation of
1097 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
1098 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
1099 (iterate_over_objfiles_in_search_order): New gdbarch method.
1100 * gdbarch.h, gdbarch.c: Regenerate.
1101 * objfiles.h (default_iterate_over_objfiles_in_search_order):
1102 Add declaration.
1103 * objfiles.c (default_iterate_over_objfiles_in_search_order):
1104 New function.
1105 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1106 out of lookup_symbol_aux_symtabs.
1107 (lookup_symbol_aux_symtabs): Replace extracted-out code by
1108 call to lookup_symbol_aux_objfile.
1109 (struct global_sym_lookup_data): New type.
1110 (lookup_symbol_global_iterator_cb): New function.
1111 (lookup_symbol_global): Search for symbol using
1112 gdbarch_iterate_over_objfiles_in_search_order and
1113 lookup_symbol_global_iterator_cb.
1114 * findvar.c (struct minsym_lookup_data): New type.
1115 (minsym_lookup_iterator_cb): New function.
1116 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
1117 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
1118 and minsym_lookup_iterator_cb.
1119
67ff19f7
JB
11202012-06-05 Joel Brobecker <brobecker@adacore.com>
1121
1122 Revert the following patch:
1123 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1124 try locating the symbol in the symbol's own objfile first, before
1125 extending the search to all objfiles.
1126 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1127 out of lookup_symbol_aux_symtabs.
1128 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1129 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1130 Do not search EXCLUDE_OBJFILE.
1131 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1132 (lookup_symbol_global): Search for matches in the block's objfile
1133 first, before searching all other objfiles.
1134
ccab2054
JB
11352012-06-05 Joel Brobecker <brobecker@adacore.com>
1136
1137 * breakpoint.c (find_condition_and_thread): Stop parsing
1138 as soon as the first invalid keyword is found.
1139
e23d4a9c
JB
11402012-06-05 Joel Brobecker <brobecker@adacore.com>
1141
1142 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
1143
70160166
JB
11442012-06-05 Joel Brobecker <brobecker@adacore.com>
1145
1146 * config/djgpp/djcheck.sh: Add copyright header.
1147
399501a5
JB
11482012-06-05 Joel Brobecker <brobecker@adacore.com>
1149
1150 * copyright.py (update_files, main): Fix path to update-copyright
1151 script.
1152
3770a159
JB
11532012-06-05 Joel Brobecker <brobecker@adacore.com>
1154
1155 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
1156 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
1157 for which a reminder to update by hand is printed.
1158
4aad0dfc
DE
11592012-06-04 Doug Evans <dje@google.com>
1160
1161 * buildsym.c (make_blockvector): Add comment.
1162
1f8cf220
PA
11632012-06-04 Pedro Alves <palves@redhat.com>
1164
1165 * arch-utils.c (default_gdb_signal_from_target): Delete.
1166 * arch-utils.h (default_gdb_signal_from_target): Delete.
1167 * corelow.c (core_open) <signal mapping>: Extended comment. Check
1168 gdbarch_gdb_signal_from_target_p.
1169 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
1170 predicate).
1171 * gdbarch.h: Regenerate.
1172 * gdbarch.c: Regenerate.
1173
86b49880
PA
11742012-06-04 Pedro Alves <palves@redhat.com>
1175
1176 * gdbarch.sh (gdb_signal_from_target): Mention that the
1177 implementation of the method must be host independent.
1178 * gdbarch.h: Regenerate.
1179
fe78531d
JK
11802012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1181
1182 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
1183 parameters.
1184 (target_read_memory_bfd): New function.
1185 (symbol_file_add_from_memory): Use it.
1186
d790cf0a
DE
11872012-06-03 Doug Evans <dje@google.com>
1188
78e5175a
DE
1189 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
1190 of primary symtab.
1191 (basic_lookup_transparent_type): Ditto.
1192
d790cf0a
DE
1193 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
1194 (ALL_PRIMARY_SYMTABS): Use it.
1195 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1196 * dwarf2read.c (dw2_find_symbol_file): Ditto.
1197 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
1198 * symtab.c (lookup_symbol_aux_objfile): Ditto.
1199 (basic_lookup_transparent_type): Ditto.
1200
c6e5ee5e
SDJ
12012012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
1202
1203 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
1204 it to optimize resolution of demangled name.
1205
a68ffae9
JK
12062012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1207
1208 * configure.ac (development): Define new variable.
1209 Call AC_CHECK_LIB for mcheck if $development.
1210 (ERROR_ON_WARNING): Enable it by default only if $development.
1211 * config.in: Regenerate.
1212 * configure: Regenerate.
1213
5299c1c4
JK
12142012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
1215
1216 * target.c (target_read_memory): Make LEN argument as size_t.
1217 * target.h (target_read_memory): Likewise.
1218
12192012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
1220
1221 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
1222
0c56f59b
EBM
12232012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
1224
1225 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
1226 BookE interface for PowerPC server processors if not available
1227 in the Linux Kernel.
1228
71bdabee
KS
12292012-05-31 Keith Seitz <keiths@redhat.com>
1230
1231 * linespec.c (decode_objc): Add cleanup to free
1232 INFO.FILE_SYMTABS.
1233 (find_linespec_symbols): Add cleanup to free CLASSES.
1234 * symfile.c (find_separate_debug_file_by_debuglink): Add
1235 cleanup to free DEBUGLINK.
1236 * ui-out.c (clear_header_list): No need to check if
1237 HEADER_NEXT.COLHDR is NULL.
1238 Free HEADER_NEXT.COL_NAME.
1239
acbd605d
MGD
12402012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1241
1242 * ada-lang.c (standard_lookup): Prevent uninitialized variable
1243 warning.
1244
65662cde
PA
12452012-05-30 Jeff Kenton <jkenton@tilera.com>
1246
1247 * configure.host (gdb_host_cpu): Handle tilegx*.
1248 (gdb_host): Handle tilegx-*-linux*.
1249 * tilegx-linux-nat.c: New file.
1250 * config/tilegx/linux.mh: New file.
1251
ade64f0e
PA
12522012-05-30 Jeff Kenton <jkenton@tilera.com>
1253
1254 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
1255 tilegx-linux-tdep.o.
1256 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
1257 tilegx-linux-tdep.c.
1258 * configure.tgt: Handle tilegx-*-linux*.
1259 * tilegx-tdep.h: New file.
1260 * tilegx-tdep.c: New file.
1261 * tilegx-linux-tdep.c: New file.
1262 * regformats/reg-tilegx.dat: New file.
1263
bb08bdbd
EBM
12642012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
1265
1266 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
1267 accounting of hw watchpoints on ppc.
1268
ebd86fb5
TJB
12692012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
1270
1271 * source.c (openp): Expand tilde in path entries.
1272
0a0edcd5
DE
12732012-05-29 Doug Evans <dje@google.com>
1274
98cc87bd
DE
1275 * buildsym.c (block_compar): Fix comment.
1276 (end_symtab): Fix and clarify some comments.
1277
0a0edcd5
DE
1278 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
1279 cleanup_undefined_types.
1280 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
1281 All callers updated.
1282
6f0c7050
TT
12832012-05-29 Tom Tromey <tromey@redhat.com>
1284
1285 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
1286 fails.
1287 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
1288 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
1289 fails.
1290 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
1291 fails.
1292
ec95993c
TG
12932012-05-29 Tristan Gingold <gingold@adacore.com>
1294
1295 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
1296 (struct darwin_info): ... New struct.
1297 (solib_darwin_pspace_data): New variable.
1298 (darwin_pspace_data_cleanup): New function.
1299 (get_darwin_info): Likewise.
1300 (darwin_dyld_version_ok, darwin_load_image_infos)
1301 (darwin_solib_get_all_image_info_addr_at_init)
1302 (darwin_solib_read_all_image_info_addr): Add info argument.
1303 Adjust code.
1304 (darwin_current_sos): Use per pspace structure.
1305 (darwin_solib_create_inferior_hook): Likewise.
1306 (darwin_clear_solib): Likewise.
1307 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
1308
ae25568b
PA
13092012-05-28 Pedro Alves <palves@redhat.com>
1310
1311 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
1312 block that uses them. Clear ecss before handling each event.
1313
0c5bf5a9
JK
13142012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1315
1316 * solib-svr4.c (svr4_current_sos): New comment on
1317 svr4_current_sos_via_xfer_libraries fall back.
1318
bfb05775
JK
13192012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1320
1321 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
1322 it as a fallback for TYPE_IS_OPAQUE.
1323 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1324 symbols for lookup_symbol.
1325
685b1105
JK
13262012-05-24 John Steele Scott <toojays@toojays.net>
1327
1328 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1329 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1330 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1331 (check_producer): ... this new function, which also checks for ICC
1332 and caches the result.
1333 (producer_is_icc): New function.
1334 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1335 producer was ICC.
1336
22203bbf
PA
13372012-05-24 Pedro Alves <palves@redhat.com>
1338
1339 PR gdb/7205
1340
1341 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1342 (default_gdb_signal_to_target): ... this. Add comment.
1343 (default_gdb_signal_from_host): Rename to ...
1344 (default_gdb_signal_from_target): ... this. Add comment.
1345 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1346 (default_gdb_signal_to_target): ... this.
1347 (default_gdb_signal_from_host): Rename to ...
1348 (default_gdb_signal_from_target): ... this.
1349 * corelow.c (core_open): Adjust to naming change. Replace comment.
1350 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1351 (gdb_signal_from_target): ... this. Adjust to
1352 default_gdb_signal_from_host naming change. Extend comment.
1353 (gdb_signal_to_host): Rename to ...
1354 (gdb_signal_to_target): ... this. Adjust to
1355 default_gdb_signal_to_host naming change.
1356 * gdbarch.h, gdbarch.c: Renegerate.
1357
a493e3e2
PA
13582012-05-24 Pedro Alves <palves@redhat.com>
1359
1360 PR gdb/7205
1361
1362 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1363
2ea28649
PA
13642012-05-24 Pedro Alves <palves@redhat.com>
1365
1366 PR gdb/7205
1367
1368 Replace target_signal with gdb_signal throughout.
1369
b09846a9
PA
13702012-05-24 Pedro Alves <palves@redhat.com>
1371
1372 PR tui/14159
1373
1374 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1375 string, instead of reusing the va_list argument.
1376
e77c107e
TT
13772012-05-24 Tom Tromey <tromey@redhat.com>
1378
1379 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1380 Remove.
1381
9fccedf7
DE
13822012-05-23 Doug Evans <dje@google.com>
1383
d50bd42b
DE
1384 * symtab.c (search_symbols): Formatting fixes.
1385 (print_symbol_info): Formatting fixes.
1386
9fccedf7
DE
1387 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1388 int64_t change to leb128 API.
1389 (read_encoded_value, decode_frame_entry_1): Ditto.
1390 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1391 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1392 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1393 (execute_stack_op): Ditto.
1394 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1395 (safe_read_uleb128, safe_read_sleb128): Ditto.
1396 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1397 (dwarf2_compile_expr_to_ax): Ditto.
1398 (locexpr_describe_location_piece): Ditto.
1399 (disassemble_dwarf_expression): Ditto.
1400 (locexpr_describe_location_1): Ditto.
1401
f3e0e960
SS
14022012-05-23 Stan Shebs <stan@codesourcery.com>
1403 Kwok Cheung Yeung <kcy@codesourcery.com>
1404
1405 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1406 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1407 (mi-cmd-info.o): New rule.
1408 * osdata.h (info_osdata_command): New declaration.
1409 * osdata.c (info_osdata_command): Change to non-static.
1410 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1411 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1412 * mi/mi-cmd-info.c: New file.
1413
c51fe631
DE
14142012-05-23 Doug Evans <dje@google.com>
1415
71cddcc1
DE
1416 * symtab.c (search_symbols): Pass NULL for file_matcher to
1417 expand_symtabs_matching if there are no files to match.
1418
c51fe631
DE
1419 * gdbtypes.c (lookup_typename): Simplify.
1420
a79378d4
PA
14212012-05-23 Pedro Alves <palves@redhat.com>
1422
1423 * arch-utils.h (default_target_signal_to_host): Delete.
1424 * arch-utils.c (default_target_signal_to_host): Delete.
1425 * gdbarch.sh (target_signal_to_host): Remove.
1426 * gdbarch.h, gdbarch.c: Regenerate.
1427
f664829e
DE
14282012-05-22 Doug Evans <dje@google.com>
1429
1430 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1431 "const gdb_byte *".
1432 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1433 (execute_cfa_program): Update to match API of leb128 functions.
1434 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1435 "const gdb_byte *".
1436 (read_unsigned_leb128, read_signed_leb128): Delete.
1437 (read_initial_length): Change type of buf argument to
1438 "const gdb_byte *".
1439 (read_encoded_value): Update to match API of leb128 functions.
1440 (decode_frame_entry): Change result to "const gdb_byte *", and
1441 similarly for "start" parameter.
1442 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1443 (dwarf2_build_frame_info): Change local frame_ptr to
1444 "const gdb_byte *".
1445 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1446 read_uleb128, read_sleb128. All callers updated.
1447 (safe_skip_leb128): New function.
1448 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1449 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1450 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1451 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1452 read_uleb128, read_sleb128.
1453 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1454 (execute_stack_op): Update to match API of leb128 functions.
1455 * dwarf2expr.h: #include "leb128.h".
1456 (read_uleb128, read_sleb128): Delete.
1457 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1458 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1459 * dwarf2loc.c (debug_loc_kind): New enum.
1460 (decode_debug_loc_addresses): New function.
1461 (decode_debug_loc_dwo_addresses): New function.
1462 (dwarf2_find_location_expression): Rewrite.
1463 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1464 (locexpr_describe_location_piece): Ditto.
1465 (disassemble_dwarf_expression): Ditto.
1466 (locexpr_describe_location_1): Ditto.
1467 (loclist_describe_location): Rewrite.
1468 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1469 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1470 (dwarf2_section_buffer_overflow_complaint): Renamed from
1471 dwarf2_macros_too_long_complaint. All callers updated.
1472 (skip_leb128): Delete.
1473 (init_cu_die_reader): Initialize reader->buffer_end.
1474 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1475 (skip_form_bytes): New arg buffer_end. All callers updated.
1476 Replace call to skip_leb128 with gdb_skip_leb128.
1477 (skip_unknown_opcode): New arg mac_end. All callers updated.
1478 (fill_in_loclist_baton): Initialize baton->from_dwo.
1479
837a1b32
MR
14802012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1481
1482 * mips-linux-nat.c (mips_linux_read_description): Use a more
1483 verbose error message.
1484
d0e64392
MR
14852012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1486
1487 * NEWS: Add MIPS/Linux DSP support.
1488 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1489 (SIGCONTEXT_DSPCTL): New macro.
1490 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1491 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1492 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1493 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1494 (N64_SIGCONTEXT_HI3): Likewise.
1495 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1496 (N64_SIGCONTEXT_LO3): Likewise.
1497 (N64_SIGCONTEXT_DSPCTL): Likewise.
1498 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1499 (mips_linux_o32_sigframe_init): Handle DSP registers.
1500 (mips_linux_n32n64_sigframe_init): Likewise.
1501
8bea7ed1
PM
15022012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1503
1504 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1505 call to abort.
1506
dab06dbe
PA
15072012-05-22 Pedro Alves <palves@redhat.com>
1508
1509 * target.h (store_waitstatus): Move declaration ...
1510 * inf-child.h (store_waitstatus): ... here.
1511 * target.c: Move inclusion of gdb_wait.h, and ...
1512 (store_waitstatus): ... this ...
1513 * inf-child.c: ... here.
1514 * linux-nat.c: Include inf-child.h.
1515 * rs6000-nat.c: Include inf-child.h.
1516 * spu-linux-nat.c: Include inf-child.h.
1517
43011e52
PM
15182012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1519
1520 * tracepoint.c (start_tracing): Add missing i18n markup.
1521 (stop_tracing, set_trace_user): Ditto.
1522 (set_trace_notes, set_trace_stop_notes): Ditto.
1523
b1af9e97
TT
15242012-05-21 Tom Tromey <tromey@redhat.com>
1525
1526 PR c++/7173:
1527 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1528 types.
1529 * value.h (value_cast_pointers): Update.
1530 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1531 (value_cast): Update.
1532 (update_search_result): New function.
1533 (do_search_struct_field): New, from search_struct_field. Check
1534 for ambiguous results.
1535 (search_struct_field): Rewrite.
1536 * infcall.c (value_arg_coerce): Update.
1537 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1538 value_cast_pointers.
1539 * ada-lang.c (ada_convert_actual): Update.
1540
e9e5e6b3
TT
15412012-05-21 Tom Tromey <tromey@redhat.com>
1542
1543 * macroexp.c (macro_stringify): Terminate the string.
1544
1564a261
JK
15452012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
1547 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1548 Describe it.
1549 * auto-load.c (auto_load_expand_dir_vars): New function.
1550 (auto_load_safe_path_vec_update): Use it, remove the
1551 substitute_path_component call thanks to it.
1552 (auto_load_objfile_script): Remove the debug_file_directory processing.
1553 Use auto_load_expand_dir_vars, remove the substitute_path_component
1554 call thanks to it.
1555 * configure: Regenerate.
1556 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1557 path. Escape $ also for $debugdir.
1558 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1559 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1560
a3ec0bb1
DE
15612012-05-20 Doug Evans <dje@google.com>
1562
1563 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1564 before use. Check for symtab->includes == NULL before scanning it.
1565
d467df4e
MR
15662012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1567
1568 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1569
4cc0665f
MR
15702012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1571
1572 * NEWS: Add microMIPS support and "set mips compression",
1573 "show mips compression" commands.
1574 * mips-tdep.h (mips_isa): New enum.
1575 (gdbarch_tdep): Add mips_isa.
1576 (mips_pc_is_mips16): Update prototype.
1577 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1578 * mips-tdep.c (mips_compression_mips16): New variable.
1579 (mips_compression_micromips): Likewise.
1580 (mips_compression_strings): Likewise.
1581 (mips_compression_string): Likewise.
1582 (is_mips16_isa, is_micromips_isa): New functions.
1583 (is_mips16_addr): Rename to...
1584 (is_compact_addr): ... this.
1585 (unmake_mips16_addr): Likewise to...
1586 (unmake_compact_addr): ... this.
1587 (make_mips16_addr): Likewise to...
1588 (make_compact_addr): ... this.
1589 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1590 functions.
1591 (mips_elf_make_msymbol_special): Handle microMIPS code.
1592 (msymbol_is_special): Rename to...
1593 (msymbol_is_mips16): ... this.
1594 (mips_make_symbol_special, mips_pc_is_mips16): Update
1595 accordingly.
1596 (msymbol_is_mips, msymbol_is_micromips): New functions.
1597 (mips16_to_32_reg): Rename to...
1598 (mips_reg3_to_reg): ... this.
1599 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1600 (mips_pc_isa): Likewise.
1601 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1602 code.
1603 (mips_fetch_instruction): Pass return status instead of printing
1604 an error message if requested. Handle microMIPS code. Bail out
1605 on an invalid ISA.
1606 (micromips_op): New macro.
1607 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1608 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1609 (b6s4_op, b7s3_reg): Likewise.
1610 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1611 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1612 (mips_insn_size): New function.
1613 (mips32_next_pc): Update mips_fetch_instruction call.
1614 (micromips_relative_offset7): New function.
1615 (micromips_relative_offset10): Likewise.
1616 (micromips_relative_offset16): Likewise.
1617 (micromips_pc_insn_size): Likewise.
1618 (micromips_bc1_pc): Likewise.
1619 (micromips_next_pc): Likewise.
1620 (unpack_mips16): Update mips_fetch_instruction call.
1621 (extended_mips16_next_pc): Update according to change to
1622 mips16_to_32_reg.
1623 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1624 code.
1625 (mips16_scan_prologue): Update mips_fetch_instruction call.
1626 Update according to change to mips16_to_32_reg.
1627 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1628 (mips_insn16_frame_base_sniffer): Likewise.
1629 (micromips_decode_imm9): New function.
1630 (micromips_scan_prologue): Likewise.
1631 (mips_micro_frame_cache): Likewise.
1632 (mips_micro_frame_this_id): Likewise.
1633 (mips_micro_frame_prev_register): Likewise.
1634 (mips_micro_frame_sniffer): Likewise.
1635 (mips_micro_frame_unwind): New variable.
1636 (mips_micro_frame_base_address): New function.
1637 (mips_micro_frame_base): New variable.
1638 (mips_micro_frame_base_sniffer): New function.
1639 (mips32_scan_prologue): Update mips_fetch_instruction call.
1640 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1641 rather than for MIPS16.
1642 (mips_insn32_frame_base_sniffer): Likewise.
1643 (mips_addr_bits_remove): Handle microMIPS code.
1644 (deal_with_atomic_sequence): Rename to...
1645 (mips_deal_with_atomic_sequence): ... this. Update the type
1646 of the variable used to hold an instruction. Remove the ISA bit
1647 check. Update mips_fetch_instruction call.
1648 (micromips_deal_with_atomic_sequence): New function.
1649 (deal_with_atomic_sequence): Likewise.
1650 (mips_about_to_return): Handle microMIPS code. Update
1651 mips_fetch_instruction call.
1652 (heuristic_proc_start): Check for the standard MIPS ISA rather
1653 than for MIPS16. Update mips_pc_is_mips16 and
1654 mips_fetch_instruction calls. Handle microMIPS code.
1655 (mips_push_dummy_code): Handle microMIPS code.
1656 (mips_eabi_push_dummy_call): Likewise.
1657 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1658 (mips_o64_push_dummy_call): Handle microMIPS code.
1659 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1660 (is_delayed): Remove function.
1661 (mips_single_step_through_delay): Replace the call to is_delayed
1662 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1663 Handle microMIPS code.
1664 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1665 microMIPS code.
1666 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1667 call.
1668 (micromips_in_function_epilogue_p): New function.
1669 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1670 call.
1671 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1672 Handle microMIPS.
1673 (gdb_print_insn_mips): Likewise.
1674 (mips_breakpoint_from_pc): Likewise.
1675 (mips_remote_breakpoint_from_pc): New function.
1676 (mips32_instruction_has_delay_slot): Simplify making use of the
1677 updated mips_fetch_instruction interface.
1678 (micromips_instruction_has_delay_slot): New function.
1679 (mips16_instruction_has_delay_slot): Simplify making use of the
1680 updated mips_fetch_instruction interface.
1681 (mips_adjust_breakpoint_address): Check for the standard MIPS
1682 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1683 calls. Handle microMIPS code.
1684 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1685 (mips_skip_trampoline_code): Handle microMIPS code.
1686 (global_mips_compression): New function.
1687 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1688 file flags. Register the microMIPS remote breakpoint handler
1689 and heuristic frame unwinder.
1690 (show_mips_compression): New function.
1691 (_initialize_mips_tdep): Add the "set mips compression" and
1692 "show mips compression" commands.
1693
22e048c9
SDJ
16942012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1695
1696 * ada-lang.c:
1697 * ada-tasks.c:
1698 * ada-varobj.c:
1699 * amd64-darwin-tdep.c:
1700 * arm-symbian-tdep.c:
1701 * arm-tdep.c:
1702 * avr-tdep.c:
1703 * ax-gdb.c:
1704 * bfin-linux-tdep.c:
1705 * breakpoint.c:
1706 * c-valprint.c:
1707 * cli/cli-cmds.c:
1708 * coffread.c:
1709 * cp-support.c:
1710 * cris-tdep.c:
1711 * dwarf2-frame-tailcall.c:
1712 * dwarf2-frame.c:
1713 * dwarf2expr.c:
1714 * dwarf2loc.c:
1715 * dwarf2read.c:
1716 * elfread.c:
1717 * eval.c:
1718 * expprint.c:
1719 * f-valprint.c:
1720 * frv-tdep.c:
1721 * h8300-tdep.c:
1722 * hppa-hpux-tdep.c:
1723 * hppa-tdep.c:
1724 * hppanbsd-tdep.c:
1725 * i386-nto-tdep.c:
1726 * i386-tdep.c:
1727 * i387-tdep.c:
1728 * ia64-tdep.c:
1729 * jit.c:
1730 * linespec.c:
1731 * linux-tdep.c:
1732 * lm32-tdep.c:
1733 * m2-valprint.c:
1734 * m32c-tdep.c:
1735 * m32r-rom.c:
1736 * m32r-tdep.c:
1737 * m68k-tdep.c:
1738 * m68klinux-tdep.c:
1739 * mi/mi-main.c:
1740 * microblaze-tdep.c:
1741 * mips-linux-tdep.c:
1742 * mips-tdep.c:
1743 * mn10300-tdep.c:
1744 * p-valprint.c:
1745 * parse.c:
1746 * ppc-linux-tdep.c:
1747 * ppc-sysv-tdep.c:
1748 * printcmd.c:
1749 * python/py-finishbreakpoint.c:
1750 * python/py-inferior.c:
1751 * python/py-infthread.c:
1752 * python/py-type.c:
1753 * python/python.c:
1754 * remote-fileio.c:
1755 * remote-m32r-sdi.c:
1756 * remote-mips.c:
1757 * reverse.c:
1758 * rl78-tdep.c:
1759 * rs6000-aix-tdep.c:
1760 * rs6000-tdep.c:
1761 * s390-tdep.c:
1762 * score-tdep.c:
1763 * sh64-tdep.c:
1764 * skip.c:
1765 * solib-darwin.c:
1766 * solib-dsbt.c:
1767 * solib-frv.c:
1768 * sparc-tdep.c:
1769 * spu-multiarch.c:
1770 * spu-tdep.c:
1771 * stack.c:
1772 * symfile.c:
1773 * symtab.c:
1774 * tic6x-tdep.c:
1775 * tracepoint.c:
1776 * v850-tdep.c:
1777 * valarith.c:
1778 * valprint.c:
1779 * value.c:
1780 * xcoffread.c:
1781 * xtensa-tdep.c:
1782 * ada-lang.c:
1783 * ada-tasks.c:
1784 * ada-varobj.c:
1785 * amd64-darwin-tdep.c:
1786 * arm-symbian-tdep.c:
1787 * arm-tdep.c: Delete unused variables.
1788
aff139ff
JK
17892012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1790
1791 Rename $ddir to $datadir.
1792 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1793 * auto-load.c (auto_load_safe_path_vec_update)
1794 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1795 * configure: Regenerate.
1796 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1797 Likewise. Remove the 'use $ddir' help string.
1798
f7bfa992
JK
17992012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1800
1801 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1802 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1803
9cb709b6
TT
18042012-05-18 Tom Tromey <tromey@redhat.com>
1805
1806 PR exp/13907:
1807 * valprint.h (struct value_print_options) <symbol_print>: New
1808 field.
1809 * valprint.c (user_print_options): Add default for symbol_print.
1810 (show_symbol_print): New function.
1811 (generic_val_print): Respect symbol_print.
1812 (_initialize_valprint): Add "print symbol" setting.
1813 * f-valprint.c (f_val_print): Respect symbol_print.
1814 * c-valprint.c (c_val_print): Respect symbol_print.
1815 * NEWS: Update.
1816 * printcmd.c (print_address_symbolic): Return int. Ignore some
1817 zero-size symbols.
1818 (print_address_demangle): Return int.
1819 * defs.h: (print_address_symbolic): Return int.
1820 * value.h (print_address_demangle): Return int.
1821
b012acdd
TT
18222012-05-18 Tom Tromey <tromey@redhat.com>
1823
1824 * valprint.c (val_print_string): Don't print leading space.
1825 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1826 print space before string or vtbl.
1827 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1828 before string.
1829 * jv-valprint.c (java_value_print): Print space before string.
1830 * go-valprint.c (print_go_string): Print space before string.
1831 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1832 space before string.
1833 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1834 space before string or vtbl.
1835 * auxv.c (fprint_target_auxv): Print space after address.
1836
1d51a733
TT
18372012-05-18 Tom Tromey <tromey@redhat.com>
1838
1839 * printcmd.c (print_address_demangle): Remove special case for 0.
1840
edf0c1b7
TT
18412012-05-18 Tom Tromey <tromey@redhat.com>
1842
1843 * printcmd.c (print_address_demangle): Add 'opts' argument.
1844 * p-valprint.c (pascal_val_print): Update.
1845 * jv-valprint.c (java_val_print): Update.
1846 * value.h: Update.
1847 * valprint.c (generic_val_print): Update.
1848 (print_function_pointer_address): Add 'options' argument. Remove
1849 'addressprint' argument. Update.
1850 * m2-valprint.c (print_unpacked_pointer): Update.
1851 * gnu-v3-abi.c (print_one_vtable): Update.
1852 (gnuv3_print_method_ptr): Update.
1853 * f-valprint.c (f_val_print): Update.
1854 * cp-valprint.c (cp_print_value_fields): Update.
1855 * valprint.h (print_function_pointer_address): Update.
1856 * c-valprint.c (c_val_print): Update.
1857
9703b513
TT
18582012-05-18 Tom Tromey <tromey@redhat.com>
1859
1860 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1861 directly corresponding to the found psymtab.
1862 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1863 (dw2_find_pc_sect_symtab): Use it.
1864 * block.h (blockvector_contains_pc): Declare.
1865 * block.c (find_block_in_blockvector): New function.
1866 (blockvector_for_pc_sect): Use it.
1867 (blockvector_contains_pc): New function.
1868
5a439849
MR
18692012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1870
1871 * mips-tdep.h (mips_write_pc): New prototype.
1872 * mips-tdep.c (mips_write_pc): Make external, add description.
1873 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1874 add description.
1875
8376de04
MR
18762012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1877
1878 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1879 mips_regnum->pc.
1880 (mips_unwind_pc, mips_write_pc): Likewise.
1881 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1882 gdbarch_read_pc.
1883
d3581e61
JB
18842012-05-17 Joel Brobecker <brobecker@adacore.com>
1885
1886 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1887 proc_warn, proc_error, proc_get_status, proc_flags,
1888 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1889 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1890 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1891 proc_stop_process, proc_wait_for_stop, proc_run_process,
1892 proc_set_traced_signals, proc_set_traced_faults,
1893 proc_set_traced_sysentry, proc_set_traced_sysexit,
1894 proc_set_held_signals, proc_get_held_signals,
1895 proc_get_traced_signals, proc_get_traced_faults,
1896 proc_get_traced_sysentry, proc_get_traced_sysexit,
1897 proc_clear_current_fault, proc_set_current_signal,
1898 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1899 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1900 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1901 proc_get_current_thread, proc_get_current_thread,
1902 proc_get_current_thread, proc_update_threads,
1903 proc_update_threads, proc_update_threads, proc_update_threads,
1904 proc_iterate_over_threads, procfs_find_new_threads,
1905 procfs_pid_to_str): Make static. Remove advance declaration.
1906 (proc_cursig): Make static. Conditionalized defintion on
1907 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1908 (proc_syscall, proc_set_kill_on_last_close,
1909 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1910 proc_get_pending_signals, proc_get_signal_actions,
1911 proc_trace_signal, proc_ignore_signal): Delete.
1912
81b9b86e
SDJ
19132012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1914
1915 * coffread.c (cs_section_address): Passing proper argument for
1916 `bfd_get_section_vma'.
1917 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1918 `bfd_get_section_flags'.
1919 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1920 `bfd_get_section_vma'.
1921
abc9d0dc
TT
19222012-05-16 Tom Tromey <tromey@redhat.com>
1923
1924 PR macros/13205:
1925 * macrotab.h: (macro_define_special): Declare.
1926 (enum macro_special_kind): New.
1927 (struct macro_definition) <argc, replacement>: Update comments.
1928 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1929 (macro_define_object_internal): New function.
1930 (macro_define_object): Use it.
1931 (macro_define_special): New function.
1932 (fixup_definition): New function.
1933 (macro_lookup_definition, foreach_macro_in_scope)
1934 (foreach_macro): Use fixup_definition.
1935 * macroexp.h (macro_stringify): Declare.
1936 * macroexp.c (free_buffer_return_text): New function.
1937 (stringify): Constify "arg".
1938 (macro_stringify): New function.
1939 * dwarf2read.c (macro_start_file): Call macro_define_special.
1940
6a3a010b
MR
19412012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1942 Maciej W. Rozycki <macro@mips.com>
1943
1944 * breakpoint.h (bp_location): Add related_address member.
1945 * inferior.h (get_return_value): Take a pointer to struct value
1946 instead of struct type for the function requested.
1947 * value.h (using_struct_return): Likewise.
1948 * gdbarch.sh (return_value): Take a pointer to struct value
1949 instead of struct type for the function requested.
1950 * breakpoint.c (set_breakpoint_location_function): Initialize
1951 related_address for bp_gnu_ifunc_resolver breakpoints.
1952 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1953 requested function's address to gdbarch_return_value.
1954 * eval.c (evaluate_subexp_standard): Pass the requested
1955 function's address to using_struct_return.
1956 * infcall.c (call_function_by_hand): Pass the requested
1957 function's address to using_struct_return and
1958 gdbarch_return_value.
1959 * infcmd.c (get_return_value): Take a pointer to struct value
1960 instead of struct type for the function requested.
1961 (print_return_value): Update accordingly.
1962 (finish_command_continuation): Likewise.
1963 * stack.c (return_command): Pass the requested function's
1964 address to using_struct_return and gdbarch_return_value.
1965 * value.c (using_struct_return): Take a pointer to struct value
1966 instead of struct type for the function requested. Pass the
1967 requested function's address to gdbarch_return_value.
1968 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1969 New function_value member, replacing function_type.
1970 (bpfinishpy_dealloc): Update accordingly.
1971 (bpfinishpy_pre_stop_hook): Likewise.
1972 (bpfinishpy_init): Likewise. Record the requested function's
1973 address.
1974 * mips-tdep.c (mips_fval_reg): New enum.
1975 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1976 words put in GP registers.
1977 (mips_o64_push_dummy_call): Update a comment.
1978 (mips_o32_return_value): Take a pointer to struct value instead
1979 of struct type for the function requested and use it to check if
1980 using the MIPS16 calling convention. Return the designated
1981 general purpose registers for floating-point values returned in
1982 MIPS16 mode.
1983 (mips_o64_return_value): Likewise.
1984 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1985 (ppc_sysv_abi_broken_return_value): Likewise.
1986 (ppc64_sysv_abi_return_value): Likewise.
1987 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1988 value instead of struct type for the function requested.
1989 * amd64-tdep.c (amd64_return_value): Likewise.
1990 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1991 * arm-tdep.c (arm_return_value): Likewise.
1992 * avr-tdep.c (avr_return_value): Likewise.
1993 * bfin-tdep.c (bfin_return_value): Likewise.
1994 * cris-tdep.c (cris_return_value): Likewise.
1995 * frv-tdep.c (frv_return_value): Likewise.
1996 * h8300-tdep.c (h8300_return_value): Likewise.
1997 (h8300h_return_value): Likewise.
1998 * hppa-tdep.c (hppa32_return_value): Likewise.
1999 (hppa64_return_value): Likewise.
2000 * i386-tdep.c (i386_return_value): Likewise.
2001 * ia64-tdep.c (ia64_return_value): Likewise.
2002 * iq2000-tdep.c (iq2000_return_value): Likewise.
2003 * lm32-tdep.c (lm32_return_value): Likewise.
2004 * m32c-tdep.c (m32c_return_value): Likewise.
2005 * m32r-tdep.c (m32r_return_value): Likewise.
2006 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
2007 * m68k-tdep.c (m68k_return_value): Likewise.
2008 (m68k_svr4_return_value): Likewise.
2009 * m88k-tdep.c (m88k_return_value): Likewise.
2010 * mep-tdep.c (mep_return_value): Likewise.
2011 * microblaze-tdep.c (microblaze_return_value): Likewise.
2012 * mn10300-tdep.c (mn10300_return_value): Likewise.
2013 * moxie-tdep.c (moxie_return_value): Likewise.
2014 * mt-tdep.c (mt_return_value): Likewise.
2015 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
2016 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
2017 (ppc_sysv_abi_broken_return_value): Likewise.
2018 (ppc64_sysv_abi_return_value): Likewise.
2019 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
2020 * rl78-tdep.c (rl78_return_value): Likewise.
2021 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
2022 * rx-tdep.c (rx_return_value): Likewise.
2023 * s390-tdep.c (s390_return_value): Likewise.
2024 * score-tdep.c (score_return_value): Likewise.
2025 * sh-tdep.c (sh_return_value_nofpu): Likewise.
2026 (sh_return_value_fpu): Likewise.
2027 * sh64-tdep.c (sh64_return_value): Likewise.
2028 * sparc-tdep.c (sparc32_return_value): Likewise.
2029 * sparc64-tdep.c (sparc64_return_value): Likewise.
2030 * spu-tdep.c (spu_return_value): Likewise.
2031 * tic6x-tdep.c (tic6x_return_value): Likewise.
2032 * v850-tdep.c (v850_return_value): Likewise.
2033 * vax-tdep.c (vax_return_value): Likewise.
2034 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
2035 * xtensa-tdep.c (xtensa_return_value): Likewise.
2036 * gdbarch.c: Regenerate.
2037 * gdbarch.h: Regenerate.
2038
29ca12b3
TT
20392012-05-15 Tom Tromey <tromey@redhat.com>
2040
2041 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
2042
588ae58c
JB
20432012-05-15 Joel Brobecker <brobecker@adacore.com>
2044
2045 * breakpoint.c (init_breakpoint_sal): Add quotes around part
2046 of command in two error message.
2047
855a6e68
JB
20482012-05-15 Joel Brobecker <brobecker@adacore.com>
2049
2050 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
2051
d634f2de
JB
20522012-05-15 Joel Brobecker <brobecker@adacore.com>
2053
2054 * breakpoint.c (find_condition_and_thread): Minor reformatting.
2055
9cc815f5
JK
20562012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2057
2058 * NEWS (show auto-load scripts-directory): Add forgotten command.
2059
6a609e58
JK
20602012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2061
2062 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
2063 parameters.
2064
ac1438b5
L
20652012-05-14 H.J. Lu <hongjiu.lu@intel.com>
2066
2067 * amd64-tdep.c: Include features/i386/x32.c and
2068 features/i386/x32-avx.c.
2069 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
2070 initialize_tdesc_x32_avx.
2071
e7e0cddf
SS
20722012-05-14 Stan Shebs <stan@codesourcery.com>
2073
2074 Add dynamic printf.
2075 * breakpoint.h (enum bptype): New type bp_dprintf.
2076 (struct breakpoint): New field extra_string.
2077 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
2078 (create_breakpoint): Add extra_string arg.
2079 * breakpoint.c (dprintf_breakpoint_ops): New.
2080 (is_breakpoint): Add bp_dprintf.
2081 (bpstat_what): Add dprintf case.
2082 (bptype_string): Ditto.
2083 (print_one_breakpoint_location): Ditto.
2084 (init_bp_location): Ditto.
2085 (bkpt_print_mention): Ditto.
2086 (dprintf_style_enums): New array.
2087 (dprintf_style): New global.
2088 (dprintf_function): New global.
2089 (dprintf_channel): New global.
2090 (update_dprintf_command_list): New function.
2091 (update_dprintf_commands): New function.
2092 (init_breakpoint_sal): Add extra_string argument, handle it.
2093 (create_breakpoint_sal): Add extra_string argument.
2094 (create_breakpoints_sal): Add extra_string argument, update callers.
2095 (find_condition_and_thread): Add extra argument.
2096 (create_breakpoint): Add extra_string argument, record it.
2097 (dprintf_command): New function.
2098 (break_command_1): Add arg to create_breakpoint call.
2099 (handle_gnu_v3_exceptions): Ditto.
2100 (trace_command): Ditto.
2101 (ftrace_command): Ditto.
2102 (strace_command): Ditto.
2103 (bkpt_print_mention): Add dprintf case.
2104 (create_breakpoint_sal_default): Add extra_string argument.
2105 (_initialize_breakpoint): Add new commands.
2106 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
2107 * python/py-breakpoint.c (bppy_init): Ditto.
2108 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2109
8ae38c14
MR
21102012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
2111
2112 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
2113
9f676e66
SCR
21142012-05-14 Siva Chandra Reddy <sivachandra@google.com>
2115
2116 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
2117 unsigned long long.
2118
7efc75aa
SCR
21192012-05-13 Siva Chandra Reddy <sivachandra@google.com>
2120
2121 Add a new function gdb.find_pc_line to the Python API.
2122 * NEWS (Python Scripting): Add entry about the new function.
2123 * python/python.c (gdbpy_find_pc_line): New function which
2124 implements gdb.find_pc_line.
2125 (GdbMethods): Add entry for the new function.
2126
70af3797
PA
21272012-05-12 Pedro Alves <palves@redhat.com>
2128
2129 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
2130 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
2131
06da564e
EZ
21322012-05-12 Eli Zaretskii <eliz@gnu.org>
2133
2134 * inferior.c: Include completer.h
2135 (initialize_inferiors): Set completer of add-inferior to
2136 filename_completer.
2137
0288cee2
L
21382012-05-11 H.J. Lu <hongjiu.lu@intel.com>
2139
2140 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2141 gdbarch_ptr_bit for x32 core dump.
2142
f6537a2c
L
21432012-05-11 H.J. Lu <hongjiu.lu@intel.com>
2144
2145 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
2146 and features/i386/x32-avx-linux.c.
2147
85d4a676
SS
21482012-05-11 Stan Shebs <stan@codesourcery.com>
2149 Kwok Cheung Yeung <kcy@codesourcery.com>
2150
2151 * NEWS: Describe new info os commands.
2152 * common/linux-osdata.c (PID_T, TIME_T): Define.
2153 (MAX_PID_T_STRLEN): New.
2154 (linux_common_core_of_thread): Add comment. Change to use PID_T and
2155 MAX_PID_T_STRLEN.
2156 (command_from_pid): Add comment. Change to use PID_T.
2157 (commandline_from_pid): Change to use PID_T.
2158 (user_from_pid): Add comment.
2159 (get_process_owner): Add comment. Change to use PID_T and
2160 MAX_PID_T_STRLEN.
2161 (get_number_of_cpu_cores): Add comment.
2162 (get_cores_used_by_process): Add comment. Change to use PID_T and
2163 MAX_PID_T_STRLEN.
2164 (linux_xfer_osdata_processes): Change to use PID_T and
2165 MAX_PID_T_STRLEN.
2166 (compare_processes): New function.
2167 (linux_xfer_osdata_processgroups): New function.
2168 (linux_xfer_osdata_threads): Change to use PID_T.
2169 (linux_xfer_osdata_fds): New function.
2170 (format_socket_state, print_sockets): New functions.
2171 (union socket_addr): New union.
2172 (linux_xfer_osdata_isockets): New function.
2173 (time_from_time_t, group_from_gid): New functions.
2174 (linux_xfer_osdata_shm): New function.
2175 (linux_xfer_osdata_sem): New function.
2176 (linux_xfer_osdata_msg): New function.
2177 (linux_xfer_osdata_modules): New function.
2178 (osdata_table): Add new entries.
2179 * common/buffer.c (buffer_xml_printf): Add support for long and
2180 long long format specifiers.
2181
f24afd6d
L
21822012-05-11 H.J. Lu <hongjiu.lu@intel.com>
2183
2184 * amd64-linux-tdep.h (tdesc_x32_linux): New.
2185 (tdesc_x32_avx_linux): Likewise.
2186
7349ff92
JK
21872012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2188
2189 Implement multi-component --with-auto-load-dir.
2190 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
2191 entries.
2192 (--with-auto-load-safe-path): Update the default value description.
2193 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
2194 New.
2195 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
2196 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
2197 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
2198 (_initialize_auto_load): Initialize also auto_load_dir. Install new
2199 "set auto-load scripts-directory".
2200 * config.in: Regenerate.
2201 * configure: Regenerate.
2202 * configure.ac (--with-auto-load-dir): New configure option.
2203 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
2204
6dea1fbd
JK
22052012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2206
2207 Provide $ddir substitution for --with-auto-load-safe-path.
2208 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
2209 entries.
2210 * auto-load.c: Include observer.h.
2211 (auto_load_safe_path_vec_update): Call substitute_path_component for
2212 each component. New variable ddir_subst.
2213 (auto_load_gdb_datadir_changed): New function.
2214 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2215 AUTO_LOAD_SAFE_PATH. New comment.
2216 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2217 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
2218 * config.in: Regenerate.
2219 * configure: Regenerate.
2220 * configure.ac (--auto-load-safe-path): Rename
2221 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
2222 GDB_DATADIR/auto-load.
2223 * defs.h (substitute_path_component): New declaration.
2224 * top.c: Include observer.h.
2225 (set_gdb_datadir): New function.
2226 (init_main): Install it for "set data-directory".
2227 * utils.c (substitute_path_component): New function.
2228
b09aca3a
JK
22292012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2230
2231 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
2232 * auto-load.c (auto_load_objfile_script): Remove check for NULL
2233 DEBUG_FILE_DIRECTORY. Handle multiple components of
2234 DEBUG_FILE_DIRECTORY.
2235
95554aad
TT
22362012-05-10 Tom Tromey <tromey@redhat.com>
2237
2238 * dwarf2read.c (recursively_write_psymbols): New function.
2239 (write_psymtabs_to_index): Use it.
2240
2241 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
2242 field.
2243 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
2244 (load_partial_comp_unit): Update.
2245 (queue_comp_unit): Add argument 'pretend_language'.
2246 (process_queue): Update.
2247 (psymtab_to_symtab_1): Skip dependencies that have a user.
2248 (load_partial_comp_unit_reader): Give meaning to the 'data'
2249 argument.
2250 (load_full_comp_unit): Add 'pretend_language' argument.
2251 (process_full_comp_unit): Add 'pretend_language' argument. Set
2252 language on CU.
2253 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
2254 Update.
2255 (maybe_queue_comp_unit): Add 'pretend_language' argument.
2256 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
2257 Update.
2258 (prepare_one_comp_unit): Add 'pretend_language' argument.
2259
2260 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
2261 (struct dwarf2_per_objfile) <just_read_cus>: New field.
2262 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
2263 (dw2_do_instantiate_symtab): Check whether symtab was read in
2264 before queueing.
2265 (dw2_instantiate_symtab): Add assertion. Call
2266 process_cu_includes.
2267 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
2268 (partial_symtab_p): New typedef.
2269 (set_partial_user): New function.
2270 (dwarf2_build_psymtabs_hard): Use set_partial_user.
2271 (scan_partial_symbols): Add imported CU to imported_symtabs.
2272 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
2273 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
2274 (get_symtab, recursively_compute_inclusions)
2275 (compute_symtab_includes, process_cu_includes)
2276 (process_imported_unit_die): New functions.
2277 (process_die) <DW_TAG_imported_unit>: New case.
2278 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
2279
2280 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
2281 comment.
2282 (struct partial_die_info) <locdesc>: Remove.
2283 <d>: New field.
2284 (process_psymtab_comp_unit): Add 'read_partial' argument.
2285 Update.
2286 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
2287 (scan_partial_symbols): Handle DW_TAG_imported_unit.
2288 (add_partial_symbol): Update.
2289 (process_die): Handle DW_TAG_partial_unit.
2290 (read_file_scope): Update comment.
2291 (load_partial_dies): Handle DW_TAG_imported_unit.
2292 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
2293 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
2294
e871fbb9
TT
22952012-05-10 Tom Tromey <tromey@redhat.com>
2296
2297 * cc-with-dwz.sh: New file.
2298
b5b04b5b
TT
22992012-05-10 Tom Tromey <tromey@redhat.com>
2300
2301 * symtab.h (struct symtab) <includes, user>: New fields.
2302 * block.h (struct block_iterator) <d, idx, which>: New fields.
2303 * block.c (initialize_block_iterator, find_iterator_symtab)
2304 (block_iterator_step, block_iter_name_step)
2305 (block_iter_match_step): New functions.
2306 (block_iterator_first, block_iterator_next)
2307 (block_iter_name_first, block_iter_name_next)
2308 (block_iter_match_first, block_iter_match_next): Rewrite.
2309 (get_block_symtab): New function.
2310
84a146c9
TT
23112012-05-10 Tom Tromey <tromey@redhat.com>
2312
2313 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
2314 set_block_symtab.
2315 * jit.c (finalize_symtab): Use allocate_global_block,
2316 set_block_symtab.
2317 * buildsym.c (finish_block_internal): New function, from old
2318 finish_block.
2319 (finish_block): Rewrite.
2320 (end_symtab): Use finish_block_internal, set_block_symtab.
2321 * block.h (struct global_block): New.
2322 (allocate_global_block, set_block_symtab): Declare.
2323 * block.c (allocate_global_block, set_block_symtab): New
2324 functions.
2325
9439a077
TT
23262012-05-10 Tom Tromey <tromey@redhat.com>
2327
2328 * psymtab.c (partial_map_expand_apply): Add assertion.
2329 (partial_map_symtabs_matching_filename): Skip included psymtabs.
2330 (psymtab_to_symtab): Find unshared psymtab.
2331 (dump_psymtab): Print including psymtabs.
2332 (recursively_search_psymtabs): New function.
2333 (expand_symtabs_matching_via_partial): Use it.
2334 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2335 fields.
2336 (enum psymtab_search_status): New.
2337
8157b174
TT
23382012-05-10 Tom Tromey <tromey@redhat.com>
2339
2340 * tracepoint.c (scope_info): Update.
2341 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2342 (find_pc_sect_symtab, search_symbols)
2343 (default_make_symbol_completion_list_break_on)
2344 (make_file_symbol_completion_list): Update.
2345 * symmisc.c (dump_symtab_1): Update.
2346 * stack.c (print_frame_args, iterate_over_block_locals)
2347 (print_frame_labels, iterate_over_block_arg_vars): Update.
2348 * python/py-block.c (block_object) <dict>: Remove.
2349 <block>: New field.
2350 <iter>: Change type.
2351 (blpy_iter): Update.
2352 (blpy_block_syms_iternext): Update.
2353 * psymtab.c (map_block): Use block iterators.
2354 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2355 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2356 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2357 * infrun.c (check_exception_resume): Update.
2358 * cp-support.c (make_symbol_overload_list_block): Update.
2359 * coffread.c (patch_opaque_types): Update.
2360 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2361 * block.h (struct block_iterator): New.
2362 (block_iterator_first, block_iterator_next, block_iter_name_first)
2363 (block_iter_name_next, block_iter_match_first)
2364 (block_iter_match_next): Declare.
2365 (ALL_BLOCK_SYMBOLS): Redefine.
2366 * block.c (block_iterator_first, block_iterator_next)
2367 (block_iter_name_first, block_iter_name_next)
2368 (block_iter_match_first, block_iter_match_next): New functions.
2369 * ada-lang.c (ada_add_block_symbols)
2370 (ada_make_symbol_completion_list): Use block iterator.
2371
a2ca7a52
TT
23722012-05-10 Tom Tromey <tromey@redhat.com>
2373
2374 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2375 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2376 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2377 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2378 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2379 Update.
2380
64ea88dc
JB
23812012-05-10 Joel Brobecker <brobecker@adacore.com>
2382
2383 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2384 print-file-var-lib2.c, print-file-var-main.c and
2385 print-file-var.exp (located in gdb/testsuite/gdb.base).
2386
99a547d6
JB
23872012-05-10 Joel Brobecker <brobecker@adacore.com>
2388
2389 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2390 try locating the symbol in the symbol's own objfile first, before
2391 extending the search to all objfiles.
2392 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2393 out of lookup_symbol_aux_symtabs.
2394 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2395 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2396 Do not search EXCLUDE_OBJFILE.
2397 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2398 (lookup_symbol_global): Search for matches in the block's objfile
2399 first, before searching all other objfiles.
2400
0ece64fd
TG
24012012-05-10 Tristan Gingold <gingold@adacore.com>
2402
2403 * printcmd.c (set_command): Add pre/post inc/dec.
2404
3d16a105
FCE
24052012-05-09 Frank Ch. Eigler <fche@redhat.com>
2406
2407 * gdb.1: Document -ex option.
2408
2efbc0f7
JB
24092012-05-09 Joel Brobecker <brobecker@adacore.com>
2410
2411 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2412 * inferior.h (AT_SYMBOL): Delete.
2413
2c76a0c7
JB
24142012-05-09 Joel Brobecker <brobecker@adacore.com>
2415
2416 * mips-tdep.c (mips_push_dummy_code): New function.
2417 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2418 ON_STACK and install mips_push_dummy_code as our gdbarch
2419 push_dummy_code routine.
2420
9401a810
PA
24212012-05-09 Pedro Alves <palves@redhat.com>
2422
2423 * target.c (set_maintenance_target_async_permitted): Rename to ...
2424 (set_target_async_command): ... this.
2425 (show_maintenance_target_async_permitted): Rename to ...
2426 (show_target_async_command): ... this.
2427 (initialize_targets): Adjust.
2428
3929b321
DE
24292012-05-08 Doug Evans <dje@google.com>
2430
2431 * go-exp.y (classify_name): Add missing assignment of fields of
2432 yylval.ssym.
2433
c41535fd
EZ
24342012-05-08 Eli Zaretskii <eliz@gnu.org>
2435
2436 Display the ">" prompt in interactive mode while reading canned
2437 commands, even when the current interpreter is MI.
2438
2439 * interps.c (interp_set_temp): New function.
2440
2441 * interps.h (interp_set_temp): Add prototype.
2442
2443 * cli/cli-script.c (restore_interp): New cleanup function.
2444 (read_command_lines): Temporarily override the current interpreter
2445 with CLI and arrange for restoring the original one.
2446
c0749c4d
JS
24472012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2448
2449 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2450
d7333987
SDJ
24512012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2452
2453 * probe.c (parse_probes): Move conditional to check for
2454 debuginfo files from here...
2455 * stap-probe.c (stap_get_probes): ... to here.
2456
649e6d92
MK
24572012-05-07 Mark Kettenis <kettenis@gnu.org>
2458 H.J. Lu <hongjiu.lu@intel.com>
2459
2460 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2461 `movl %esp, %ebp' for the X32 ABI.
2462
f39c6ffd
TT
24632012-05-07 Tom Tromey <tromey@redhat.com>
2464
2465 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2466 get_DW_TAG_name.
2467 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2468 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2469 (dwarf_stack_op_name): Remove.
2470 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2471 (decode_locdesc): Use get_DW_OP_name.
2472 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2473 (dwarf2_compile_expr_to_ax): Likewise.
2474 (disassemble_dwarf_expression): Likewise.
2475 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2476
1e1f6591
CLT
24772012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2478
2479 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2480 (sh_linux_sigtramp_cache): New function.
2481 (sh_linux_sigreturn_init): New function.
2482 (sh_linux_rt_sigreturn_init): New function.
2483 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2484 patterns.
2485 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2486 syscall codes.
2487 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2488 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2489 (sh_linux_init_abi): Add init calls to register new tramp_frame
2490 definitions under 32-bit SH, update comments.
2491
545c08b4
PA
24922012-05-07 Pedro Alves <palves@redhat.com>
2493
daac165e
PA
2494 PR gdb/10952
2495
545c08b4
PA
2496 * amd64-linux-tdep.c: Include glibc-tdep.h.
2497 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2498 gdbarch_skip_solib_resolver callback.
2499
af2c1515
JK
25002012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2501
2502 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2503 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2504 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2505 (add_auto_load_safe_path): Change the error message.
2506 (_initialize_auto_load): Change the "safe-path" help text.
2507 * configure: Regenerate
2508 * configure.ac (--without-auto-load-safe-path): Set
2509 WITH_AUTO_LOAD_SAFE_PATH to /.
2510
1067f998
SDJ
25112012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2512
2513 * stap-probe.h: Do not include unecessary `probe.h'.
2514
45dfa85a
AM
25152012-05-05 Alan Modra <amodra@gmail.com>
2516
2517 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2518 bfd_und_section_ptr.
2519 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2520 and bfd_com_section_ptr.
2521
cf093994
JB
25222012-05-04 Joel Brobecker <brobecker@adacore.com>
2523
762ebb75 2524 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 2525
d40dc7a8
JB
25262012-05-04 Joel Brobecker <brobecker@adacore.com>
2527
2528 * windows-nat.h (segment_register_p_ftype): New typedef.
2529 (windows_set_segment_register_p): Add declaration.
2530 * windows-nat.c (segment_register_p): New static global.
2531 (windows_set_segment_register_p): New function.
2532 (do_windows_fetch_inferior_registers): Add special handling
2533 for segment registers.
2534 * amd64-windows-nat.c: #include "amd64-tdep.h".
2535 (amd64_windows_segment_register_p): New function.
2536 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2537 * i386-windows-nat.c: #include "i386-tdep.h".
2538 (i386_windows_segment_register_p): New function.
2539 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2540
52b3699b
TG
25412012-05-04 Tristan Gingold <gingold@adacore.com>
2542
2543 * printcmd.c (set_command): Emit a warning if the expression is not
2544 an assignment.
2545
94c74239
JB
25462012-05-03 Joel Brobecker <brobecker@adacore.com>
2547
2548 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2549 Make static.
2550
fcf57f19
SDJ
25512012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2552
2553 * stap-probe.c (stap_is_operator): Change declaration.
2554 (stap_get_opcode): Change return value.
2555 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2556 `stap_parse_argument_1'.
2557
27d2932e
PA
25582012-05-03 Pedro Alves <pedro@codesourcery.com>
2559
2560 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2561 debug log.
2562
a20ee7a4
SCR
25632012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2564
2565 Add two new methods global_block and static_block to gdb.Symtab
2566 objects.
2567 * NEWS (Python scripting): Add entry about the new methods.
2568 * python/py-symtab.c (stpy_global_block): New function which
2569 implements the gdb.Symtab.global_block() method.
2570 (stpy_static_block): New function which implements the
2571 gdb.Symtab.static_block() method.
2572 (symtab_object_methods): Add entries for the two new methods.
2573
943cb756
DE
25742012-05-03 Doug Evans <dje@google.com>
2575
2576 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2577 files.
2578
f4644a3f
YQ
25792012-05-03 Yao Qi <yao@codesourcery.com>
2580
2581 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2582 space.
2583 (i386_process_record): Ditto.
2584
ef61f180
JB
25852012-05-02 Joel Brobecker <brobecker@adacore.com>
2586
2587 * infcall.c (unwind_on_signal_p): Make static.
2588
02f1df11
JB
25892012-05-02 Joel Brobecker <brobecker@adacore.com>
2590
2591 * sol-thread.c (solaris_pid_to_str): Make static.
2592 (_initialize_sol_thread): Add prototype.
2593
39023530
JB
25942012-05-02 Joel Brobecker <brobecker@adacore.com>
2595
2596 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2597
c6b0c501
CF
25982012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2599
2600 * MAINTAINERS: Remove myself.
2601
1ef71717
JK
26022012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2603
2604 Fix --without-auto-load-safe-path for MS-Windows host platform.
2605 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2606
b31b86a7
EZ
26072012-05-02 Eli Zaretskii <eliz@gnu.org>
2608
2609 * gdb_curses.h: Undefine KEY_EVENT before including curses
2610 headers. Move "#undef MOUSE_MOVED" before any curses header
2611 inclusion.
2612
777532fc
SDJ
26132012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2614
2615 * features/i386/i386-mmx-linux.c: Regenerate.
2616 * features/rs6000/powerpc-32.c: Likewise.
2617 * features/rs6000/powerpc-32l.c: Likewise.
2618 * features/rs6000/powerpc-403.c: Likewise.
2619 * features/rs6000/powerpc-403gc.c: Likewise.
2620 * features/rs6000/powerpc-405.c: Likewise.
2621 * features/rs6000/powerpc-505.c: Likewise.
2622 * features/rs6000/powerpc-601.c: Likewise.
2623 * features/rs6000/powerpc-602.c: Likewise.
2624 * features/rs6000/powerpc-603.c: Likewise.
2625 * features/rs6000/powerpc-604.c: Likewise.
2626 * features/rs6000/powerpc-64.c: Likewise.
2627 * features/rs6000/powerpc-64l.c: Likewise.
2628 * features/rs6000/powerpc-750.c: Likewise.
2629 * features/rs6000/powerpc-860.c: Likewise.
2630 * features/rs6000/powerpc-e500.c: Likewise.
2631 * features/rs6000/powerpc-e500l.c: Likewise.
2632 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2633 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2634 * features/rs6000/rs6000.c: Likewise.
2635
d71871bc
SDJ
26362012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2637
2638 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2639 variable.
2640 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2641 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2642 (stap_parse_argument) <e>: Likewise.
2643 (handle_stap_probe) <byte_order>: Likewise.
2644
fd820528
DE
26452012-04-30 Doug Evans <dje@google.com>
2646
2647 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2648 init_and_read_dies_worker. All callers updated.
2649 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2650 replaced with init_cutu_and_read_dies.
2651 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2652 (find_partial_die): Remove FIXME. Don't free current CU.
2653
ec3f619d 26542012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
2655
2656 * contrib: New directory.
2657 * contrib/test_pubnames_and_indexes.py: New file.
2658
fceca515
DE
26592012-04-30 Doug Evans <dje@google.com>
2660
2661 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2662 All callers updated.
2663 (init_cu_die_reader): Verify the section is non-empty.
2664 (dwarf_decode_line_header): Don't dereference section->asection
2665 until we know the section is present.
2666
311fe7e1
SDJ
26672012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2668
2669 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2670 probes.
2671
5977971a
YQ
26722012-04-29 Yao Qi <yao@codesourcery.com>
2673
2674 * gdb-code-style.el: New hook gdb-markup-hook
2675 and gdb-comment-hook.
2676
dee91e82
DE
26772012-04-28 Doug Evans <dje@google.com>
2678
3019eac3
DE
2679 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2680 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2681 objfile->obfd.
2682 * symfile.h (dwarf2_debug_sections): New member addr.
2683 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2684 (ctx_no_get_addr_index): New function.
2685 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2686 (ctx_no_get_addr_index): Declare.
2687 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2688 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2689 (dwarf_expr_ctx_funcs): Update.
2690 (needs_get_addr_index): New function.
2691 (needs_frame_ctx_funcs): Update.
2692 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2693 * dwarf2read.c: #include "gdbcore.h".
2694 (dwarf2_per_objfile): New members addr, dwo_files.
2695 (dwarf2_elf_names): Add entry for addr.
2696 (struct dwo_section_names): New type.
2697 (dwo_section_names): New static global.
2698 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2699 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2700 old debug_types_section member updated to use this.
2701 Rename member debug_types_section to info_or_types_section,
2702 all uses updated.
2703 (signatured_type): Rename member type_offset to type_offset_in_tu,
2704 all uses updated. New member type_offset_in_section.
2705 (struct dwo_sections): New type.
2706 (struct dwo_unit): New type.
2707 (struct dwo_file): New type.
2708 (die_reader_specs): New member dwo_file.
2709 (dwarf2_locate_sections): Watch for .debug_addr.
2710 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2711 (dwarf2_read_section): Get bfd of section from bfd's asection,
2712 instead of objfile.
2713 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2714 (create_signatured_type_table_from_index): Initialize
2715 sig_type->info_or_types_section.
2716 (dw2_get_file_names): Statement lists for type units with DWO files
2717 live in the DWO file.
2718 (create_debug_types_hash_table): New function.
2719 (create_all_type_units): Rewrite.
2720 (init_cu_die_reader): New arg dwo_file, all callers updated.
2721 (init_and_read_dies_worker): Get section from
2722 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2723 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2724 continue reading the CU/TU from there.
2725 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2726 updated. Get section from this_cu->info_or_types_section.
2727 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2728 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2729 DW_FORM_GNU_str_index.
2730 (hash_dwo_file, eq_dwo_file): New functions.
2731 (allocate_dwo_file_hash_table): New function.
2732 (hash_dwo_unit, eq_dwo_unit): New functions.
2733 (allocate_dwo_unit_table): New function.
2734 (dwarf2_locate_dwo_sections): New function.
2735 (struct create_dwo_info_table_data): New type.
2736 (create_debug_info_hash_table_reader): New function.
2737 (create_debug_info_hash_table): New function.
2738 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2739 (lookup_dwo_file): New function.
2740 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2741 (free_dwo_file, free_dwo_file_cleanup): New functions.
2742 (free_dwo_file_from_slot, free_dwo_files): New functions.
2743 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2744 (dwarf2_record_block_ranges): Ditto.
2745 (read_partial_die): Ditto.
2746 (process_enumeration_scope): Update to use type_offset_in_section.
2747 (read_full_die_1): New function.
2748 (read_full_die): Rewrite.
2749 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2750 DW_FORM_GNU_str_index.
2751 (read_addr_index_1, read_addr_index): New functions.
2752 (read_addr_index_from_leb128): New function.
2753 (struct dwarf2_read_addr_index_data): New type.
2754 (dwarf2_read_addr_index_reader): New function.
2755 (dwarf2_read_addr_index): New function.
2756 (read_str_index): New function.
2757 (leb128_size): New function.
2758 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2759 If processing a type unit from a DWO file, get the line section
2760 from the DWO file.
2761 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2762 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2763 DW_FORM_GNU_str_index.
2764 (lookup_die_type): Check whether section offset of type's die is
2765 known before looking it up. Remove assert. Condition can
2766 legimately happen for inter-cu type references.
2767 (dwarf_attr_name): Handle Fission attributes.
2768 (dwarf_form_name): Handle Fission forms.
2769 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2770 DW_FORM_GNU_str_index.
2771 (follow_die_sig): Update to use type_offset_in_section.
2772 (decode_locdesc): New case DW_OP_GNU_addr_index.
2773 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2774 DW_FORM_GNU_str_index.
2775 (cu_debug_loc_section): New function.
2776 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2777 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2778 Free DWO files if present.
2779 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2780
dee91e82
DE
2781 Refactor DIE reading.
2782 * dwarf2read.c (dwarf2_per_objfile): Replace members
2783 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2784 (die_reader_specs): New member "die_section". Temporarily make
2785 member "buffer" non-const, pending constifying all info_ptr uses.
2786 (die_reader_func_ftype): New typedef.
2787 (dw2_get_file_names_reader): New function.
2788 (dw2_get_file_names): Rewrite.
2789 (read_and_check_type_unit_head): Rename arg type_offset to
2790 type_offset_in_tu.
2791 (create_all_type_units): Improve debugging message.
2792 Improve dummy type unit check.
2793 (init_cu_die_reader): New arg "section". All callers updated.
2794 (init_and_read_dies_worker): New function.
2795 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2796 (init_cutu_and_read_dies_no_follow): New function.
2797 (init_cutu_and_read_dies_simple): New function.
2798 (process_psymtab_comp_unit_reader): New function.
2799 (process_psymtab_comp_unit): Delete args section,
2800 is_debug_types_section. Rewrite. All callers updated.
2801 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2802 All callers updated. Rewrite.
2803 (load_partial_comp_unit_reader): New function.
2804 (load_partial_comp_unit): Rewrite.
2805 (skip_children): New arg reader. Delete args buffer, cu.
2806 All callers updated.
2807 (skip_one_die): New arg reader. Delete args buffer, cu.
2808 All callers updated.
2809 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2810 All callers updated.
2811 (load_full_comp_unit_reader): New function.
2812 (load_full_comp_unit): Rewrite.
2813 (read_comp_unit): Delete.
2814 (read_die_and_children_1): Delete, contents moved ...
2815 (read_die_and_children): ... here.
2816 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2817 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2818 All callers updated.
2819 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2820 All callers updated.
2821 (find_partial_die): Rewrite load_all_dies support.
2822 (read_attribute_value): New arg reader. Delete args abfd, cu.
2823 All callers updated.
2824 (read_attribute): New arg reader. Delete args abfd, cu.
2825 All callers updated.
2826 (load_full_type_unit): Add assert.
2827 (read_signatured_type_reader): New function.
2828 (read_signatured_type): Rewrite.
2829 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2830 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2831 All callers updated. Set per_cu->cu = NULL after freeing it.
2832 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2833 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2834 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2835 (set_die_type): Update.
2836 (get_die_type_at_offset): Update.
2837 (read_file_scope): Call prepare_one_comp_unit.
2838 (read_type_unit_scope): Ditto.
2839 (prepare_one_comp_unit): Set producer if present.
2840
72d59e0d
SDJ
28412012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2842
2843 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2844 gettext function on `error'.
2845
0fefef59
DE
28462012-04-27 Doug Evans <dje@google.com>
2847
2848 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2849 is empty.
2850
28106bc2
SDJ
28512012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2852 Tom Tromey <tromey@redhat.com>
2853
2854 * breakpoint.c (struct breakpoint_objfile_data)
2855 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2856 <exception_probes>: New fields.
2857 (free_breakpoint_probes): New function.
2858 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2859 `_Unwind_DebugHook'.
2860 (create_exception_master_breakpoint): Likewise.
2861 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2862 * infrun.c: Including necessary header files for handling SystemTap
2863 probes.
2864 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2865 via SystemTap probes.
2866 (check_exception_resume): Remove `func' argument. Handle exception
2867 unwinding breakpoint set via a SystemTap probe.
2868 (insert_exception_resume_from_probe): New function.
2869
55aa24fb
SDJ
28702012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2871 Tom Tromey <tromey@redhat.com>
2872 Jan Kratochvil <jan.kratochvil@redhat.com>
2873
2874 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2875 (COMMON_OBS): Likewise.
2876 (HFILES_NO_SRCDIR): Add `probe'.
2877 * NEWS: Mention support for static and SystemTap probes.
2878 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2879 SystemTap probes' arguments parser.
2880 * arm-linux-tdep.c: Including headers needed to perform the parsing
2881 of SystemTap probes' arguments.
2882 (arm_stap_is_single_operand): New function.
2883 (arm_stap_parse_special_token): Likewise.
2884 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2885 probes' arguments parser.
2886 * ax-gdb.c (require_rvalue): Removing static declaration.
2887 (gen_expr): Likewise.
2888 * ax-gdb.h (gen_expr): Declaring function.
2889 (require_rvalue): Likewise.
2890 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2891 (bkpt_probe_breakpoint_ops): New variable.
2892 (momentary_breakpoint_from_master): Set the `probe' value.
2893 (add_location_to_breakpoint): Likewise.
2894 (break_command_1): Using proper breakpoint_ops according to the
2895 argument passed by the user in the command line.
2896 (bkpt_probe_insert_location): New function.
2897 (bkpt_probe_remove_location): Likewise.
2898 (bkpt_probe_create_sals_from_address): Likewise.
2899 (bkpt_probe_decode_linespec): Likewise.
2900 (tracepoint_probe_create_sals_from_address): Likewise.
2901 (tracepoint_probe_decode_linespec): Likewise.
2902 (tracepoint_probe_breakpoint_ops): New variable.
2903 (trace_command): Using proper breakpoint_ops according to the
2904 argument passed by the user in the command line.
2905 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2906 static probes on breakpoints and tracepoints.
2907 * breakpoint.h (struct bp_location) <probe>: New field.
2908 * cli-utils.c (skip_spaces_const): New function.
2909 (extract_arg): Likewise.
2910 * cli-utils.h (skip_spaces_const): Likewise.
2911 (extract_arg): Likewise.
2912 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2913 * configure.ac: Append `stap-probe.o' to be generated when ELF
2914 support is present.
2915 * configure: Regenerate.
2916 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2917 * elfread.c: Include `probe.h' and `arch-utils.h'.
2918 (probe_key): New variable.
2919 (elf_get_probes): New function.
2920 (elf_get_probe_argument_count): Likewise.
2921 (elf_evaluate_probe_argument): Likewise.
2922 (elf_compile_to_ax): Likewise.
2923 (elf_symfile_relocate_probe): Likewise.
2924 (stap_probe_key_free): Likewise.
2925 (elf_probe_fns): New variable.
2926 (elf_sym_fns): Add `sym_probe_fns' value.
2927 (elf_sym_fns_lazy_psyms): Likewise.
2928 (elf_sym_fns_gdb_index): Likewise.
2929 (_initialize_elfread): Initialize objfile cache for static
2930 probes.
2931 * gdb_vecs.h (struct probe): New forward declaration.
2932 (probe_p): New VEC declaration.
2933 * gdbarch.c: Regenerate.
2934 * gdbarch.h: Regenerate.
2935 * gdbarch.sh (stap_integer_prefix): New variable.
2936 (stap_integer_suffix): Likewise.
2937 (stap_register_prefix): Likewise.
2938 (stap_register_suffix): Likewise.
2939 (stap_register_indirection_prefix): Likewise.
2940 (stap_register_indirection_suffix): Likewise.
2941 (stap_gdb_register_prefix): Likewise.
2942 (stap_gdb_register_suffix): Likewise.
2943 (stap_is_single_operand): New function.
2944 (stap_parse_special_token): Likewise.
2945 (struct stap_parse_info): Forward declaration.
2946 * i386-tdep.c: Including headers needed to perform the parsing
2947 of SystemTap probes' arguments.
2948 (i386_stap_is_single_operand): New function.
2949 (i386_stap_parse_special_token): Likewise.
2950 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2951 probes' arguments parser.
2952 * i386-tdep.h (i386_stap_is_single_operand): New function.
2953 (i386_stap_parse_special_token): Likewise.
2954 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2955 * mipsread.c (ecoff_sym_fns): Likewise.
2956 * objfiles.c (objfile_relocate1): Support relocation for static
2957 probes.
2958 * parse.c (prefixify_expression): Remove static declaration.
2959 (initialize_expout): Likewise.
2960 (reallocate_expout): Likewise.
2961 * parser-defs.h (initialize_expout): Declare function.
2962 (reallocate_expout): Likewise.
2963 (prefixify_expression): Likewise.
2964 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2965 of SystemTap probes' arguments.
2966 (ppc_stap_is_single_operand): New function.
2967 (ppc_stap_parse_special_token): Likewise.
2968 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2969 probes' arguments parser.
2970 * probe.c: New file, for generic statically defined probe support.
2971 * probe.h: Likewise.
2972 * s390-tdep.c: Including headers needed to perform the parsing of
2973 SystemTap probes' arguments.
2974 (s390_stap_is_single_operand): New function.
2975 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2976 probes' arguments parser.
2977 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2978 * stap-probe.c: New file, for SystemTap probe support.
2979 * stap-probe.h: Likewise.
2980 * symfile.h: Include `gdb_vecs.h'.
2981 (struct sym_probe_fns): New struct.
2982 (struct sym_fns) <sym_probe_fns>: New field.
2983 * symtab.c (init_sal): Initialize `probe' field.
2984 * symtab.h (struct probe): Forward declaration.
2985 (struct symtab_and_line) <probe>: New field.
2986 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2987 locations.
2988 (stop_tracing): Likewise.
2989 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2990
22d2b532
SDJ
29912012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2992 Tom Tromey <tromey@redhat.com>
2993
2994 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2995 and to compile agent expressions.
2996 * infrun.c (siginfo_make_value): New argument `ignore'.
2997 (siginfo_funcs): New struct.
2998 (_initialize_infrun): New argument when calling
2999 `create_internalvar_type_lazy'.
3000 * thread.c (thread_id_make_value): New argument `ignore'.
3001 (thread_funcs): New struct.
3002 (_initialize_thread): New argument when calling
3003 `create_internalvar_type_lazy'.
3004 * tracepoint.c (sdata_make_value): New argument `ignore'.
3005 (sdata_funcs): New struct.
3006 (_initialize_tracepoint): New argument when calling
3007 `create_internalvar_type_lazy'.
3008 * value.c (make_value): New struct.
3009 (create_internalvar_type_lazy): New argument `data'.
3010 (compile_internalvar_to_ax): New function.
3011 (value_of_internalvar): Properly handling `make_value' case.
3012 (clear_internalvar): Likewise.
3013 (show_convenience): Adding `TRY_CATCH' block.
3014 * value.h (internalvar_make_value): Delete, replace by...
3015 (struct internalvar_funcs): ... this.
3016 (create_internalvar_type_lazy) <fun>: Delete argument.
3017 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
3018 (compile_internalvar_to_ax): New function.
3019 * windows-tdep.c (tlb_make_value): New argument `ignore'.
3020 (tlb_funcs): New struct.
3021 (_initialize_windows_tdep): New argument when calling
3022 `create_internalvar_type_lazy'.
3023
91da1414
MW
30242012-04-27 Mark Wielaard <mjw@redhat.com>
3025
3026 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
3027 see whether it is an address or a constant offset from DW_AT_low_pc.
3028 (dwarf2_record_block_ranges): Likewise.
3029 (read_partial_die): Likewise.
3030
4ab9d8ec
MW
30312012-04-26 Mark Wielaard <mjw@redhat.com>
3032
3033 * MAINTAINERS (Write After Approval): Add myself to the list.
3034
a0911fd0
MR
30352012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
3036
3037 * proc-utils.h (proc_prettyprint_signalset): New prototype.
3038 (proc_prettyprint_signal): Likewise.
3039 (proc_prettyprint_faultset): Likewise.
3040 (proc_prettyprint_fault): Likewise.
3041 (proc_prettyprint_actionset): Likewise.
3042 (proc_prettyprint_flags): Move to new proc-flags.c section.
3043 (proc_prettyfprint_flags): New prototype.
3044 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
3045 (proc_syscall, proc_cursig): Likewise.
3046 (proc_set_kill_on_last_close): Likewise.
3047 (proc_unset_kill_on_last_close): Likewise.
3048 (proc_set_watchpoint): Make static.
3049 (proc_delete_dead_threads): Likewise.
3050 (procfs_set_watchpoint): Likewise.
3051 (_initialize_procfs): Add prototype.
3052 * proc-events.c: Include proc-utils.h.
3053 (init_syscall_table): Make static.
3054 * proc-api.c (_initialize_proc_api): Add prototype.
3055 * proc-flags.c: Include proc-utils.h.
3056
9009e1ae
MR
30572012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
3058
3059 * configure.ac: Add AC_ARG_PROGRAM.
3060 * configure: Regenerate.
3061
4fae6e18
JK
30622012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3063
3064 Fix DW_AT_lower_bound defaults for DWARF-4+.
3065 * dwarf2read.c (read_subrange_type): Remove initialization of low and
3066 high. New variable low_default_is_valid. Implement DWARF-4+
3067 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
3068 no default by the DWARF standard.
3069
14132e89
MR
30702012-04-26 Maciej W. Rozycki <macro@mips.com>
3071 Maciej W. Rozycki <macro@codesourcery.com>
3072
3073 * infrun.c (handle_inferior_event): Move the check for return
3074 trampolines ahead of the check for function trampolines.
3075 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
3076 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
3077 (mips_str_mips16_ret_stub): Likewise.
3078 (mips_str_call_fp_stub): Likewise.
3079 (mips_str_call_stub): Likewise.
3080 (mips_str_fn_stub): Likewise.
3081 (mips_str_pic): Likewise.
3082 (mips_in_frame_stub): New function.
3083 (mips_unwind_pc): Return the return address rather than the PC
3084 if the PC of an intermediate frame is inside a call thunk.
3085 (mips_is_stub_suffix): New function.
3086 (mips_is_stub_mode): Likewise.
3087 (mips_get_mips16_fn_stub_pc): Likewise.
3088 (mips_skip_mips16_trampoline_code): Update to handle all the
3089 currently generated stub types. Don't recurse into __fn_stub
3090 thunks. Remove heuristics to handle stubs beyond etext/_etext.
3091 Use cooked register accesses.
3092 (mips_in_return_stub): Reintroduce function.
3093 (mips_skip_trampoline_code): Traverse trampolines recursively.
3094 (mips_gdbarch_init): Handle MIPS16 return trampolines.
3095
518f0db5 30962012-04-26 Joel Brobecker <brobecker@adacore.com>
3097
3098 GDB 7.4.1 released.
3099
3184d3f9
JL
31002012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
3101
3102 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
3103 * features/arm-with-m-vfp-d16.xml: New file. Describes
3104 Cortex-M with VFPv4-sp-d16 FPU register layout.
3105 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
3106 * features/arm-with-m-vfp-d16.c: New. Generated from above.
3107 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
3108 (arm-register_g_packet_guesses): Add vfp-d16 guess.
3109 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
3110
b6201d44
DE
31112012-04-25 Doug Evans <dje@google.com>
3112
3113 * cli/cli-decode.c (print_doc_line): Use stream instead of
3114 current_uiout.
3115
4e2f8df6
SDJ
31162012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
3117
3118 * features/arm-with-iwmmxt.c: Regenerate.
3119 * features/arm-with-m-fpa-layout.c: Likewise.
3120 * features/arm-with-m.c: Likewise.
3121 * features/arm-with-neon.c: Likewise.
3122 * features/arm-with-vfpv2.c: Likewise.
3123 * features/arm-with-vfpv3.c: Likewise.
3124 * features/mips-dsp-linux.c: Likewise.
3125 * features/mips-linux.c: Likewise.
3126 * features/mips64-dsp-linux.c: Likewise.
3127 * features/mips64-linux.c: Likewise.
3128 * features/s390-linux32.c: Likewise.
3129 * features/s390-linux32v1.c: Likewise.
3130 * features/s390-linux32v2.c: Likewise.
3131 * features/s390-linux64.c: Likewise.
3132 * features/s390-linux64v1.c: Likewise.
3133 * features/s390-linux64v2.c: Likewise.
3134 * features/s390x-linux64.c: Likewise.
3135 * features/s390x-linux64v1.c: Likewise.
3136 * features/s390x-linux64v2.c: Likewise.
3137 * features/tic6x-c62x-linux.c: Likewise.
3138 * features/tic6x-c62x.c: Likewise.
3139 * features/tic6x-c64x-linux.c: Likewise.
3140 * features/tic6x-c64x.c: Likewise.
3141 * features/tic6x-c64xp-linux.c: Likewise.
3142 * features/tic6x-c64xp.c: Likewise.
3143 * target-descriptions.c: Only generate `field_type' and `type'
3144 variables when needed.
3145
2def3e66
JB
31462012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
3147
3148 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
3149
a766d390
DE
31502012-04-25 Doug Evans <dje@google.com>
3151
3152 Initial pass at Go language support.
3153 * NEWS: Mention Go.
3154 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
3155 go-valprint.c.
3156 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
3157 (YYFILES): Add go-exp.c.
3158 (YYOBJ): Add go-exp.o.
3159 (local-maintainer-clean): Delete go-exp.c.
3160 * defs.h (enum language): Add language_go.
3161 * dwarf2read.c: #include "go-lang.h".
3162 (fixup_go_packaging): New function.
3163 (process_full_comp_unit): Call it when processing Go CUs.
3164 (dwarf2_physname): Add Go support.
3165 (read_file_scope): Handle missing language spec for GNU Go.
3166 (set_cu_language): Handle DW_LANG_Go.
3167 * go-exp.y: New file.
3168 * go-lang.h: New file.
3169 * go-lang.c: New file.
3170 * go-typeprint.c: New file.
3171 * go-valprint.c: New file.
3172 * symtab.c: #include "go-lang.h".
3173 (symbol_set_language): Handle language_go.
3174 (symbol_find_demangled_name, symbol_set_names): Ditto.
3175 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
3176
4e2af517
JM
31772012-04-24 Jim Meyering <meyering@redhat.com>
3178
3179 avoid a few strncpy-induced buffer overruns
3180 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
3181 fname and psargs before trying to concatenate.
3182 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
3183 "name" before applying strchr.
3184
b77b7f52
SCR
31852012-04-25 Siva Chandra Reddy <sivachandra@google.com>
3186
3187 * CONTRIBUTE: Use unified diff instead of context diff when
3188 generating patches.
3189
6321c22a
MR
31902012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
3191
3192 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
3193 code. Handle JR.HB correctly.
3194
742c84f6
MR
31952012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
3196
3197 * mips-tdep.c
3198 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
3199 with the other MIPS16 helpers.
3200
7fc7e0c3
SDJ
32012012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
3202
3203 * observer.sh: Conditionally declare `args', thus cleaning up
3204 unused instances of this variable.
3205
20388dd6
YQ
32062012-04-24 Yao Qi <yao@codesourcery.com>
3207
3208 Revert this patch to allow breakpoint always-inserted
3209 in record target.
3210 2011-12-05 Pedro Alves <pedro@codesourcery.com>
3211 * breakpoint.c: Include record.h.
3212 (breakpoints_always_inserted_mode): Return false when the record
3213 target is in use.
3214
3215 * breakpoint.c (iterate_over_bp_locations): New.
3216 * breakpoint.h: Declare.
3217 New typedef walk_bp_location_callback.
3218 * record.c (record_open): Call record_init_record_breakpoints.
3219 (record_sync_record_breakpoints): New.
3220 (record_init_record_breakpoints): New.
3221 * NEWS: Mention supporting breakpoint always-inserted mode in
3222 record target.
3223
4734f50e
MK
32242012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
3225
3226 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
3227 any thread.
3228
c326b90e
YQ
32292012-04-24 Yao Qi <yao@codesourcery.com>
3230
3231 * breakpoint.c (ep_is_catchpoint): Renamed to ...
3232 (is_catchpoint): ... it.
3233 (print_one_breakpoint_location): Caller update.
3234 * breakpoint.h: Update declaration.
3235
d8fb5a1e
DM
32362012-04-23 David S. Miller <davem@davemloft.net>
3237
3238 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
3239
34431a2a
TT
32402012-04-23 Tom Tromey <tromey@redhat.com>
3241
3242 * buildsym.c (add_free_pendings): Remove.
3243 * buildsym.h (add_free_pendings): Remove.
3244
4568ecf9
DE
32452012-04-23 Doug Evans <dje@google.com>
3246
3247 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
3248 attr.u.unsnd instead of attr.u.addr.
3249 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
3250 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
3251 DW_FORM_ref_udata.
3252 (dump_die_shallow): Update cases DW_FORM_ref_addr,
3253 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
3254 DW_FORM_ref_udata.
3255 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
3256
dca9aa3a
MR
32572012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
3258
3259 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
3260 (mips_o32_return_value): Likewise.
3261 (mips_o64_return_value): Likewise.
3262
c8ea1972
PH
32632012-04-21 Paul Hilfinger <hilfinger@adacore.com>
3264
3265 * ada-lang.c (ada_evaluate_subexp): Add cases for
3266 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
3267 their treatment in eval.c.
3268
8d1b3521
DM
32692012-04-21 David S. Miller <davem@davemloft.net>
3270
3271 * sparc-tdep.c (X_DISP10): Define.
3272 (sparc_analyze_control_transfer): Handle compare-and-branch.
3273
03145bf4
JL
32742012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
3275
3276 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
3277 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
3278
004159a2
MR
32792012-04-20 Nigel Stephens <nigel@mips.com>
3280 Maciej W. Rozycki <macro@codesourcery.com>
3281
3282 * mips-tdep.c (mips_float_register_p): New function.
3283 (mips_convert_register_float_case_p): Use mips_float_register_p.
3284 (mips_register_type): Likewise.
3285 (mips_print_register): Likewise.
3286 (print_gp_register_row): Likewise.
3287 (mips_print_registers_info): Likewise.
3288
7f0e6aae
MR
32892012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
3290
3291 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
3292 of mips16 symbols.
3293
bc17beea
AP
32942012-04-20 Andrew Pinski <apinski@cavium.com>
3295
3296 * MAINTAINERS (Write After Approval): Add myself to the list.
3297
1730a5a5
SDJ
32982012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3299
3300 * MAINTAINERS: Update my e-mail address.
3301
38ea300a
PA
33022012-04-20 Pedro Alves <palves@redhat.com>
3303
3304 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
3305 $srcdir.
3306 * configure: Regenerate.
3307
111dfaae
SDJ
33082012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3309
3310 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
3311 declaration.
3312 * gdb_vecs.h: Declare `const_char_ptr' VEC.
3313
4fb2c64a
JK
33142012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 Fix compilation compatibility with python-2.4
3317 * python/py-type.c (convert_field): Cast ADDRSTRING for
3318 PyObject_SetAttrString as non-const. New comment.
3319
6328eb38
TT
33202012-04-19 Tom Tromey <tromey@redhat.com>
3321
3322 * top.c (quit_target): Use all_cleanups.
3323 * main.c (captured_command_loop): Use all_cleanups.
3324 * exceptions.c (throw_exception): Use all_cleanups.
3325
c971b7fa
PA
33262012-04-19 Pedro Alves <palves@redhat.com>
3327
3328 * Makefile.in (GNULIB_BUILDDIR): New.
3329 (LIBGNU, INCGNU, GNULIB_H): Adjust.
3330 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3331 (CLEANDIRS). Remove gnulib/import.
3332 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3333 (all-lib): Ditto.
3334 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3335 (gnulib/import/Makefile): Replace gnulib/import with
3336 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3337 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3338 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3339 acx_configure_dir.m4.
3340 * acinclude.m4: Include acx_configure_dir.m4.
3341 * acx_configure_dir.m4: New file.
3342 * aclocal.m4: Regenerate.
a09130f9
PA
3343 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3344 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3345 (GNULIB): New variable.
3346 (GNULIB_STDINT_H): Adjust.
3347 (AC_OUTPUT): Don't output gnulib/Makefile.
3348 * gdb/defs.h: Include build-gnulib/config.h.
3349 * aclocal.m4: Regenerate.
3350 * config.in: Regenerate.
3351 * configure: Regenerate.
3352
3353 * gnulib/Makefile.in: New file.
3354 * gnulib/configure.ac: New file.
3355 * gnulib/aclocal.m4: New file.
3356 * gnulib/config.in: New file.
3357 * gnulib/configure: New file.
c971b7fa
PA
3358 * gnulib/: Re-run gnulib-tool to adjust.
3359
b10faa68
DE
33602012-04-19 Doug Evans <dje@google.com>
3361
3362 * cleanups.h (struct cleanup): Move to cleanups.c.
3363 (make_cleanup_dtor_ftype): New typedef.
3364 (make_cleanup_dtor): Use it.
3365 (ALL_CLEANUPS): Replace with ...
3366 (all_cleanups): ... this. Declare. All uses updated.
3367 * cleanups.c: #include "gdb_assert.h".
3368 (sentinel_cleanup): New static global.
3369 (SENTINEL_CLEANUP): Define.
3370 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3371 (make_my_cleanup2): Assert result is non-NULL.
3372 (all_cleanups): New function.
3373 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3374 of NULL.
3375
d8c267cc
PA
33762012-04-19 Pedro Alves <palves@redhat.com>
3377
3378 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3379 Adjust paths to gnulib imported files.
3380
809277f8
PA
33812012-04-19 Pedro Alves <palves@redhat.com>
3382
3383 * gnulib/: Move whole directory ...
3384 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3385 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3386 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3387 (aclocal_m4_deps): Adjust.
3388 * aclocal.m4: Regenerate.
3389 * configure: Regenerate.
3390 * configure.ac: Adjust AC_OUTPUT output.
3391
aad9eab9
YQ
33922012-04-19 Yao Qi <yao@codesourcery.com>
3393
3394 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3395 (vec.o): New rule.
3396 * vec.c: Move it ...
3397 * common/vec.c: ... here.
3398 * vec.h: Move it ...
3399 * common/vec.h: ... here.
3400
48fe4669
YQ
34012012-04-19 Yao Qi <yao@codesourcery.com>
3402
3403 * gdb-code-style.el: New.
3404
770d76d7
PA
34052012-04-18 Pedro Alves <palves@redhat.com>
3406
3407 Update gnulib from latest git.
3408 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3409
3410 * gnulib/Makefile.am: Update.
3411 * gnulib/dummy.c: Update.
3412 * gnulib/extra/arg-nonnull.h: Update.
3413 * gnulib/extra/c++defs.h: Update.
3414 * gnulib/extra/update-copyright: Update.
3415 * gnulib/extra/warn-on-use.h: Update.
3416 * gnulib/inttypes.in.h: Update.
3417 * gnulib/m4/00gnulib.m4: Update.
3418 * gnulib/m4/extensions.m4: Update.
3419 * gnulib/m4/gnulib-cache.m4: Update.
3420 * gnulib/m4/gnulib-common.m4: Update.
3421 * gnulib/m4/gnulib-comp.m4: Update.
3422 * gnulib/m4/gnulib-tool.m4: Update.
3423 * gnulib/m4/include_next.m4: Update.
3424 * gnulib/m4/inttypes-pri.m4: Update.
3425 * gnulib/m4/inttypes.m4: Update.
3426 * gnulib/m4/longlong.m4: Update.
3427 * gnulib/m4/memchr.m4: Update.
3428 * gnulib/m4/memmem.m4: Update.
3429 * gnulib/m4/mmap-anon.m4: Update.
3430 * gnulib/m4/multiarch.m4: Update.
3431 * gnulib/m4/onceonly.m4: Update.
3432 * gnulib/m4/stddef_h.m4: Update.
3433 * gnulib/m4/stdint.m4: Update.
3434 * gnulib/m4/string_h.m4: Update.
3435 * gnulib/m4/warn-on-use.m4: Update.
3436 * gnulib/m4/wchar_h.m4: Update.
3437 * gnulib/m4/wchar_t.m4: Update.
3438 * gnulib/m4/wint_t.m4: Update.
3439 * gnulib/memchr.c: Update.
3440 * gnulib/memmem.c: Update.
3441 * gnulib/stddef.in.h: Update.
3442 * gnulib/stdint.in.h: Update.
3443 * gnulib/str-two-way.h: Update.
3444 * gnulib/string.in.h: Update.
3445 * gnulib/wchar.in.h: Update.
3446
3447 * gnulib/extra/arg-nonnull.h: Delete.
3448 * gnulib/extra/c++defs.h: Delete.
3449 * gnulib/extra/warn-on-use.h: Delete.
3450 * gnulib/m4/wchar_h.m4: Delete.
3451 * gnulib/m4/wint_t.m4: Delete.
3452 * gnulib/wchar.in.h: Delete.
3453
3454 * gnulib/extra/snippets/arg-nonnull.h: New.
3455 * gnulib/extra/snippets/c++defs.h: New.
3456 * gnulib/extra/snippets/warn-on-use.h: New.
3457
3458 * aclocal.m4: Regenerate.
3459 * config.in: Regenerate.
3460 * configure: Regenerate.
3461 * gnulib/Makefile.in: Regenerate.
3462
174e088e
PA
34632012-04-18 Pedro Alves <palves@redhat.com>
3464
3465 Reimport the update-copyright module from gnulib
3466 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3467
3468 * configure: Regenerate.
3469 * gnulib/Makefile.am: Update.
3470 * gnulib/Makefile.in: Regenerate.
3471 * gnulib/extra/update-copyright: Update.
3472 * gnulib/m4/gnulib-cache.m4: Update.
3473 * gnulib/m4/gnulib-comp.m4: Update.
3474
7f533142
JB
34752012-04-18 Tristan Gingold <gingold@adacore.com>
3476
3477 * configure.ac (aix): Put -lpthread into libs.
3478 * configure: Regenerate.
3479
001822aa
TT
34802012-04-18 Tom Tromey <tromey@redhat.com>
3481
3482 * linespec.c (convert_linespec_to_sals): Don't use
3483 SYMBOL_OBJ_SECTION.
3484 (compare_msymbols): Arguments are minsym_and_objfile, not
3485 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3486
db026a31
PA
34872012-04-18 Pedro Alves <palves@redhat.com>
3488
3489 Revert gnulib/ part of:
3490 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3491 Copyright year update in most files (performed by copyright.sh).
3492
12df843f
JK
34932012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3494
3495 Fix 64-bit constants on 32-bit hosts.
3496 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3497 from unsigned long to ULONGEST.
3498 (read_signed_leb128): Change declaration return type from long to
3499 LONGEST.
3500 (dwarf2_const_value_attr): Change declaration parameter value from long
3501 to LONGEST.
3502 (dwarf2_compute_name): Change variable value from long to LONGEST.
3503 (read_unsigned_leb128): Change return type, variable result and some
3504 casts from unsigned long to ULONGEST.
3505 (read_signed_leb128): Change return type, variable result and some
3506 casts from long to LONGEST.
3507 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3508 value from long to LONGEST.
3509 (dwarf2_const_value): Change variable value from long to LONGEST.
3510 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3511 plongest and hex_string.
3512 * symtab.h (struct general_symbol_info): Change ivalue from long to
3513 LONGEST, remove the comment.
3514 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3515 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3516
14e75d8e
JK
35172012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3518
3519 PR symtab/7259:
3520 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3521 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
3522 (ada_discrete_type_low_bound): Fix function comment. Use
3523 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
3524 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3525 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3526 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3527 Use TYPE_FIELD_ENUMVAL.
3528 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3529 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3530 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3531 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3532 TYPE_CODE_ENUM.
3533 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3534 * dwarf2read.c (process_enumeration_scope): Likewise.
3535 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3536 field.bitpos.
3537 (class StructMainTypePrettyPrinter): Support also
3538 FIELD_LOC_KIND_ENUMVAL.
3539 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3540 TYPE_CODE_ENUM.
3541 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3542 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3543 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3544 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3545 field enumval.
3546 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3547 accommodate enumval.
3548 (struct call_site): Adjust loc_kind to accommodate enumval.
3549 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3550 (TYPE_FIELD_ENUMVAL): New macros.
3551 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3552 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3553 TYPE_CODE_ENUM.
3554 * p-typeprint.c (pascal_type_print_base): Likewise.
3555 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3556 enumval.
3557 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3558 * python/py-type.c (convert_field): New variable addrstring. Use
3559 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3560 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3561 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3562 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3563 TYPE_CODE_ENUM.
3564 * valprint.c (generic_val_print): Likewise.
3565
380bca97
DE
35662012-04-17 Doug Evans <dje@google.com>
3567
dcc07052
DE
3568 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3569
380bca97
DE
3570 * dwarf2read.c: Whitespace fixes.
3571 (lookup_signatured_type): Tweak comment.
3572 (get_die_type_at_offset): Fix comment.
3573
ec92004f
JB
35742012-04-17 Joel Brobecker <brobecker@adacore.com>
3575
3576 * xcoffread.c (xcoff_secnum_to_sections): New function.
3577 (secnum_to_section, secnum_to_bfd_section): Reimplement
3578 using xcoff_secnum_to_sections. Rename "secnum" parameter
3579 into "n_scnum".
3580 (RECORD_MINIMAL_SYMBOL): Delete.
3581 (record_minimal_symbol): New function.
3582 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3583 by call to record_minimal_symbol and set misc_func_recorded
3584 to 1. Set last_csect_sec to the XCOFF section index instead
3585 of GDB's section_offset index. Update calls to
3586 prim_record_minimal_symbol_and_info to pass the BFD section
3587 as well.
3588
40301fb7
JB
35892012-04-17 Joel Brobecker <brobecker@adacore.com>
3590
3591 * xcoffread.c (read_xcoff_symtab): Delete variables
3592 last_csect_val and last_csect_sec and associated code.
3593
e0088cfd
DE
35942012-04-17 Doug Evans <dje@google.com>
3595
58d5e2c3
DE
3596 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3597 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3598 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3599 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3600
c27f5738
DE
3601 * cleanups.h: New file.
3602 * cleanups.c: New file.
3603 * Makefile.in (SFILES): Add cleanups.c.
3604 (HFILES_NO_SRCDIR): Add cleanups.h.
3605 (COMMON_OBS): Add cleanups.o.
3606 * defs.h (struct cleanup): Moved to cleanups.h.
3607 (do_cleanups,do_final_cleanups): Ditto.
3608 (discard_cleanups,discard_final_cleanups): Ditto
3609 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3610 (save_cleanups,save_final_cleanups): Ditto.
3611 (restore_cleanups,restore_final_cleanups): Ditto.
3612 (null_cleanup): Ditto.
3613 (make_my_cleanup,make_my_cleanup2): Ditto.
3614 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3615 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3616 (do_cleanups,do_final_cleanups): Ditto.
3617 (discard_cleanups,discard_final_cleanups): Ditto
3618 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3619 (save_cleanups,save_final_cleanups): Ditto.
3620 (restore_cleanups,restore_final_cleanups): Ditto.
3621 (null_cleanup): Ditto.
3622 (make_my_cleanup,make_my_cleanup2): Ditto.
3623 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3624
e0088cfd
DE
3625 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3626 make_my_cleanup.
3627 (make_cleanup_dyn_string_delete): Ditto.
3628 (make_cleanup_ui_file_delete): Ditto.
3629 (make_cleanup_ui_out_redirect_pop): Ditto.
3630 (make_cleanup_free_section_addr_info): Ditto.
3631 (make_cleanup_restore_integer): Ditto.
3632 (make_cleanup_unpush_target): Ditto.
3633 (make_cleanup_value_free_to_mark): Ditto.
3634 (make_cleanup_value_free): Ditto.
3635 (make_cleanup_free_so): Ditto.
3636
4dc84fd1
JK
36372012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3638
3639 New option "set debug auto-load".
3640 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3641 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3642 (auto_load_safe_path_vec_update)
3643 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3644 if DEBUG_AUTO_LOAD.
3645 (file_is_auto_load_safe): New parameters debug_fmt and ....
3646 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3647 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3648 caller by explanatory string.
3649 (_initialize_auto_load): Register "set debug auto-load".
3650 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3651 and ....
3652 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3653 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3654 by explanatory string.
3655 * main.c (captured_main): Likewise.
3656 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3657 (source_section_scripts): Likewise.
3658
bccbefd2
JK
36592012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3660
3661 New option "set auto-load safe-path".
3662 * NEWS: New commands "set auto-load safe-path"
3663 and "show auto-load safe-path".
3664 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3665 (auto_load_safe_path, auto_load_safe_path_vec)
3666 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3667 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3668 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3669 (source_gdb_script_for_objfile): New variable is_safe. Call
3670 file_is_auto_load_safe. Return if it is not.
3671 (struct loaded_script): New field loaded.
3672 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3673 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3674 output "Missing" to "No".
3675 (_initialize_auto_load): New variable cmd. Initialize
3676 auto_load_safe_path. Register "set auto-load safe-path",
3677 "show auto-load safe-path" and "add-auto-load-safe-path".
3678 * auto-load.h (maybe_add_script): Add parameter loaded.
3679 (file_is_auto_load_safe): New declaration.
3680 * config.in: Regenerate.
3681 * configure: Regenerate.
3682 * configure.ac: New parameters --with-auto-load-safe-path
3683 and --without-auto-load-safe-path.
3684 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3685 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3686 * main.c (captured_main): Check file_is_auto_load_safe for
3687 LOCAL_GDBINIT.
3688 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3689 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3690 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3691 not.
3692
bf88dd68
JK
36932012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3694
3695 auto-load: Implementation.
3696 * NEWS: New descriptions for "info auto-load",
3697 "info auto-load gdb-scripts", "info auto-load python-scripts",
3698 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3699 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3700 and "show auto-load-scripts". New description for "set auto-load",
3701 "show auto-load", "set auto-load gdb-scripts",
3702 "show auto-load gdb-scripts", "set auto-load python-scripts",
3703 "show auto-load python-scripts", "set auto-load local-gdbinit",
3704 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3705 "show auto-load libthread-db".
3706 * auto-load.c: Remove include python/python-internal.h. Add includes
3707 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3708 cli/cli-setshow.h.
3709 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3710 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3711 (gdbpy_global_auto_load): Rename to ...
3712 (global_auto_load): ... here.
3713 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3714 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3715 (script_language_gdb, source_gdb_script_for_objfile): New.
3716 (struct loaded_script): New field language.
3717 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3718 LANGUAGE.
3719 (maybe_add_script): Add parameter language. Drop redundant
3720 entry.full_path initialization. Initialize entry.language and
3721 (*slot)->language.
3722 (auto_load_objfile_script): Change parameter suffix to language.
3723 Remove the call of maybe_add_script.
3724 Call language->source_script_for_objfile.
3725 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3726 New.
3727 (collect_matching_scripts): Adjust it for
3728 struct collect_matching_scripts_data.
3729 (auto_load_info_scripts_pattern_nl): New variable.
3730 (info_auto_load_scripts): Rename to ...
3731 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3732 for struct collect_matching_scripts_data.
3733 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3734 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3735 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3736 (auto_load_info_cmdlist_get): New.
3737 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3738 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3739 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3740 "info auto-load local-gdbinit".
3741 * auto-load.h (struct script_language): New.
3742 (gdbpy_global_auto_load): Rename to ...
3743 (global_auto_load): ... here.
3744 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3745 (auto_load_local_gdbinit_loaded): New declarations.
3746 (maybe_add_script): New parameter language.
3747 (auto_load_objfile_script): Change parameter suffix to language.
3748 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3749 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3750 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3751 declarations.
3752 * linux-thread-db.c: Include auto-load.h and ctype.h.
3753 (auto_load_thread_db, show_auto_load_thread_db): New.
3754 (struct thread_db_info): New field filename.
3755 (delete_thread_db_info): Call xfree for FILENAME.
3756 (try_thread_db_load): Initialize FILENAME.
3757 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3758 if !AUTO_LOAD_THREAD_DB.
3759 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3760 (_initialize_thread_db): Install auto_load_thread_db
3761 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3762 as "info auto-load libthread-db".
3763 * main.c (captured_main): Rename gdbpy_global_auto_load to
3764 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3765 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3766 (print_gdb_help): Extend the help for 'local init file'.
3767 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3768 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3769 (auto_load_scripts): Rename to ...
3770 (auto_load_python_scripts): ... here, update the comment.
3771 (gdbpy_load_auto_script_for_objfile): New declaration.
3772 (show_auto_load_python_scripts, script_language_python)
3773 (gdbpy_load_auto_script_for_objfile): New.
3774 (source_section_scripts): Refactor the code.
3775 (load_auto_scripts_for_objfile): Rename to ...
3776 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3777 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3778 (info_auto_load_python_scripts): New.
3779 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3780 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3781 Register "set auto-load-scripts" as its deprecated alias. Register
3782 "info auto-load python-scripts". Register "info auto-load-scripts" as
3783 its deprecated alias.
3784 (load_auto_scripts_for_objfile): Rename to ...
3785 (gdbpy_load_auto_scripts_for_objfile): ... here.
3786 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3787 (gdbpy_load_auto_scripts_for_objfile): ... here.
3788
e2207b9a
JK
37892012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3790
3791 auto-load: Move files.
3792 * Makefile.in (SFILES): Add auto-load.c.
3793 (HFILES_NO_SRCDIR): Add auto-load.h.
3794 (COMMON_OBS): Add auto-load.o.
3795 (distclean): Change .gdbinit for gdb-gdb.gdb.
3796 * auto-load.c: New file, with parts from python/py-auto-load.c.
3797 * auto-load.h: New file, with parts from python/python.h.
3798 * configure: Regenerate.
3799 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3800 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3801 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3802 * main.c: Include auto-load.h.
3803 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3804 command.h, observer.h and progspace.h to auto-load.c. Add include
3805 auto-load.h.
3806 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3807 (struct loaded_script, auto_load_pspace_data)
3808 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3809 (hash_loaded_script_entry, eq_loaded_script_entry)
3810 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3811 (maybe_add_script): Move to auto-load.c.
3812 (source_section_scripts): Change maybe_add_script parameters passing,
3813 use script_not_found_warning_print.
3814 (clear_section_scripts, auto_load_objfile_script)
3815 (auto_load_new_objfile, loaded_script_ptr)
3816 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3817 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3818 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3819 auto_load_new_objfile and info_auto_load_scripts initizations to
3820 auto-load.c.
3821 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3822
e4ab2fad
JK
38232012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3824
3825 Code cleanup.
3826 * charset.c (find_charset_names): Remove variables ix and elt.
3827 Use free_char_ptr_vec.
3828 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3829 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3830 debugdir_end. New variable debugdir_len.
3831 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3832 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3833 declarations.
3834 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3835 and elt. Use free_char_ptr_vec.
3836 * source.c (add_path): Remove variables argv, arg and argv_index.
3837 New variables dir_vec, back_to, ix and name.
3838 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3839 make_cleanup_freeargv. Remove variable separator. Simplify the code
3840 no longer expecting DIRNAME_SEPARATOR.
3841 (openp): Remove variable p, p1 and len. New variables dir_vec,
3842 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3843 no longer expecting DIRNAME_SEPARATOR.
3844 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3845 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3846 debugdir_end.
3847 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3848 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3849 (dirnames_to_char_ptr_vec): New functions.
3850
5ee4ed9f
JK
38512012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3852
3853 Code cleanup.
3854 * source.c (add_path): Remove always true conditional 'p == 0' and
3855 unindent its code block.
3856
f41f5e61
PA
38572012-04-17 Pedro Alves <palves@redhat.com>
3858
3859 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3860 (FIELD_BITPOS_LVAL): ... this.
3861 (FIELD_BITPOS): New.
3862 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3863 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3864 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3865 SET_FIELD_BITPOS.
3866 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3867 SET_FIELD_BITPOS.
3868 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3869 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3870 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3871 SET_FIELD_BITPOS.
3872
945b3a32
JK
38732012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3874
3875 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3876 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3877 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3878 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3879 * jv-lang.c (java_link_class_type): Likewise, once.
3880 * stabsread.c (read_enum_type): Likewise.
3881
42476b70
YQ
38822012-04-16 Yao Qi <yao@codesourcery.com>
3883
3884 * common/agent.c (agent_run_command): Add one more parameter `len'.
3885 Update callers.
3886 * common/agent.h: Update declaration.
3887 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3888 Update.
3889 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3890
8264ba82
AG
38912012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3892
3893 PR mi/13393
3894 * value.c (value_actual_type): New function.
3895 * value.h (value_actual_type): New declaration.
3896 * varobj.c (update_type_if_necessary): New function.
3897 (varobj_create): Call value_actual_type instead of
3898 value_type.
3899 (install_dynamic_child): distinct changed and type changed MI variable
3900 objects.
3901 (update_dynamic_varobj_children): Updated for install_dynamic_child
3902 change. All callers updated.
a09130f9 3903 (varobj_update): Support for MI variable object type change if
8264ba82
AG
3904 the value changed and RTTI is used to determine the type.
3905 (create_child_with_value): Call value_actual_type instead of
3906 value_type.
a09130f9 3907 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
3908 specify whether the given value should be casted to enclosing type.
3909 All callers updated.
3910
55a8c076
YQ
39112012-04-14 Yao Qi <yao@codesourcery.com>
3912
3913 Import gnulib module inttypes from git
3914 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3915 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
3916 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3917 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
3918 * aclocal.m4, config.in, configure: Regenerated.
3919 * gnulib/Makefile.am: Update.
3920 * gnulib/Makefile.in: Update.
3921 * gnulib/m4/gnulib-cache.m4: Update.
3922 * gnulib/m4/gnulib-comp.m4: Update.
3923 * gnulib/inttypes.in.h: New.
3924 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 3925 * gnulib/m4/inttypes.m4: New.
55a8c076 3926
ca7781d2
LM
39272012-04-13 Luis Machado <lgustavo@codesourcery.com>
3928
3929 * infrun.c (resume): Update PC address to the real PC after
3930 preparing to do displaced stepping.
3931
e319fa28
DE
39322012-04-12 Doug Evans <dje@google.com>
3933
3934 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3935 All callers updated.
3936
15add3f5
MK
39372012-04-12 Mark Kettenis <kettenis@gnu.org>
3938
3939 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3940
52dc124a
DE
39412012-04-12 Doug Evans <dje@google.com>
3942
0e50663e
DE
3943 * dwarf2read.c (create_all_type_units): Renamed from
3944 create_debug_types_hash_table. All callers updated.
3945
52dc124a
DE
3946 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3947 local type_sig to sig_type, type_offset to type_offset_in_tu.
3948 (hash_signatured_type): Renamed from hash_type_signature,
3949 all callers updated.
3950 (eq_signatured_type): Renamed from eq_type_signature,
3951 all callers updated.
3952 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3953 (process_enumeration_scope): Ditto.
3954 (lookup_signatured_type_at_offset): Ditto.
3955 (load_full_type_unit, read_signatured_type): Ditto.
3956
248fd3bf
YQ
39572012-04-12 Yao Qi <yao@codesourcery.com>
3958
3959 * remote.c (async_remote_interrupt): Correct function name in
3960 debug message.
3961 (async_remote_interrupt_twice): Ditto.
3962
bc3aa6c3
DE
39632012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3964
3965 * source.c (find_and_open_source): Consistently pass resulting
3966 full path through xfullpath.
3967
9e529e1d
JK
39682012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3969
3970 Provide more specific displaced-stepping memory error message.
3971 * infrun.c (displaced_step_prepare): New variable status. Call
3972 target_read_memory instead of read_memory, provide more specific
3973 error message.
3974
82e0cec1
TG
39752012-04-11 Tristan Gingold <gingold@adacore.com>
3976
3977 PR gdb/13901
3978 * darwin-nat.c (darwin_execvp): Revert previous patch.
3979
d987a266
TG
39802012-04-11 Tristan Gingold <gingold@adacore.com>
3981
3982 PR gdb/13901
3983 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3984 in case of change.
3985
016b7430
TG
39862012-04-11 Tristan Gingold <gingold@adacore.com>
3987
3988 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3989 warning.
3990
06fc020f
SCR
39912012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3992
3993 New command 'explore' which helps explore values and types in
3994 scope.
3995 * NEWS: Add an entry about the new 'explore' command.
3996 * data-directory/Makefile.in: Add gdb/command/explore.py
3997 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 3998 command using the GDB Python API.
06fc020f 3999
de0919f8 40002012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
4001
4002 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
4003 extension in jump target calculation.
4004
de0919f8 40052012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
4006
4007 * mips-tdep.c (mips32_next_pc): Handle JALX.
4008
2f26ef89
YQ
40092012-04-10 Yao Qi <yao@codesourcery.com>
4010
4011 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
4012
2e505b66
YQ
40132012-04-10 Yao Qi <yao@codesourcery.com>
4014
4015 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
4016 and gnulib/m4/gnulib-tool.m4.
4017
0d99eb77
DE
40182012-04-10 Doug Evans <dje@google.com>
4019
4020 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
4021 (load_partial_dies): Clarify comment.
4022 (find_partial_die): Support rereading type units.
4023 Clarify CU handling, if we know offset is in CU, don't search for the
4024 containing CU. Add comment regarding memory waste.
4025
9a82b8ff
L
40262012-04-10 H.J. Lu <hongjiu.lu@intel.com>
4027
4028 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
4029 i386/x32-avx and i386/x32-avx-linux.
4030 (i386/x32-expedite): New.
4031 (i386/x32-linux-expedite): Likewise.
4032 (i386/x32-avx-expedite): Likewise.
4033 (i386/x32-avx-linux-expedite): Likewise.
4034 ($(outdir)/i386/x32.dat): Likewise.
4035 ($(outdir)/i386/x32-linux.dat): Likewise.
4036 ($(outdir)/i386/x32-avx.dat): Likewise.
4037 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
4038
4039 * features/i386/x32-avx-linux.xml: New file.
4040 * features/i386/x32-avx.xml: Likewise.
4041 * features/i386/x32-core.xml: Likewise.
4042 * features/i386/x32-linux.xml: Likewise.
4043 * features/i386/x32.xml: Likewise.
4044
4045 * features/i386/x32-avx-linux.c: New. Generated.
4046 * features/i386/x32-avx.c: Likewise.
4047 * features/i386/x32-linux.c: Likewise.
4048 * features/i386/x32.c: Likewise.
4049 * regformats/i386/x32-avx-linux.dat: Likewise.
4050 * regformats/i386/x32-avx.dat: Likewise.
4051 * regformats/i386/x32-linux.dat: Likewise.
4052 * regformats/i386/x32.dat: Likewise.
4053
ee41036f
TG
40542012-04-10 Tristan Gingold <gingold@adacore.com>
4055
4056 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
4057 code to kill the inferior.
4058
a7aa5b8a
MK
40592012-04-09 Mark Kettenis <kettenis@gnu.org>
4060
4061 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4062 defines.
4063 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4064 defines.
a09130f9 4065 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
4066 (yyvsp): New defines.
4067 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4068 defines.
4069 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4070 defines.
4071 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4072 defines.
4073 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4074 defines.
4075 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4076 defines.
4077
fb57d452
MK
40782012-04-09 Mark Kettenis <kettenis@gnu.org>
4079
a09130f9 4080 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
4081 (sparc64_store_arguments): Fix coding style.
4082
cdc7b32f
MK
40832012-04-07 Mark Kettenis <kettenis@gnu.org>
4084
4085 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
4086 complex floats, adjust some related comments and tighten a related
4087 assertion.
4088 (sparc64_extract_return_value): Handle complex floats.
4089
7adf1e79
DE
40902012-04-07 Doug Evans <dje@google.com>
4091
4092 * dwarf2read.c (load_partial_dies): Change condition to assert.
4093
50f1ae7b
DE
40942012-04-06 Doug Evans <dje@google.com>
4095
4096 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
4097 "mov %rsp,%rbp".
4098
55fa75c3
KB
40992012-04-05 Kevin Buettner <kevinb@redhat.com>
4100
4101 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
4102 fencepost error.
4103 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
4104 (v850_gdbarch_init): Set `num_regs' as appropriate for the
4105 architecture.
4106
40e084e1
KS
41072012-04-05 Keith Seitz <keiths@redhat.com>
4108
4109 * linespec.c (decode_compound): Remove.
4110 (enum offset_relative_sign): New enum.
4111 (struct line_offset): New struct.
4112 (struct linespec): New struct.
4113 (struct linespec_state): Move file_symtabs,
4114 user_filename, and user_function into struct linespec.
4115 Make result an anonymous struct holding vectors of
4116 symbolp and minsym_and_objfile_d.
4117 Add language member.
4118 (enum ls_token_type): New enum.
4119 (linespec_keywords): New array.
4120 (struct ls_token): New struct.
4121 (struct ls_parser): New struct.
4122 (linespec_lexer_lex_number): New function.
4123 (linespec_lexer_lex_keyword): New function.
4124 (is_ada_operator): New function.
4125 (skip_quote_char): New function.
4126 (copy_token_string): New function.
4127 (is_closing_quote_enclosed): New function.
4128 (find_parameter_list_end): New function.
4129 (linespec_lexer_lex_string): New function.
4130 (linespec_lexer_lex_one): New function.
4131 (linespec_lexer_consume_token): New function.
4132 (linespec_lexer_peek_token): New function.
4133 (cplusplus_error): Remove unused function.
4134 (find_methods): Update comment.
4135 (find_toplevel_char): Return const.
4136 (is_objc_method_format): Remove unused function.
4137 (find_toplevel_string): New function.
4138 (is_linespec_boundary): Remove.
4139 (symbol_not_found_error): New function.
4140 (find_method_overload_end): Remove function.
4141 (unexpected_linespec_error): New function.
4142 (keep_name_info): Remove.
4143 (linespec_parse_line_offset): New function.
4144 (linespec_parse_basic): New function.
4145 (canonicalize_linespec): New function.
4146 (decode_line_internal): Remove.
4147 (create_sals_line_offset): New function adapted from
4148 decode_all_digits.
4149 (convert_linespec_to_sals): New function.
4150 (parse_linespec): New function.
4151 (linespec_parser_new): New function.
4152 (linespec_state_destructor): Change parameter type to
4153 struct linespec_state *.
4154 Add language parameter.
4155 Remove freeing of moved members.
4156 (linespec_parser_delete): New function.
4157 (decode_line_full): Use parse_linespec and linespec_parser_new.
4158 (decode_line_1): Likewise.
4159 (decode_indirect): Rename to ...
4160 (linespec_expression_to_pc): ... this and rewrite
4161 to simply find CORE_ADDR, storing this result for later
4162 conversion to SALs.
4163 (locate_first_half): Remove.
4164 (deocde_objc): Add parameter LS.
4165 Initialize new struct collect_info members.
4166 Handle minimal symbols, too.
4167 (decode_compound): Delete.
4168 (lookup_prefix_sym): Rewrite.
4169 (compare_msymbols): New function.
4170 (find_method): Rewrite.
4171 Do not call cplusplus_error.
4172 (symtabs_from_filename): Rewrite.
4173 (collect_function_symbols): Delete.
4174 (find_function_symbols): Rewrite without ARGPTR-style
4175 processing.
4176 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
4177 (decode_dollar): Adapted and renamed to ...
4178 (linespec_parse_variable): ... this.
4179 (find_linespec_symbols): New function.
4180 (decode_label): Adapted and renamed to ...
4181 (find_label_symbols): ... this.
4182 (decode_digits_list_mode): Add and use LS argument.
4183 (decode_digits_ordinary): Likewise.
4184 (collect_symbols): Do not collect SALs, just symbols and msymbols.
4185 If in list mode, allow any symbol class. Otherwise, only
4186 permit LOC_BLOCK symbols.
4187 (minsym_found): Update comments.
4188 (search_minsyms_for_name): Do not convert the matching symbol
4189 into a SAL. Simply push the symbol and objfile into the
4190 result vector.
4191 (decode_variable): Delete. Contents adapted into
4192 find_linespec_symbols.
4193
4194 * cp-support.c (SKIP_SPACE): Remove.
4195 (operator_tokens): Remove unused global.
4196 (cp_validate_operator): Remove.
4197 * cp-support.h (cp_validate_operator): Remove declaration.
4198
a72c8f6a
JK
41992012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4200
4201 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
4202 for TYPE_VPTR_FIELDNO.
4203 * valprint.c (valprint_check_validity): Make it global, move the
4204 function comment ...
4205 * value.h (valprint_check_validity): ... to this new declaration.
4206
cf9bb588
TG
42072012-04-02 Tristan Gingold <gingold@adacore.com>
4208
4209 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
4210 the STATE32 api for i386 state.
4211 (i386_darwin_store_inferior_registers): Likewise.
4212
17092398
TG
42132012-04-02 Tristan Gingold <gingold@adacore.com>
4214
4215 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
4216 SS offset.
4217 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4218 format_string.
4219
ece0061f
TG
42202012-04-02 Tristan Gingold <gingold@adacore.com>
4221
4222 PR gdb/13901
d987a266 4223 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 4224
cf65ecd3
JK
42252012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4226
4227 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
4228
9bc3523d
TT
42292012-03-30 Tom Tromey <tromey@redhat.com>
4230
4231 * python/python.c (gdbpy_decode_line): Move cleanup creation out
4232 of TRY_CATCH. Fix error handling.
4233 * python/py-value.c (convert_value_from_python): Move 'old'
4234 declaration to innermost scope.
4235
b1ed564a
JB
42362012-03-29 Joel Brobecker <brobecker@adacore.com>
4237 Andrey Smirnov <andrew.smirnov@gmail.com>
4238
4239 -Wshadow warning fix.
4240 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
4241 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
4242 Adjust code accordingly.
4243
cb8e9b97
JB
42442012-03-29 Joel Brobecker <brobecker@adacore.com>
4245
4246 * ada-lang.c (symbol_completion_add): Rename parameter
4247 "encoded" into "encoded_p". Ajust code and documentation
4248 accordingly.
4249
c0af1706
JB
42502012-03-29 Joel Brobecker <brobecker@adacore.com>
4251 Andrey Smirnov <andrew.smirnov@gmail.com>
4252
4253 -Wshadow warning fix.
4254 * ada-lang.c (symbol_completion_add): Rename parameter
4255 "wild_match" into wild_match_p. Update code and documentation
4256 accordingly.
4257
6ea35997
JB
42582012-03-29 Joel Brobecker <brobecker@adacore.com>
4259
4260 * ada-lang.c (symbol_completion_match): Rename parameter
4261 "encoded" into "encoded_p". Ajust code and documentation
4262 accordingly.
4263
e701b3c0
JB
42642012-03-29 Joel Brobecker <brobecker@adacore.com>
4265 Andrey Smirnov <andrew.smirnov@gmail.com>
4266
4267 -Wshadow warning fix.
4268 * ada-lang.c (symbol_completion_match): Rename parameter
4269 "wild_match" into "wild_match_p". Adjust code and function
4270 documentation accordingly.
4271
5e2336be
JB
42722012-03-29 Joel Brobecker <brobecker@adacore.com>
4273 Andrey Smirnov <andrew.smirnov@gmail.com>
4274
4275 -Wshadow warning fix.
4276 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
4277 "symbol_info" into "info". Adjust code accordingly.
4278 (ada_lookup_symbol): Likewise.
4279
9f88c959
JB
42802012-03-29 Joel Brobecker <brobecker@adacore.com>
4281
4282 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
4283 of this function's documentation.
4284
82ccd55e
JB
42852012-03-29 Joel Brobecker <brobecker@adacore.com>
4286 Andrey Smirnov <andrew.smirnov@gmail.com>
4287
4288 -Wshadow warning fix.
4289 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
4290 variable into "wild_match_p". Adjust code accordingly.
4291
d0a8ab18
JB
42922012-03-29 Joel Brobecker <brobecker@adacore.com>
4293 Andrey Smirnov <andrew.smirnov@gmail.com>
4294
4295 -Wshadow warning fix.
4296 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
4297 parameter into "wild_match_p". Adjust code accordingly.
4298 Document this parameter in the function description.
4299
48b78332
JB
43002012-03-29 Joel Brobecker <brobecker@adacore.com>
4301 Andrey Smirnov <andrew.smirnov@gmail.com>
4302
4303 -Wshadow warning fix.
4304 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
4305 "wild_match" parameter to "wild_match_p" (-Wshadow).
4306
2e6e0353
JB
43072012-03-29 Joel Brobecker <brobecker@adacore.com>
4308
4309 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4310 in function documentation.
4311
dc4024cd
JB
43122012-03-29 Joel Brobecker <brobecker@adacore.com>
4313 Andrey Smirnov <andrew.smirnov@gmail.com>
4314
4315 -Wshadow warning fix.
4316 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
4317 variable into wild_match_p. Adjust code accordingly.
4318
6c88661c
JB
43192012-03-29 Joel Brobecker <brobecker@adacore.com>
4320 Andrey Smirnov <andrew.smirnov@gmail.com>
4321
4322 * ada-valprint.c (ada_val_print_1): Move the code handling
4323 TYPE_CODE_ENUM inside its own lexical block. Declare
4324 variables len and val there, instead of in the function's
4325 top level block. Avoid declaring deref_val again in a way
4326 that shadows another variable of the same name declared
4327 in one of the up-level blocks. Just re-use the up-level
4328 variable instead.
4329
4e5c77fe
JB
43302012-03-29 Joel Brobecker <brobecker@adacore.com>
4331
4332 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4333 Replace block_found argument by symbol_info. Adjust
4334 implementation accordingly. Add function documentation.
4335 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4336 Fix documentation.
4337 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4338 * ada-exp.y (write_object_renaming): Adjust to new
4339 ada_lookup_encoded_symbol API.
4340
1c0ac8c7
JB
43412012-03-29 Joel Brobecker <brobecker@adacore.com>
4342
4343 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4344 documentation.
4345
2aaed979
KB
43462012-03-28 Rathish C <rathish.c@kpitcummins.com>
4347
4348 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4349 (v850_register_name): Add the mpu and fpu register names.
4350 (v850e_register_name): Add the mpu and fpu register names.
4351 (v850e2_register_name): New function.
a09130f9 4352 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
4353 bfd_mach_v850e2v3.
4354
927fbba6
JB
43552012-03-28 Joel Brobecker <brobecker@adacore.com>
4356
4357 * NEWS: Add entry for Ada varobj support.
4358
d32cafc7
JB
43592012-03-28 Joel Brobecker <brobecker@adacore.com>
4360
4361 * varobj.c (default_value_is_changeable_p): New function,
4362 extracted from varobj_value_is_changeable_p. Add declaration.
4363 (ada_value_is_changeable_p): New function, extracted from
4364 varobj_value_is_changeable_p. Add declaration.
4365 (struct language_specific): New field "value_is_changeable_p".
4366 (languages): Add entries for new field.
4367 (varobj_create): Set language before calling install_new_value.
4368 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4369 "value_is_changeable_p" language callback.
4370
181875a4
JB
43712012-03-28 Joel Brobecker <brobecker@adacore.com>
4372
4373 * ada-varobj.h, ada-varobj.c: New files.
4374 * Makefile.in (SFILES): Add ada-varobj.c.
4375 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4376 (COMMON_OBS): Add ada-varobj.o.
4377
7a290c40
JB
43782012-03-28 Joel Brobecker <brobecker@adacore.com>
4379
4380 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4381 (struct language_specific): New field "value_has_mutated".
4382 (languages): Set field "value_has_mutated" in each entry of array.
4383 (varobj_value_has_mutated): New function.
4384 (varobj_udpdate): Add handling of type mutation.
4385 (value_of_root): Add handling of type mutation.
4386 (ada_value_has_mutated): New function.
4387
ca9b8b9c
PA
43882012-03-28 Pedro Alves <palves@redhat.com>
4389
4390 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4391 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4392
cc0265cd
TT
43932012-03-28 Tom Tromey <tromey@redhat.com>
4394
4395 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4396 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4397 before returning.
4398
3ad2ec6f
TT
43992012-03-28 Tom Tromey <tromey@redhat.com>
4400
4401 * .dir-locals.el: New file.
4402
4a6510ba
PA
44032012-03-28 Pedro Alves <palves@redhat.com>
4404
4405 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4406
5a75128f
JB
44072012-03-28 Joel Brobecker <brobecker@adacore.com>
4408
4409 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4410 handling for r0.
4411
f99d8bf4
PA
44122012-03-27 Pedro Alves <palves@redhat.com>
4413
4414 Eliminate struct ui_stream.
4415
4416 * ui-out.h (struct ui_stream): Delete.
4417 (ui_out_field_stream): Adjust prototype.
4418 (ui_out_stream_new, ui_out_stream_delete)
4419 (make_cleanup_ui_out_stream_delete): Delete declarations.
4420 * ui-out.c (ui_out_field_stream): Change prototype to take a
4421 ui_file instead of a ui_stream. Adjust.
4422 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4423 (make_cleanup_ui_out_stream_delete): Delete.
4424 * breakpoint.c (print_breakpoint_location)
4425 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4426 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4427 * disasm.c (dump_insns): Ditto.
4428 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4429 prototype.
4430 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4431 ui_stream/ui_out_stream_new.
4432 * infcmd.c (print_return_value): Ditto.
4433 * osdata.c (info_osdata_command): Don't allocate a local
4434 ui_stream.
4435 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4436 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4437 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4438 allocate a local ui_stream.
4439 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4440 instead of ui_stream/ui_out_stream_new.
4441 (list_args_or_locals): Don't allocate a local ui_stream.
4442 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4443 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4444 ui_stream/ui_out_stream_new.
4445 * cli/cli-setshow.c (do_setshow_command): Ditto.
4446
6350a066 44472012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 4448
6350a066
PA
4449 * arm-linux-tdep.c (arm_linux_init_abi): Call
4450 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4451 * arm-tdep.c (arm_process_record): New function.
4452 (deallocate_reg_mem): New function.
4453 (decode_insn): New function.
4454 (thumb_record_branch): New function.
4455 (thumb_record_ldm_stm_swi(): New function.
4456 (thumb_record_misc): New function.
4457 (thumb_record_ld_st_stack): New function.
4458 (thumb_record_ld_st_imm_offset): New function.
4459 (thumb_record_ld_st_reg_offset(): New function.
4460 (thumb_record_add_sub_cmp_mov): New function.
4461 (thumb_record_shift_add_sub): New function.
4462 (arm_record_coproc_data_proc): New function.
4463 (arm_record_coproc): New function.
4464 (arm_record_b_bl): New function.
4465 (arm_record_ld_st_multiple): New function.
4466 (arm_record_ld_st_reg_offset): New function.
4467 (arm_record_ld_st_imm_offset): New function.
4468 (arm_record_data_proc_imm): New function.
4469 (arm_record_data_proc_misc_ld_str): New function.
4470 (arm_record_extension_space): New function.
4471 (arm_record_strx): New function.
4472 (sbo_sbz): New function.
4473 (struct insn_decode_record): New structure for arm insn record.
4474 (REG_ALLOC): New macro for reg allocations.
4475 (MEM_ALLOC): New macro for memory allocations.
4476 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 4477
89e028e2
AS
44782012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4479
4480 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4481 (store_register): Likewise.
4482
6350a066 44832012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 4484
6350a066 4485 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 4486
5b43fab2
JK
44872012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4488
4489 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4490 Describe also the option "auto".
4491
b5453b95
RH
44922012-03-22 Richard Henderson <rth@redhat.com>
4493
4494 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4495 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4496
227ee7fc
RH
44972012-03-22 Richard Henderson <rth@redhat.com>
4498
4499 * jit.c (jit_read_code_entry): Compute alignment and offset of
4500 int64_t member before computing entry_size.
4501
7b282c5a
SCR
45022012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4503
4504 Python scripting: Add new method Value.referenced_value to
4505 gdb.Value which can dereference pointer as well as reference
4506 values.
4507 * NEWS: Add entry under 'Python scripting' about the new method
4508 Value.referenced_value on gdb.Value objects.
4509 * python/py-value.c (valpy_referenced_value): New function
4510 defining a new method on gdb.Value objects which can dereference
4511 pointer and reference values.
4512
0c83539f
SCR
45132012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4514
4515 * MAINTAINERS (Write After Approval): Add myself to the list.
4516
7ccffd7c
KB
45172012-03-21 Kevin Buettner <kevinb@redhat.com>
4518
4519 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4520 in addition to "main".
4521
bd0b9f9e
JB
45222012-03-21 Joel Brobecker <brobecker@adacore.com>
4523
4524 * expression.h (op_name): Add declaration.
4525 * expprint.c (op_name): Remove declaration. Make non-static.
4526 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4527
a5362b9a
TS
45282012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4529
4530 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4531 of struct siginfo.
4532 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4533 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4534 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4535 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4536 (linux_nat_get_siginfo): Likewise.
4537 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4538 (linux_nat_get_siginfo): Likewise.
4539 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4540 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4541 * procfs.c (gdb_siginfo_t): Likewise.
4542
adcadaab
MF
45432012-03-21 Mike Frysinger <vapier@gentoo.org>
4544
4545 * .gitignore: Ignore more files.
4546
e278ad5b
PA
45472012-03-20 Pedro Alves <palves@redhat.com>
4548
4549 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4550 returns.
4551
741e63d7
YQ
45522012-03-20 Yao Qi <yao@codesourcery.com>
4553
4554 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4555 comment.
4556
b64f50a1
JK
45572012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4558
4559 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4560 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4561 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4562 sect_offset.
4563 * dwarf2expr.h (cu_offset, sect_offset): New types.
4564 (struct dwarf_expr_context_funcs) <dwarf_call>
4565 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4566 sect_offset.
4567 (struct dwarf_expr_context) <len>: Improve the comment.
4568 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4569 cu_offset and sect_offset.
4570 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4571 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4572 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4573 * dwarf2loc.h: Include dwarf2expr.h.
4574 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4575 and sect_offset.
4576 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4577 Improve the comment.
4578 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4579 (struct signatured_type, struct line_header, struct partial_die_info)
4580 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4581 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4582 (get_die_type_at_offset, create_cus_from_index)
4583 (create_signatured_type_table_from_index, dw2_get_file_names)
4584 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4585 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4586 (create_debug_types_hash_table, process_psymtab_comp_unit)
4587 (load_partial_comp_unit, create_all_comp_units)
4588 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4589 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4590 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4591 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4592 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4593 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4594 (find_partial_die, read_attribute_value, lookup_die_type)
4595 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4596 (is_ref_attr): New function comment.
4597 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4598 Use cu_offset and sect_offset.
4599 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4600 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4601 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4602 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4603 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4604 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4605 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4606 sect_offset.
4607
e97a38f7
JK
46082012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4609
4610 Code cleanup.
4611 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4612 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4613 with xfree.
4614 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4615
8320cc4f
JK
46162012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4617
4618 * NEWS: Describe new options --init-command=FILE, -ix and
4619 --init-eval-command=COMMAND, -iex.
4620 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4621 CMDARG_INIT_COMMAND.
4622 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4623 "init-command", "init-eval-command", "ix" and "iex" to the variable
4624 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4625 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4626 (print_gdb_help): Describe --init-command=FILE, -ix and
4627 --init-eval-command=COMMAND, -iex.
4628
26743505
JK
46292012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 Code cleanup.
4632 * main.c (struct cmdarg): Move it here from main. Add more comments.
4633 (cmdarg_s, VEC (cmdarg_s)): New.
4634 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4635 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4636 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4637 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4638 of CMDARG.
4639
5ff5c7b4
TT
46402012-03-19 Tom Tromey <tromey@redhat.com>
4641
4642 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4643
ab260dad
JK
46442012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4645
4646 PR symtab/13777
4647 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4648 GCC >=4.5.
4649
c366c1f0
TT
46502012-03-16 Chris January <chris.january@allinea.com>
4651
4652 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4653 of clear.
4654
e16edb45
TT
46552012-03-16 Chris January <chris.january@allinea.com>
4656
4657 * source.c (add_path): Use memmove instead of strcpy because the
4658 strings overlap.
4659
53ba8333
JB
46602012-03-16 Joel Brobecker <brobecker@adacore.com>
4661
4662 * value.h (set_value_parent): Add declaration.
4663 * value.c (set_value_parent): New function.
4664 (value_address): If VALUE->PARENT is not NULL, then use it as
4665 the base address instead of VALUE->LOCATION.address.
4666 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4667 the same as OBJ's address. Adjust V's offset accordingly.
4668 Set V's parent.
4669
481860b3
GB
46702012-03-16 Gary Benson <gbenson@redhat.com>
4671
4672 PR breakpoints/10738
4673 * dwarf2read.c (use_deprecated_index_sections): New global.
4674 (struct partial_die_info): New member may_be_inlined.
4675 (read_partial_die): Set may_be_inlined where appropriate.
4676 (add_partial_subprogram): Add partial symbols for partial
4677 DIEs that may be inlined.
4678 (new_symbol_full): Add inlined subroutines to the current
4679 scope.
4680 (write_psymtabs_to_index): Bump version number.
4681 (dwarf2_read_index): Read only version 6 indices unless
4682 use_deprecated_index_sections is set.
4683 * linespec.c (symbol_and_data_callback): New structure.
4684 (iterate_inline_only): New function.
4685 (iterate_over_all_matching_symtabs): New argument
4686 "include_inline". If nonzero, also call the callback for
4687 symbols representing inlined subroutines.
4688 (lookup_prefix_sym): Pass extra argument to the above.
4689 (find_function_symbols): Likewise.
4690 (add_matching_symbols_to_info): Likewise.
4691 * NEWS: Mention that GDB can now set breakpoints on inlined
4692 functions.
4693
d0e7e15a
PM
46942012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4695
4696 * p-typeprint.c (pascal_type_print_method_args):
4697 Fix display of parameter of methods.
4698
3d354654
PM
46992012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4700
4701 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4702 Add missing prototype.
4703
cafe75b0
JK
47042012-03-16 Yao Qi <yao@codesourcery.com>
4705 Jan Kratochvil <jan.kratochvil@redhat.com>
4706
4707 Fix false compilation warning.
4708 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4709
25f8c692
JL
47102012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4711 Pedro Alves <pedro@codesourcery.com>
4712
4713 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4714 (arm_register_g_packet_guesses): New function.
4715 (arm_gdbarch_init): Don't force a target description with
4716 registers when the executable is detected as M-profile. Instead
4717 set gdbarch->tdep->is_m. Register `g' packet guesses.
4718 (_initialize_arm_tdep): Initialize the new target description.
4719 * features/arm-with-m-fpa-layout.xml: New description.
4720 * features/arm-with-m-fpa-layout.c: New, generated.
4721
35c63cd8
JB
47222012-03-15 Joel Brobecker <brobecker@adacore.com>
4723
4724 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4725 Update function description.
4726 (insert_bp_location): Do not wipe bl->target_info out.
4727 * mem-break.c: #include "gdb_string.h".
4728 (default_memory_insert_breakpoint): Do not call target_read_memory
4729 with a pointer to the breakpoint's shadow_contents buffer. Use
4730 a local buffer instead.
4731 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4732
57651221
TT
47332012-03-15 Tom Tromey <tromey@redhat.com>
4734
4735 * NEWS: Mention "info vtbl", not "info vtable".
4736 * cp-support.c (info_vtbl_command): Fix comment.
4737 (_initialize_cp_support): Fix text.
4738
410528f0
TT
47392012-03-15 Tom Tromey <tromey@redhat.com>
4740
4741 * cp-valprint.c (cp_print_value_fields): Use
4742 print_function_pointer_address for vtable slot.
4743
c4aeac85
TT
47442012-03-15 Tom Tromey <tromey@redhat.com>
4745
4746 * gnu-v3-abi.c (struct value_and_voffset): New.
4747 (hash_value_and_voffset, eq_value_and_voffset)
4748 (compare_value_and_voffset, compute_vtable_size)
4749 (print_one_vtable, gnuv3_print_vtable): New functions.
4750 (init_gnuv3_ops): Initialize 'print_vtable' field.
4751 * cp-support.c (info_vtbl_command): New function.
4752 (_initialize_cp_support): Add "info vtbl".
4753 * cp-abi.h (cplus_print_vtable): Declare.
4754 (struct cp_abi_ops) <print_vtable>: New field.
4755 * cp-abi.c (cplus_print_vtable): New function.
4756 * NEWS: Update.
4757
95cbceff
TT
47582012-03-15 Tom Tromey <tromey@redhat.com>
4759
4760 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4761 iterate_over_symbols.
4762
589b4a32
DE
47632012-03-14 Doug Evans <dje@google.com>
4764
4765 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4766 DW_OP_GNU_parameter_ref.
4767
e837f12a
JK
47682012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4769
4770 Fix double prompt of 'interpreter-exec mi'.
4771 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4772 (mi_interpreter_resume): use it.
4773 (mi_execute_command_input_handler): New function.
4774 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4775 mi_execute_command_input_handler.
4776
ff1e4526 47772012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
4778
4779 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4780 prototype.
4781 (darwin_debug_port_info): Make static.
4782 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4783 * machoread.c (_initialize_machoread): Add prototype.
4784 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4785 (i386_darwin_set_control, i386_darwin_get_control)
4786 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4787 i386_darwin_get_status, i386_darwin_get_control):
4788 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4789
d8a5d6ee
JB
47902012-03-13 Joel Brobecker <brobecker@adacore.com>
4791
4792 * ax-gdb.c (gen_usual_unary): Remove special handling of
4793 enum and bool types.
4794
af381b8c
JB
47952012-03-13 Joel Brobecker <brobecker@adacore.com>
4796
4797 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4798
786c562f
JB
47992012-03-13 Joel Brobecker <brobecker@adacore.com>
4800
4801 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4802
e3ebf1bb
JB
48032012-03-13 Chris January <chris.january@allinea.com>
4804
4805 * aix-thread.c (fill_sprs): Store the floating point registers
4806 at the correct offsets into vals.
4807
c5b7e1cb
DE
48082012-03-13 Doug Evans <dje@google.com>
4809
16899756
DE
4810 * NEWS: Mention symbol-reloading has been deleted.
4811 * symfile.c (symbol_reloading): Delete.
4812 (show_symbol_reloading): Delete.
4813 (_initialize_symfile): Delete set/show symbol-reloading.
4814
c5b7e1cb
DE
4815 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4816 read_in_chain until we have successfully read it in.
4817 (load_full_comp_unit): Ditto.
4818 (read_signatured_type): Add comment.
4819
46cb6474
JB
48202012-03-13 Chris January <chris.january@allinea.com>
4821
4822 * stabsread.c (fix_common_block): Change type of valu argument
4823 to CORE_ADDR.
4824
76219d77
JB
48252012-03-13 Chris January <chris.january@allinea.com>
4826
4827 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4828 instruction.
4829
87b0bb13
JK
48302012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4831
4832 * common/linux-procfs.c (linux_proc_get_int): New, from
4833 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4834 field.
4835 (linux_proc_get_tgid): Only call linux_proc_get_int.
4836 (linux_proc_get_tracerpid): New.
4837 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4838 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4839 linux_proc_pid_has_state.
4840 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4841 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4842 (linux_ptrace_attach_warnings): New.
4843 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4844 New declaration.
4845 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4846 (linux_nat_attach): New variables ex, buffer, message and message_s.
4847 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4848
5f572dec
JK
48492012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4850
4851 * Makefile.in (linux-ptrace.o): New.
4852 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4853 from linux-nat.c.
4854 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4855 * common/linux-ptrace.c: New file.
4856 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4857 * config/arm/linux.mh: Likewise.
4858 * config/i386/linux.mh: Likewise.
4859 * config/i386/linux64.mh: Likewise.
4860 * config/ia64/linux.mh: Likewise.
4861 * config/m32r/linux.mh: Likewise.
4862 * config/m68k/linux.mh: Likewise.
4863 * config/mips/linux.mh: Likewise.
4864 * config/pa/linux.mh: Likewise.
4865 * config/powerpc/linux.mh: Likewise.
4866 * config/powerpc/ppc64-linux.mh: Likewise.
4867 * config/powerpc/spu-linux.mh: Likewise.
4868 * config/s390/s390.mh: Likewise.
4869 * config/sparc/linux.mh: Likewise.
4870 * config/sparc/linux64.mh: Likewise.
4871 * config/xtensa/linux.mh: Likewise.
4872 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4873 common/linux-procfs.c.
4874 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4875
44f238bb
PA
48762012-03-13 Hui Zhu <teawater@gmail.com>
4877 Pedro Alves <palves@redhat.com>
4878
4879 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4880 CREATE_BREAKPOINT_FLAGS_INSERTED.
4881 (create_breakpoint_sal, create_breakpoints_sal)
4882 (base_breakpoint_create_breakpoints_sal)
4883 (tracepoint_create_breakpoints_sal)
4884 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4885 down.
4886 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4887 (ftrace_command, strace_command): Adjust.
4888 (create_tracepoint_from_upload): Pass
4889 CREATE_BREAKPOINT_FLAGS_INSERTED.
4890 * breakpoint.h (enum breakpoint_create_flags): New.
4891 (create_breakpoint): New flags parameter.
4892 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4893 * python/py-breakpoint.c (bppy_init): Adjust.
4894 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4895 * spu-tdep.c (spu_catch_start): Adjust.
4896
1e51243a
PA
48972012-03-13 Pedro Alves <palves@redhat.com>
4898 Hui Zhu <teawater@gmail.com>
4899 Yao Qi <yao@codesourcery.com>
4900
4901 * remote.c (struct remote_state): New field `starting_up'.
4902 (remote_start_remote): Set and clear it.
4903 (remote_can_download_tracepoint): If starting up, return false.
4904
fa3064dd
YQ
49052012-03-13 Yao Qi <yao@codesourcery.com>
4906
4907 * inferior.h (struct inferior): Remove fields any_syscall_count,
4908 syscalls_counts and total_syscalls_count. Move them to new
4909 struct catch_syscall_inferior_data in breakpoint.c.
4910 * breakpoint.c: Call DEF_VEC_I(int).
4911 (struct catch_syscall_inferior_data): New.
4912 (get_catch_syscall_inferior_data): New.
4913 (catch_syscall_inferior_data_cleanup): New.
4914 (insert_catch_syscall): Update to access data in
4915 struct catch_syscall_inferior_data.
4916 (insert_catch_syscall): Likewise.
4917 (remove_catch_syscall): Likewise.
4918 (remove_catch_syscall): Likewise.
4919 (is_syscall_catchpoint_enabled): Likewise.
4920 (add_catch_command): Likewise.
4921 (_initialize_breakpoint): Register cleanup.
4922 * breakpoint.h: Removed DEF_VEC_I(int).
4923 * dwarf2loc.c: Call DEF_VEC_I(int).
4924 * mi/mi-main.c: Likewise.
4925
460fac3c
MK
49262012-03-12 Mark Kettenis <kettenis@gnu.org>
4927
4928 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4929
e1aca11e
JB
49302012-03-12 Chris January <chris.january@allinea.com>
4931
4932 * aix-thread.c (_initialize_aix_thread): Add prototype.
4933 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4934 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4935
649c7061
JB
49362012-03-12 Joel Brobecker <brobecker@adacore.com>
4937
4938 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4939 include of "amd64-nat.h".
4940
0b49e518
TT
49412012-03-12 Tom Tromey <tromey@redhat.com>
4942
4943 * buildsym.c (record_pending_block): Now static.
4944 * buildsym.h: (record_pending_block): Remove.
4945
fd24fa94
AT
49462012-03-12 Andreas Tobler <andreast@fgznet.ch>
4947
4948 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4949
ba919b58
TT
49502012-03-09 Tom Tromey <tromey@redhat.com>
4951
4952 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4953 producer_is_gxx_lt_4_6>: New fields.
4954 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4955
a48e046c
TT
49562012-03-09 Tom Tromey <tromey@redhat.com>
4957
4958 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4959
6f5e9362
JB
49602012-03-08 Joel Brobecker <brobecker@adacore.com>
4961
4962 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4963 prototype.
4964
8d037db9
JB
49652012-03-08 Joel Brobecker <brobecker@adacore.com>
4966
4967 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4968
4e841acf
JK
49692012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4970
4971 Fix -Wmissing-prototypes build.
4972 * arm-linux-nat.c (get_thread_id): Make it static.
4973 * xtensa-linux-nat.c (get_thread_id): Likewise.
4974
c6030312
JB
49752012-03-08 Joel Brobecker <brobecker@adacore.com>
4976
4977 * server.c (process_point_options): If a conditional expression
4978 is found, only print a message if remote_debug is nonzero.
4979
52323be9
LM
49802012-03-08 Luis Machado <lgustavo@codesourcery.com>
4981
4982 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4983 of internal error for unknown/unsupported types.
4984
7fe25d9b
JK
49852012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4986
4987 Fix CU relative vs. absolute DIE offsets.
4988 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4989 offset to offset_in_cu.
4990 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4991 TYPE_OFFSET.
4992 (dwarf2_fetch_die_location_block): Rename parameter offset to
4993 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4994
05e7c244
JK
49952012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4996
4997 * libunwind-frame.c: Rename to ...
4998 * ia64-libunwind-tdep.c: ... here.
4999 * libunwind-frame.h: Rename to ...
5000 * ia64-libunwind-tdep.h: ... here.
5001 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
5002 ia64-libunwind-tdep.h.
5003 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
5004 * README (--with-libunwind): Rename to ...
5005 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
5006 * config.in: Regenerate.
5007 * configure: Regenerate.
5008 * configure.ac: New option --with-libunwind-ia64, make the
5009 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
5010 Remove AC_DEFINE for HAVE_LIBUNWIND.
5011 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
5012 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
5013 Rename libunwind-frame in the general comment.
5014 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
5015 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
5016 Move forward declarations inside #ifndef. Rename libunwind-frame in
5017 the general comment.
5018 * ia64-tdep.c: Rename libunwind-frame.h #include to
5019 ia64-libunwind-tdep.h.
5020 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
5021 (ia64_libunwind_descr): Rename libunwind-frame to
5022 ia64-libunwind-tdep in these function comments.
5023 * ia64-tdep.h: Rename libunwind-frame.h #include to
5024 ia64-libunwind-tdep.h.
5025 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
5026 ia64-libunwind-tdep in that data comment.
5027
3755cbfd
JK
50282012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5029
5030 * libunwind-frame.h (struct frame_unwind): New declaration.
5031
d1cda5d9
JB
50322012-03-08 Joel Brobecker <brobecker@adacore.com>
5033
5034 * breakpoint.c (_initialize_breakpoint): Fix error in help of
5035 "set breakpoint condition-evaluation" command.
5036
a0ba0aa2
TG
50372012-03-08 Tristan Gingold <gingold@adacore.com>
5038
5039 * sparc-stub.c: Move to stubs/
5040 * sh-stub.c: Likewise.
5041 * m68k-stub.c: Likewise.
5042 * m32r-stub.c: Likewise.
5043 * i386-stub.c: Likewise.
5044
7b8b6d6d
AS
50452012-03-08 Andreas Schwab <schwab@linux-m68k.org>
5046
007cafee
AS
5047 * m68klinux-tdep.c (m68k_linux_init_abi): Register
5048 linux_get_siginfo_type.
5049
7b8b6d6d
AS
5050 * m68klinux-nat.c: Include "gdb_proc_service.h".
5051 (PTRACE_GET_THREAD_AREA): Define.
5052 (ps_get_thread_area): New function.
5053
bba74b36
YQ
50542012-03-08 Yao Qi <yao@codesourcery.com>
5055
5056 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
5057 `xsnprintf'.
5058 (remote_query_attached): Likewise.
5059 (remote_static_tracepoint_marker_at): Likewise.
5060 (remote_set_permissions): Likewise.
5061 (remote_detach_1, extended_remote_attach_1): Likewise.
5062 (send_g_packet, remote_vkill): Likewise.
5063 (extended_remote_disable_randomization): Likewise.
5064 (remote_add_target_side_condition): Likewise.
5065 (remote_insert_breakpoint): Likewise.
5066 (remote_remove_breakpoint): Likewise.
5067 (remote_insert_watchpoint): Likewise.
5068 (remote_remove_watchpoint): Likewise.
5069 (remote_insert_hw_breakpoint): Likewise.
5070 (remote_insert_hw_breakpoint): Likewise.
5071 (remote_remove_hw_breakpoint): Likewise.
5072 (remote_download_command_source): Likewise.
5073 (remote_download_tracepoint): Likewise.
5074 (remote_download_trace_state_variable): Likewise.
5075 (remote_disable_tracepoint): Likewise.
5076 (remote_trace_set_readonly_regions): Likewise.
5077 (remote_get_tracepoint_status): Likewise.
5078 (remote_trace_find): Likewise.
5079 (remote_get_trace_state_variable_value): Likewise.
5080 (remote_set_disconnected_tracing): Likewise.
5081 (remote_set_circular_trace_buffer): Likewise.
5082 (remote_get_min_fast_tracepoint_insn_len): Likewise.
5083 (remote_use_agent): Likewise.
5084 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
5085 Update callers.
5086
9b224c5e
PA
50872012-03-07 Pedro Alves <palves@redhat.com>
5088
5089 * NEWS: Mention QProgramSignals.
5090 * inferior.h (update_signals_program_target): Declare.
5091 * infrun.c: (update_signals_program_target): New.
5092 (handle_command): Update the target of the new program signals
5093 array changes.
5094 * remote.c (PACKET_QProgramSignals): New enum.
5095 (last_program_signals_packet): New global.
5096 (remote_program_signals): New.
5097 (remote_start_remote): Update the target with the program signals
5098 list.
5099 (remote_protocol_features): Add entry for QPassSignals.
5100 (remote_open_1): Free anc clear last_program_signals_packet.
5101 (init_remote_ops): Install remote_program_signals.
5102 * target.c (update_current_target): Adjust.
5103 (target_program_signals): New.
5104 * target.h (struct target_ops) <to_program_signals>: New field.
5105 (target_program_signals): Declare.
5106
74c48cbb
PA
51072012-03-07 Pedro Alves <palves@redhat.com>
5108
5109 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
5110 extensions.
5111
0c13fc49
AS
51122012-03-07 Andreas Schwab <schwab@linux-m68k.org>
5113
5114 * m68klinux-nat.c (getregs_supplies): Make static.
5115 (getfpregs_supplies): Likewise.
5116 (have_ptrace_getregs): Likewise.
5117
1281d2a3
JB
51182012-03-06 Joel Brobecker <brobecker@adacore.com>
5119
5120 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
5121 in call to get_die_type_at_offset.
5122
2b03b41d
SS
51232012-03-06 Stan Shebs <stan@codesourcery.com>
5124
5125 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
5126 * mi/mi-cmd-disas.c: Ditto.
5127 * mi/mi-cmd-env.c: Ditto.
5128 * mi/mi-cmd-file.c: Ditto.
5129 * mi/mi-cmd-stack.c: Ditto.
5130 * mi/mi-cmd-target.c: Ditto.
5131 * mi/mi-cmd-var.c: Ditto.
5132 * mi/mi-cmds.c: Ditto.
5133 * mi/mi-cmds.h: Ditto.
5134 * mi/mi-console.c: Ditto.
5135 * mi/mi-getopt.c: Ditto.
5136 * mi/mi-getopt.h: Ditto.
5137 * mi/mi-interp.c: Ditto.
5138 * mi/mi-main.c: Ditto.
5139 * mi/mi-out.c: Ditto.
5140 * mi/mi-parse.c: Ditto.
5141 * mi/mi-parse.h: Ditto.
5142 * mi/mi-symbol-cmds.c: Ditto.
5143
5144 * mi/mi-getopt.h: Move mi_opt struct up.
5145 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
5146 return.
5147 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
5148
c988ad87
TT
51492012-03-06 Tom Tromey <tromey@redhat.com>
5150
5151 * proc-service.c (ps_pglobal_lookup): Set the current program
5152 space.
5153
1b7c1b10
PA
51542012-03-06 Pedro Alves <palves@redhat.com>
5155
5156 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
5157
3c182069
JB
51582012-03-05 Joel Brobecker <brobecker@adacore.com>
5159
5160 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
5161
2e794194
JK
51622012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5163
5164 Code cleanup.
5165 * common/linux-osdata.c (linux_common_core_of_thread): New function
5166 comment.
5167 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
5168 call by linux_common_core_of_thread.
5169 (linux_nat_core_of_thread_1): Remove.
5170 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
5171 * linux-thread-db.c: Include linux-osdata.h.
5172 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
5173 linux_common_core_of_thread.
5174
9f9f1f31
TT
51752012-03-05 Tom Tromey <tromey@redhat.com>
5176
5177 * value.c (value_primitive_field): Don't fetch contents for
5178 non-virtual bases.
5179
b7b189f3
TT
51802012-03-05 Tom Tromey <tromey@redhat.com>
5181
5182 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
5183
05b8a789 51842012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 5185
5538f557
JB
5186 * s390-nat.c: Include "gregset.h".
5187
75528772
JK
51882012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5189
5190 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
5191 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
5192 (libunwind_load): New variable so_error, use it for dlerror. Try to
5193 load also LIBUNWIND_SO_7.
5194
275418ae
PA
51952012-03-05 Pedro Alves <palves@redhat.com>
5196
5197 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
5198 is not NULL, and remove resulting dead code.
5199
5cbb9812
TS
52002012-03-05 Thomas Schwinge <thomas@codesourcery.com>
5201
5202 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
5203 prologue to sh_analyze_prologue.
5204 (sh_analyze_prologue): Make better use of such an upper limit, and
5205 generally be more cautious about accessing memory.
5206
541515ad
TT
52072012-03-05 Tom Tromey <tromey@redhat.com>
5208
5209 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
5210 _initialize_ia64_hpux_tdep.
5211
b4d36fb8
PA
52122012-03-05 Pedro Alves <palves@redhat.com>
5213
24490249
PA
5214 PR gdb/13766
5215
b4d36fb8
PA
5216 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
5217 the register state is clear, supply explicit zero, instead of
5218 marking the register unavailable.
5219
60c9a3c0
TG
52202012-03-05 Tristan Gingold <gingold@adacore.com>
5221
5222 * NEWS: Mention OpenVMS ia64 new target.
5223
696759ad
TG
52242012-03-05 Tristan Gingold <gingold@adacore.com>
5225
5226 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
5227 (ia64_unw_accessors, ia64_unw_rse_accessors)
5228 (ia64_libunwind_descr): Declare.
5229 * ia64-vms-tdep.c: New file.
5230 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
5231 (ia64_libunwind_descr): Make them public.
5232 * configure.tgt: Add ia64-*-*vms*.
5233 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
5234 (ALLDEPFILES): Add ia64-vms-tdep.c
5235
34864976
TG
52362012-03-05 Tristan Gingold <gingold@adacore.com>
5237
169081d0
TG
5238 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
5239 * remote.c (PACKET_qXfer_uib): New enum value.
5240 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
5241 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
5242 (_initialize_remote): Call add_packet_config_cmd for
5243 xfer:uib packet.
5244
52452012-03-05 Tristan Gingold <gingold@adacore.com>
5246
5247 * osabi.c (gdb_osabi_names): Add OpenVMS.
5248 (generic_elf_osabi_sniffer): Likewise.
5249 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 5250
6597b100
JK
52512012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5252
5253 Removed unused code.
5254 * libunwind-frame.c (libunwind_frame_unwind)
5255 (libunwind_frame_base_address): Remove.
5256 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
5257
87399aa1
YQ
52582012-03-04 Yao Qi <yao@codesourcery.com>
5259
5260 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
5261 remove trailing new line.
5262 (agent_run_command, agent_run_command): Add _ markup.
5263 (agent_capability_check): Likewise.
5264
abf1152a
JK
52652012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5266
5267 * breakpoint.c (set_condition_evaluation_mode): Set
5268 CONDITION_EVALUATION_MODE unconditionally.
5269
5808517f
YQ
52702012-03-03 Yao Qi <yao@codesourcery.com>
5271
5272 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
5273 * common/agent.h: Update declaration.
5274 * inf-child.c (inf_child_use_agent): New.
5275 (inf_child_can_use_agent): New.
5276 (inf_child_target): Initialize fields `to_use_agent'
5277 and `to_can_use_agent'.
5278 * agent.c (agent_new_objfile): New.
89b7509a 5279 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
5280 observer.
5281
5282 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5283 New.
89b7509a 5284 (linux_target_install_ops): Initialize field
5808517f
YQ
5285 `to_static_tracepoint_markers_by_strid'.
5286 * remote.c (free_current_marker): Move it to ...
5287 * tracepoint.c (free_current_marker): ... here. New.
5288 (cleanup_target_stop): New.
5289 * tracepoint.h: Declare free_current_marker.
5290 * NEWS: Add one entry about `info static-tracepoint-marker'.
5291
58b4daa5
YQ
52922012-03-03 Yao Qi <yao@codesourcery.com>
5293
5294 * common/agent.c (agent_loaded_p): New.
89b7509a 5295 (agent_look_up_symbols): New global.
58b4daa5
YQ
5296 * common/agent.h: Declare agent_loaded_p.
5297
8ffcbaaf
YQ
52982012-03-03 Yao Qi <yao@codesourcery.com>
5299
5300 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
5301 (agent_capability_check, agent_capability_invalidate): New.
5302 (symbol_list): New array element.
5303 * common/agent.h (enum agent_capa): New.
5304 * target.c (target_pre_inferior): Call agent_capability_invalidate.
5305
d1feda86
YQ
53062012-03-03 Yao Qi <yao@codesourcery.com>
5307
5308 * target.h (struct target_ops) <to_use_agent>: New field.
5309 (struct target_ops) <to_can_use_agent>: New field.
5310 (target_use_agent, target_can_use_agent): New macro.
5311 * target.c (update_current_target): Update.
5312 * remote.c: New enum `PACKET_QAgent'.
5313 (remote_protocol_features): Add a new element.
5314 (remote_use_agent, remote_can_use_agent): New.
5315 (init_remote_ops): Initialize field `can_use_agent' with
5316 remote_can_use_agent. Intiailize field `use_agent' with
5317 remote_use_agent.
5318 * common/agent.c (use_agent): New global.
5319 * common/agent.h: Declare it.
5320 * tracepoint.c (info_static_tracepoint_markers_command): Add
5321 comment.
5322 * Makefile.in (SFILES): Add common/agent.c and agent.c.
5323 (COMMON_OBS): Add common/agent.o and agent.o
5324 (common-agent.o): New rule.
5325 * agent.c: New.
5326
2fa291ac
YQ
53272012-03-03 Yao Qi <yao@codesourcery.com>
5328
5329 * common/agent.c: New.
5330 * common/agent.h: New.
5331 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5332 AC_CHECK_HEADERS.
5333 * configure, configh.in: Regenerated.
5334
9fc05685
KB
53352012-03-02 Kevin Buettner <kevinb@redhat.com>
5336
5337 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5338 unless it exists for this architecture.
5339
a5ee536b
JB
53402012-03-02 Joel Brobecker <brobecker@adacore.com>
5341
5342 * language.h (struct language_defn): New "method" la_read_var_value.
5343 * findvar.c: #include "language.h".
5344 (default_read_var_value): Renames read_var_value. Rewrite
5345 function description.
5346 (read_var_value): New function.
5347 * value.h (default_read_var_value): Add prototype.
5348 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5349 New functions.
5350 (ada_language_defn): Add entry for la_read_var_value.
5351 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5352 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5353 language_defn structures to add entry for new la_read_var_value
5354 field.
5355
f59f708a
PA
53562012-03-02 Tom Tromey <tromey@redhat.com>
5357 Pedro Alves <palves@redhat.com>
5358
5359 PR breakpoints/13776:
5360 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5361 breakpoints.
5362 (delete_longjmp_breakpoint_at_next_stop): New.
5363 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5364 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5365 before deleting the inferior. Add comments.
5366 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5367 breakpoints immediately, but only on next stop. Move that code
5368 next to where we mark other breakpoints for deletion.
5369
44099a67
JB
53702012-03-02 Joel Brobecker <brobecker@adacore.com>
5371
5372 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5373 marker.
5374 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5375 violation.
5376
2a2ef594
PA
53772012-03-02 Pedro Alves <palves@redhat.com>
5378
5379 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5380
b261e0c5
UW
53812012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5382
5383 Fix -Wmissing-prototypes build.
5384 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5385 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5386 (gdbsim_has_memory): Likewise.
5387
a95babbf
YQ
53882012-03-02 Yao Qi <yao@codesourcery.com>
5389
5390 Fix -Wmissing-prototypes build.
5391 * charset.c (phony_iconv_open): Make static.
5392 (phony_iconv_close, phony_iconv): Likewise.
5393 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5394 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5395 prototype.
5396 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5397 * ser-mingw.c (create_select_thread): Make static.
5398 * windows-termcap.c (tgetent): New prototype.
5399 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5400
d603d4b3
JK
54012012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5402
5403 Fix -Wmissing-prototypes build.
5404 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5405 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5406 (_initialize_loadable): New prototypes.
5407
7fb3ad1f
DE
54082012-03-02 Doug Evans <dje@google.com>
5409
5410 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5411 abbrev table, read_comp_unit will do it.
5412
693be288
JK
54132012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5414
5415 Fix -Wmissing-prototypes build.
5416 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5417 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5418 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5419 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5420 (_initialize_arm_symbian_tdep): New prototype.
5421 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5422 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5423 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5424 static.
5425 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5426 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5427 prototype.
5428 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5429 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5430 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5431 static.
5432 * moxie-tdep.c (moxie_process_record): Likewise.
5433 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5434 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5435 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5436 (_initialize_rl78_tdep): New prototype.
5437 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5438 (_initialize_rx_tdep): New prototype.
5439 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5440 (_initialize_darwin_solib): New prototype.
5441 * solib-spu.c: Include solib-spu.h.
5442 (_initialize_spu_solib): New prototype.
5443 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5444 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5445 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5446 (tic6x_software_single_step): Make it static.
5447 (_initialize_tic6x_tdep): New prototype.
5448
638234e5
JK
54492012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5450
5451 Fix -Wmissing-prototypes build.
5452 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5453 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5454
f4a6f16d
JK
54552012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5456
5457 Fix -Wmissing-prototypes build.
5458 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5459 (frv_have_stopped_data_address): Remove.
5460
04dcf5fa
JK
54612012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5462
5463 Fix -Wmissing-prototypes build.
5464 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5465 * sh-tdep.c: Include sh64-tdep.h.
5466 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5467 * sh64-tdep.c: Include sh64-tdep.h.
5468 * sh64-tdep.h: New file.
5469
19080931
MR
54702012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5471
5472 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5473
9aac7884
MR
54742012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5475
5476 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5477 sp_regnum once the gdbarch_init_osabi hook has been called.
5478
a385295e
MR
54792012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5480
5481 * mips-tdep.c (mips32_bc1_pc): New function.
5482 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5483 BPOSGE32 and BPOSGE64 instructions.
5484 (deal_with_atomic_sequence): Likewise.
5485 (mips32_instruction_has_delay_slot): Likewise.
5486
1faeff08 54872012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
5488 Chris Dearman <chris@mips.com>
5489 Maciej W. Rozycki <macro@codesourcery.com>
5490 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
5491
5492 * features/mips-dsp.xml: New file.
5493 * features/mips64-dsp.xml: New file.
5494 * features/mips-dsp-linux.xml: New file.
5495 * features/mips64-dsp-linux.xml: New file.
5496 * features/Makefile (WHICH): Add mips-dsp-linux and
5497 mips64-dsp-linux.
5498 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5499 * features/mips-dsp-linux.c: New file.
5500 * features/mips64-dsp-linux.c: New file.
5501 * regformats/mips-dsp-linux.dat: New file.
5502 * regformats/mips64-dsp-linux.dat: New file.
5503 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5504 registers.
5505 (mips64_linux_register_addr): Likewise.
5506 (mips64_linux_regsets_fetch_registers): Likewise.
5507 (mips64_linux_regsets_store_registers): Likewise.
5508 (mips64_linux_fetch_registers): Update call to
5509 mips64_linux_regsets_fetch_registers.
5510 (mips64_linux_store_registers): Update call to
5511 mips64_linux_regsets_store_registers.
5512 (mips_linux_read_description): Probe for DSP registers.
5513 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5514 and initialize_tdesc_mips64_dsp_linux.
5515 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5516 Remove padding of no longer used embedded register slots.
5517 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5518 (MIPS_RESTART_REGNUM): Redefine enum value.
5519 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5520 strings.
5521 (mips_tx39_reg_names): Likewise.
5522 (mips_linux_reg_names): New array of register names for Linux
5523 targets.
5524 (mips_register_name): Check for a null pointer in
5525 mips_processor_reg_names and return an empty string.
5526 (mips_register_type): Exclude embedded registers for the IRIX
5527 and Linux ABIs.
5528 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5529 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5530 DSP registers.
5531 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5532 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5533 (mips_gdbarch_init): Likewise. Initialize internal register
5534 indices for the Linux ABI. Use dynamic numbers to refer to
5535 registers, as applicable, while parsing the target description.
5536 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5537
263689d8
JB
55382012-03-01 Joel Brobecker <brobecker@adacore.com>
5539
5540 * frame.h (read_frame_register_unsigned): Fix typo in function
5541 description.
5542
f3b4f45c
PA
55432012-03-01 Pedro Alves <palves@redhat.com>
5544
5545 * jit-reader.in [!__cplusplus]
5546 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5547
b03a2011
PA
55482012-03-01 Pedro Alves <palves@redhat.com>
5549
5550 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5551 * configure: Regenerate.
5552
70221824
PA
55532012-03-01 Pedro Alves <palves@redhat.com>
5554
5555 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5556 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5557 (ftrace_command, strace_command): Make static.
5558 * d-lang.c (_initialize_d_language): Declare.
5559 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5560 * dwarf2loc.c (_initialize_dwarf2loc):
5561 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5562 * exec.c (exec_get_section_table): Make static.
5563 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5564 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5565 * inferior.c (remove_inferior_command, add_inferior_command)
5566 (clone_inferior_command): Make static.
5567 * linux-nat.c (linux_nat_thread_address_space)
5568 (linux_nat_core_of_thread): Make static.
5569 * linux-tdep.c (_initialize_linux_tdep): Declare.
5570 * objc-lang.c (_initialize_objc_lang): Declare.
5571 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5572 Make static.
5573 (_initialize_opencl_language): Declare.
5574 * record.c (_initialize_record): Declare.
5575 * remote.c (demand_private_info, remote_get_tib_address)
5576 (remote_supports_cond_tracepoints)
5577 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5578 Make static.
5579 * skip.c (_initialize_step_skip): Declare.
5580 * symtab.c (skip_prologue_using_lineinfo): Make static.
5581 * tracepoint.c (delete_trace_state_variable)
5582 (trace_variable_command, delete_trace_variable_command)
5583 (get_uploaded_tsv, find_matching_tracepoint_location)
5584 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5585 Make static.
5586 * value.c (pack_unsigned_long): Make static.
5587 * varobj.c (varobj_ensure_python_env): Make static.
5588 * windows-tdep.c (_initialize_windows_tdep): Declare.
5589 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5590
33fbcbee
PA
55912012-03-01 Pedro Alves <palves@redhat.com>
5592
5593 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5594 gdbarch parameter.
5595 (linux_init_abi): Install it as has_shared_address_space gdbarch
5596 callback.
5597
44d0cd3b
PA
55982012-03-01 Pedro Alves <palves@redhat.com>
5599
5600 * observer.c (observer_test_first_notification_function)
5601 (observer_test_second_notification_function)
5602 (observer_test_third_notification_function): Add declarations.
5603
ed01b82c
PA
56042012-03-01 Pedro Alves <palves@redhat.com>
5605
5606 * common/signals.c (default_target_signal_to_host)
5607 (default_target_signal_from_host): Move ...
5608 * arch-utils.c: ... here.
5609 * arch-utils.h (default_target_signal_to_host)
5610 (default_target_signal_from_host): Declare.
5611
5612 * common/signals.c (target_signal_from_command): Move ...
5613 * infrun.c: ... here.
5614 * inferior.h (target_signal_from_command): Declare.
5615 * target.h (target_signal_from_command)
5616 (default_target_signal_from_host, default_target_signal_to_host):
5617 Delete declarations.
5618
5619 * common/signals.c (_initialize_signals): Delete.
5620
c9b87335
PA
56212012-03-01 Pedro Alves <palves@redhat.com>
5622
5623 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5624 both __cplusplus and !__cplusplus.
5625
9340a6c0
PA
56262012-03-01 Pedro Alves <palves@redhat.com>
5627
5628 * psymtab.c (find_and_open_source): Delete declaration.
5629 * source.c (find_and_open_source): Move comment ...
5630 * source.h (find_and_open_source): ... to this new declaration.
5631
e451c4a1
PA
56322012-03-01 Pedro Alves <palves@redhat.com>
5633
5634 * inline-frame.c: Include inline-frame.h.
5635
983fb104
PA
56362012-03-01 Pedro Alves <palves@redhat.com>
5637
5638 * tui/tui-data.c (set_gen_win_origin): Delete.
5639 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5640 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5641
5fbce5df
PA
56422012-03-01 Pedro Alves <palves@redhat.com>
5643
5644 * remote.c (encode_actions): Delete declaration.
5645 * tracepoint.c (encode_actions): Make extern.
5646 * tracepoint.h (encode_actions): Declare.
5647
49a8461d
PA
56482012-03-01 Pedro Alves <palves@redhat.com>
5649
5650 * python/py-breakpoint.c: Include python.h.
5651 * python/py-continueevent.c (create_continue_event_object): Make
5652 static.
5653 * python/py-lazy-string.c (stpy_get_type): Make static.
5654 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5655 Make static.
5656 * python/py-utils.c (unicode_to_target_python_string): Make
5657 static.
5658 * python/py-value.c: Include python.h.
5659
9079102f
PA
56602012-03-01 Pedro Alves <palves@redhat.com>
5661
5662 * inferior.c (delete_threads_of_inferior): Delete.
5663
a298c5e8
PA
56642012-03-01 Pedro Alves <palves@redhat.com>
5665
5666 Import fallback definitions from glibc.
5667
5668 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5669 ps_prochandle): Forward declare.
5670 (ps_err_e): Use glibc's comments.
5671 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5672 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5673 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5674 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5675 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5676 (struct ps_prochandle): Adjust comment.
5677
e3084549
PA
56782012-03-01 Pedro Alves <palves@redhat.com>
5679
5680 * ada-lang.c (ada_modulus_from_name): Delete.
5681 * ada-lex.l (lexer_init): Make static.
5682
ad5f7d6e
PA
56832012-03-01 Pedro Alves <palves@redhat.com>
5684
5685 PR gdb/13767
5686
5687 * frame.c (read_frame_register_unsigned): New.
5688 * frame.h (read_frame_register_unsigned): Declare.
5689 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5690 Handle it.
5691 (print_i387_control_word): New parameter `control_p'. Handle it.
5692 (i387_print_float_info): Handle unavailable float registers.
5693
e0a4d108
KS
56942012-03-01 Keith Seitz <keiths@redhat.com>
5695
5696 * linespec.c (decode_line_2): Sort the list of methods
5697 alphabetically before presenting the user with a selection
5698 menu.
5699
122d1940
DE
57002012-03-01 Doug Evans <dje@google.com>
5701
5702 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5703 has_namespace_info.
5704 (dwarf2_read_abbrevs): Remove corresponding initialization.
5705
7d74f244
DE
57062012-03-01 Scott J. Goldman <scottjg@vmware.com>
5707
5708 * NEWS: Mention new python command class gdb.COMMAND_USER.
5709 * cli/cli-cmds.c (show_user): Print error when used on a python
5710 command.
5711 (init_cli_cmds): Update documentation strings for "show user" and
5712 "set/show max-user-call-depth" to clarify that it does not apply to
5713 python commands.
5714 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5715 error check.
5716 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5717 gdb python api.
5718 * top.c (execute_command): Only execute a user-defined command as a
5719 legacy macro if c->user_commands is set.
5720
e88acd96
TT
57212012-03-01 Tom Tromey <tromey@redhat.com>
5722
5723 * valprint.h (struct generic_val_print_decorations): New.
5724 (generic_val_print): Declare.
5725 * valprint.c (generic_val_print): New function.
5726 * p-valprint.c (p_decorations): New global.
5727 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5728 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5729 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5730 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5731 * m2-valprint.c (m2_decorations): New global.
5732 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5733 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5734 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5735 TYPE_CODE_ERROR>: Call generic_val_print.
5736 * f-valprint.c (f_decorations): New global.
5737 (f_val_print): Use print_function_pointer_address.
5738 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5739 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5740 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5741 generic_val_print.
5742 * c-valprint.c (c_decorations): New global.
5743 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5744 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5745 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5746 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5747 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5748 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5749 case.
5750
d3eab38a
TT
57512012-03-01 Tom Tromey <tromey@redhat.com>
5752
5753 * valprint.c (val_print): Update.
5754 * p-valprint (pascal_val_print): Return void.
5755 * p-lang.h (pascal_val_print): Return void.
5756 * m2-valprint.c (m2_val_print): Return void.
5757 * m2-lang.h (m2_val_print): Return void.
5758 * language.h (struct language_defn) <la_val_print>: Return void.
5759 * language.c (unk_lang_val_print): Return void.
5760 * jv-valprint.c (java_val_print): Return void.
5761 * jv-lang.h (java_val_print): Return void.
5762 * f-valprint.c (f_val_print): Return void.
5763 * f-lang.h (f_val_print): Return void.
5764 * d-valprint.c (d_val_print): Return void.
5765 (dynamic_array_type): Update.
5766 * d-lang.h (d_val_print): Return void.
5767 * c-valprint.c (c_val_print): Return void.
5768 * c-lang.h (c_val_print): Return void.
5769 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5770 void.
5771 * ada-lang.h (ada_val_print): Return void.
5772
35c0084b
TT
57732012-03-01 Tom Tromey <tromey@redhat.com>
5774
5775 * value.h (val_print): Return void.
5776 * valprint.c (val_print): Return void.
5777
a1f5dd1b
TT
57782012-03-01 Tom Tromey <tromey@redhat.com>
5779
5780 * value.h (common_val_print): Return void.
5781 * valprint.c (common_val_print): Return void.
5782
8e069a98
TT
57832012-03-01 Tom Tromey <tromey@redhat.com>
5784
5785 * value.h (value_print): Return void.
5786 * valprint.c (value_print): Return void.
5787 * p-valprint.c (pascal_value_print): Return void.
5788 * p-lang.h (pascal_value_print): Return void.
5789 * language.h (struct language_defn) <la_value_print>: Return
5790 void.
5791 * language.c (unk_lang_value_print): Return void.
5792 * jv-valprint.c (java_value_print): Return void.
5793 * jv-lang.h (java_value_print): Return void.
5794 * f-valprint.c (c_value_print): Don't declare.
5795 Include c-lang.h.
5796 * c-valprint.c (c_value_print): Return void.
5797 * c-lang.h (c_value_print): Return void.
5798 * ada-valprint.c (ada_value_print): Return void.
5799 * ada-lang.h (ada_value_print): Return void.
5800
be335936
TT
58012012-03-01 Tom Tromey <tromey@redhat.com>
5802
5803 * value.c (value_primitive_field): Handle virtual base classes.
5804
b0db66a7
TT
58052012-03-01 Tom Tromey <tromey@redhat.com>
5806
5807 * gdbtypes.h (struct vbase): Remove.
5808
132c57b4
TT
58092012-03-01 Tom Tromey <tromey@redhat.com>
5810
5811 * c-valprint.c (print_function_pointer_address): Move...
5812 * valprint.c: ... here. Make non-static.
5813 * m2-valprint.c (print_function_pointer_address): Remove.
5814 * valprint.h (print_function_pointer_address): Declare.
5815
e41eec66
JB
58162012-03-01 Joel Brobecker <brobecker@adacore.com>
5817
5818 * NEWS: Document the fact that one can provide a condition when
5819 creating an Ada exception catchpoint.
5820
19c37f24
TT
58212012-03-01 Tom Tromey <tromey@redhat.com>
5822
5823 * valprint.c (val_print_type_code_flags): Fix placement of
5824 trailing brace.
5825
f0fed3a3
JB
58262012-03-01 Joel Brobecker <brobecker@adacore.com>
5827
5828 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5829 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5830 environment variable before calling update-copyright.
5831
8ba85d85
JB
58322012-03-01 Joel Brobecker <brobecker@adacore.com>
5833
5834 * gnulib/extra/update-copyright: Update to the latest from
5835 gnulib's git repository.
5836 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5837 variable to 2 instead of 1.
5838
8219b1e8
JB
58392012-02-29 Joel Brobecker <brobecker@adacore.com>
5840
5841 * varobj.c (c_value_of_variable): Remove dead code.
5842
718cb7da
JB
58432012-02-29 Joel Brobecker <brobecker@adacore.com>
5844
5845 * ada-lex.p (processId): Do not modify already encoded IDs.
5846 Update function documentation.
5847
739593e0
JB
58482012-02-29 Joel Brobecker <brobecker@adacore.com>
5849
5850 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5851 "name" with "struct symbol *name_sym".
5852 * ada-exp.y (write_var_or_type): Update call to
5853 ada_find_renaming_symbol.
5854 "name" with "struct symbol *name_sym". Adjust Implementation
5855 accordingly. Adjust the function documentation.
5856
852dff6c
JB
58572012-02-29 Joel Brobecker <brobecker@adacore.com>
5858
5859 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5860 * ada-lang.c (ada_find_any_type): Add advance declaration.
5861 Make static. Replace ada_find_any_symbol by
5862 ada_find_any_type_symbol.
5863 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5864 Improve function description. Make static.
5865 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5866 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5867
1b611343
JB
58682012-02-29 Joel Brobecker <brobecker@adacore.com>
5869
5870 * ada-lang.c (struct tag_args): Delete.
5871 (ada_get_tsd_type): Function body moved up in source file.
5872 (ada_tag_name_1, ada_tag_name_2): Delete.
5873 (ada_get_tsd_from_tag): New function.
5874 (ada_tag_name_from_tsd): New function.
5875 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5876 to determine the tag name.
5877
41246937
JB
58782012-02-29 Joel Brobecker <brobecker@adacore.com>
5879
5880 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5881 declaration.
5882 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5883 function.
5884
ffde82bf
JB
58852012-02-29 Joel Brobecker <brobecker@adacore.com>
5886
5887 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5888
2ad01556
JB
58892012-02-29 Joel Brobecker <brobecker@adacore.com>
5890
5891 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5892 full searches.
5893
99b1c762
JB
58942012-02-29 Joel Brobecker <brobecker@adacore.com>
5895
5896 * ada-lang.c (constrained_packed_array_type): If there is a
5897 parallel XA type, use it to determine the array index type.
5898
2d4a02ee
JB
58992012-02-29 Joel Brobecker <brobecker@adacore.com>
5900
5901 * ada-valprint.c (ada_val_print_1): If our value is a reference
5902 to an array descriptor, dereference it before converting it
5903 to a simple array.
5904
c48db5ca
JB
59052012-02-29 Joel Brobecker <brobecker@adacore.com>
5906
5907 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5908 creating fixed value.
5909 (ada_value_ind, ada_coerce_ref, assign_component)
5910 (ada_evaluate_subexp): Remove call to unwrap_value before
5911 call to ada_to_fixed_value.
5912
2e6fda7d
JB
59132012-02-29 Joel Brobecker <brobecker@adacore.com>
5914
5915 * ada-lang.c (to_fixed_array_type): Set result's type name.
5916
5845583d
JB
59172012-02-29 Joel Brobecker <brobecker@adacore.com>
5918
5919 * ada-lang.c (catch_ada_exception_command_split): Add new
5920 argument cond_string. Add support for condition at end of
5921 "catch exception" commands.
5922 (ada_decode_exception_location): Add new argument cond_string.
5923 Update call to catch_ada_exception_command_split.
5924 (create_ada_exception_catchpoint): Add new argument cond_string.
5925 Set the breakpoint condition if needed.
5926 (catch_ada_exception_command): Update call to
5927 ada_decode_exception_location.
5928 (ada_decode_assert_location): Add function documentation.
5929 Add support for condition at end of "catch assert" command.
5930 (catch_assert_command): Update calls to ada_decode_assert_location
5931 and create_ada_exception_catchpoint.
5932
9a7f938f
JK
59332012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5934
5935 Fix disp-step-syscall.exp: fork: single step over fork.
5936 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5937 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5938 comment, change parameters gdbarch and ptid to regcache. Remove
5939 parameter regcache, initialize gdbarch from regcache here.
5940 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5941 New functions.
5942 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5943 instead.
5944 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5945 'syscall'. Make the 'int' check more strict.
5946
ffdf6de5
JK
59472012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5948
5949 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5950 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5951 (i386_linux_intx80_sysenter_syscall_record): ... here.
5952 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5953 Use the renamed function name.
5954
c70a6932
JK
59552012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5956
5957 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5958 * breakpoint.c (until_break_command): Likewise.
5959 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5960 * infcall.c (call_function_by_hand): Likewise.
5961 * infcmd.c (finish_forward): Likewise.
5962 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5963
05b8a789 59642012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 5965
d4cd3da9
JB
5966 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5967 avoid variable assignments inside condition.
5968
6425366c
JK
59692012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5970
5971 Fix static analysis issue found by cppcheck.
5972 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5973 uninitialized BUF for size 2.
5974
c8cef75f 59752012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
5976 Nathan Froyd <froydnj@codesourcery.com>
5977 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
5978
5979 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5980 (mips16_instruction_has_delay_slot): Likewise.
5981 (mips_segment_boundary): Likewise.
5982 (mips_adjust_breakpoint_address): Likewise.
5983 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5984
473347ad 59852012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 5986 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
5987
5988 * infrun.c (handle_inferior_event): Don't proceed through
5989 shared library trampolines if stepping at the machine
5990 instruction level.
5991
cf233303
MR
59922012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5993
5994 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5995 too.
5996
cb2cf4ce
TS
59972012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5998
5999 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
6000 (sh_stub_unwind_sniffer): New functions.
6001 (sh_stub_unwind): New variable.
6002 (sh_gdbarch_init): Wire everything.
6003
644cebc9
PA
60042012-02-27 Pedro Alves <palves@redhat.com>
6005
6006 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
6007 (linux_nat_post_attach_wait): Adjust to use
6008 linux_proc_pid_is_stopped.
6009 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
6010 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
6011 based on pid_is_stopped from both linux-nat.c and
6012 gdbserver/linux-low.c, and renamed.
6013
283002cf
MR
60142012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6015
6016 * remote.c (remote_watchpoint_addr_within_range): New function.
6017 (init_remote_ops): Use it.
6018
9b3e86b1
MR
60192012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6020
6021 * target.h (target_watchpoint_addr_within_range): Document macro.
6022
e36930bb
PA
60232012-02-24 Pedro Alves <palves@redhat.com>
6024
6025 * stack.c (set_last_displayed_sal): Issue internal_error instead
6026 of warning, and issue it after clearing the last displayed sal.
6027
883bc8d1
PA
60282012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6029 Pedro Alves <palves@redhat.com>
6030
6031 * breakpoint.c (until_break_command): Install breakpoints after
6032 all frame manipulations.
6033
b775012e
LM
60342012-02-24 Luis Machado <lgustavo@codesourcery.com>
6035
6036 * remote.c (remote_supports_cond_breakpoints): New forward
6037 declaration.
6038 (remote_add_target_side_condition): New function.
6039 (remote_insert_breakpoint): Add target-side breakpoint
6040 conditional if supported.
6041 (remote_insert_hw_breakpoint): Likewise.
6042 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
6043 hook.
6044
6045 * target.c (update_current_target): Inherit
6046 to_supports_evaluation_of_breakpoint_conditions.
6047 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
6048
6049 * target.h (struct target_ops)
6050 <to_supports_evaluation_of_breakpoint_conditions>: New field.
6051 (target_supports_evaluation_of_breakpoint_conditions): New #define.
6052
6053 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
6054 (condition_evaluation_both, condition_evaluation_auto,
6055 condition_evaluation_host, condition_evaluation_target,
6056 condition_evaluation_enums, condition_evaluation_mode_1,
6057 condition_evaluation_mode): New static globals.
6058 (translate_condition_evaluation_mode): New function.
6059 (breakpoint_condition_evaluation_mode): New function.
6060 (gdb_evaluates_breakpoint_condition_p): New function.
6061 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
6062 (mark_breakpoint_modified): New function.
6063 (mark_breakpoint_location_modified): New function.
6064 (set_condition_evaluation_mode): New function.
6065 (show_condition_evaluation_mode): New function.
6066 (bp_location_compare_addrs): New function.
6067 (get_first_location_gte_addr): New helper function.
6068 (set_breakpoint_condition): Free condition bytecode if locations
6069 has become unconditional. Call mark_breakpoint_modified (...).
6070 (condition_command): Call update_global_location_list (1) for
6071 breakpoints.
6072 (breakpoint_xfer_memory): Use is_breakpoint (...).
6073 (is_breakpoint): New function.
6074 (parse_cond_to_aexpr): New function.
6075 (build_target_condition_list): New function.
6076 (insert_bp_location): Handle target-side conditional
6077 breakpoints and call build_target_condition_list (...).
6078 (update_inserted_breakpoint_locations): New function.
6079 (insert_breakpoint_locations): Handle target-side conditional
6080 breakpoints.
6081 (bpstat_check_breakpoint_conditions): Add comment.
6082 (bp_condition_evaluator): New function.
6083 (bp_location_condition_evaluator): New function.
6084 (print_breakpoint_location): Print information on where the condition
6085 will be evaluated.
6086 (print_one_breakpoint_location): Likewise.
6087 (init_bp_location): Call mark_breakpoint_location_modified (...) for
6088 breakpoint location.
6089 (force_breakpoint_reinsertion): New functions.
6090 (update_global_location_list): Handle target-side breakpoint
6091 conditions.
6092 Reinsert locations that are already inserted if conditions have
6093 changed.
6094 (bp_location_dtor): Free agent expression bytecode.
6095 (disable_breakpoint): Call mark_breakpoint_modified (...).
6096 Call update_global_location_list (...) with parameter 1 for breakpoints.
6097 (disable_command): Call mark_breakpoint_location_modified (...).
6098 Call update_global_location_list (...) with parameter 1 for breakpoints.
6099 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
6100 (enable_command): mark_breakpoint_location_modified (...).
6101 (_initialize_breakpoint): Update documentation and add
6102 condition-evaluation breakpoint subcommand.
6103
6104 * breakpoint.h: Include ax.h.
6105 (condition_list): New data structure.
6106 (condition_status): New enum.
6107 (bp_target_info) <cond_list>: New field.
6108 (bp_location) <condition_changed, cond_bytecode>: New fields.
6109 (is_breakpoint): New prototype.
6110
3788aec7
LM
61112012-02-24 Luis Machado <lgustavo@codesourcery.com>
6112
6113 * remote.c (remote_state) <cond_breakpoints>: New field.
6114 (PACKET_ConditionalBreakpoints): New enum.
6115 (remote_cond_breakpoint_feature): New function.
6116 (remote_protocol_features): Add new ConditionalBreakpoints entry.
6117 (remote_supports_cond_breakpoints): New function.
6118 (_initialize_remote): Add new packet configuration for
6119 target-side conditional breakpoints.
6120
72895ff6
LM
61212012-02-24 Luis Machado <lgustavo@codesourcery.com>
6122
6123 * NEWS: Mention target-side conditional breakpoint support,
6124 new condition-evaluation breakpoint subcommand and remote
6125 packet extensions.
6126
dea2aa5f
LM
61272012-02-24 Luis Machado <lgustavo@codesourcery.com>
6128
6129 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
6130 number.
6131
8a8bc27f
TS
61322012-02-24 Thomas Schwinge <thomas@codesourcery.com>
6133
6134 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
6135 (after_prologue): Remove.
6136
6b446fdf
TT
61372012-02-23 Tom Tromey <tromey@redhat.com>
6138
6139 * jv-valprint.c (java_val_print): Remove dead code.
6140
ef59abfb
TG
61412012-02-23 Tristan Gingold <gingold@adacore.com>
6142
a09130f9
PA
6143 * ada-tasks.c (struct ada_tasks_inferior_data): Add
6144 known_tasks_element and known_tasks_length fields.
6145 (read_known_tasks_array): Change argument type. Use pointer type
6146 and number of elements from DATA. Adjust.
6147 (read_known_tasks_list): Likewise.
6148 (get_known_tasks_addr): Remove.
6149 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
6150 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
6151 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 6152
def166f6
JK
61532012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6154
6155 PR backtrace/13716
6156 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
6157 it after set_momentary_breakpoint.
6158
aeaa2474
SA
61592012-02-22 Sterling Augustine <saugustine@google.com>
6160
6161 PR 13689:
6162 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
6163
feea76c2
GB
61642012-02-22 Gary Benson <gbenson@redhat.com>
6165
6166 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
6167 (find_slot_in_mapped_hash): Likewise.
6168
f06e05e0
JK
61692012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6170
6171 PR build/13638
6172 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
6173 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
6174 * configure: Regenerate.
6175
b54a8fd7
PA
61762012-02-21 Tristan Gingold <gingold@adacore.com>
6177 Pedro Alves <palves@redhat.com>
6178
6179 * ia64-tdep.c: Do not include libunwind-ia64.h.
6180 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
6181 Include libunwind-ia64.h instead of libunwind.h.
6182 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
6183 for libunwind.h existence.
6184 * configure, config.in: Regenerate.
6185
dfcee124
AG
61862012-02-21 Anton Gorenkov <xgsa@yandex.ru>
6187
6188 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
6189 instead of value_rtti_target_type.
6190 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
6191 instead of value_rtti_target_type.
6192 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
6193 value_rtti_target_type.
6194 * valops.c (value_ind): Extract function readjust_indirect_value_type.
6195 (value_rtti_target_type): Rename to ...
6196 (value_rtti_indirect_type): ... here and make it indirect. Update
6197 function comment.
6198 * value.c (readjust_indirect_value_type): New function.
6199 (coerce_ref): Support for enclosing type setting for references
6200 with readjust_indirect_value_type.
6201 * value.h (readjust_value_type): New declaration.
6202 (value_rtti_target_type): Rename to ...
6203 (value_rtti_indirect_type): ... here.
6204
02568277
AG
62052012-02-21 Anton Gorenkov <xgsa@yandex.ru>
6206
6207 * MAINTAINERS (Write After Approval): Add myself to the list.
6208
10c07b7e 62092012-02-20 Doug Evans <dje@google.com>
28ee876a 6210
d82ea6a8
DE
6211 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
6212 Rename objfile_p_char parameter to objfilep.
6213 (build_objfile_section_table): Result is now void. All callers
6214 updated.
6215 * objfiles.h (struct objfile): Tweak comments, whitespace.
6216 (build_objfile_section_table): Update.
6217
28ee876a
DE
6218 * elfread.c (elf_symfile_segments): Fix warning text.
6219
24c79950
TT
62202012-02-20 Tom Tromey <tromey@redhat.com>
6221
6222 PR gdb/13498:
6223 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
6224 particular set of file names once.
6225 (dw2_map_symbol_filenames): Likewise.
6226
3a9b40b6
JK
62272012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6228
6229 Code cleanup.
6230 * main.c (write_files): Remove the declaration.
6231 (external_editor_command): Move the declaration ...
6232 [GDBTK] (external_editor_command): ... here. Fix the comment.
6233
4d0795ca
TT
62342012-02-20 Tom Tromey <tromey@redhat.com>
6235
6236 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
6237 extraneous block.
6238
637fd620
TG
62392012-02-20 Tristan Gingold <gingold@adacore.com>
6240
6241 * darwin-nat.h (enum darwin_msg_state): Add comments.
6242
6f124894
TG
62432012-02-20 Tristan Gingold <gingold@adacore.com>
6244
6245 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
6246 value.
6247
2e6e3d9c
JB
62482012-20-18 Joel Brobecker <brobecker@adacore.com>
6249
6250 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
6251 between function description and implementation.
6252
2e8265fd
TT
62532012-02-17 Tom Tromey <tromey@redhat.com>
6254
6255 PR python/12070:
6256 * python/py-event.c (event_object_getset): New global.
6257 (event_object_type): Reference it.
6258 * python/py-type.c (field_object_getset): New global.
6259 (field_object_type): Reference it.
6260 * python/python-internal.h (gdb_py_generic_dict): Declare.
6261 * python/py-utils.c (gdb_py_generic_dict): New function.
6262
8544a150 62632012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 6264
8544a150 6265 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 6266
ca193e27
TS
62672012-02-17 Thomas Schwinge <thomas@codesourcery.com>
6268
6269 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
6270 TYPE_CALLING_CONVENTION annotation.
6271
e5586183
KB
62722012-02-16 Kevin Buettner <kevinb@redhat.com>
6273
6274 * MAINTAINERS: Add rx to target ISA section.
6275 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
6276 (ALLDEPFILES): Add rx-tdep.c.
6277
7dcd53a0
TT
62782012-02-16 Tom Tromey <tromey@redhat.com>
6279
6280 * symfile.c (symbol_file_add_main_1): Use inferior's
6281 symfile_flags.
6282 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
6283 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
6284 inferior.
6285 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
6286 inferior.
6287 (follow_exec): Use inferior's symfile_flags.
6288 * inferior.h (struct inferior) <symfile_flags>: New field.
6289
ddd60447
MF
62902012-02-16 Mike Frysinger <vapier@gentoo.org>
6291
6292 PR gdb/9734:
6293 * remote-sim.c (gdbsim_create_inferior): Call error() when
6294 sim_create_inferior() fails.
6295
b0d32fb6
TG
62962012-02-16 Josh Matthews <josh@joshmatthews.net>
6297
6298 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
6299
9addecb9
TT
63002012-02-16 Tom Tromey <tromey@redhat.com>
6301
6302 PR c++/13653:
6303 * thread.c (struct current_thread_cleanup) <was_removable>: New
6304 field.
6305 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
6306 (make_cleanup_restore_current_thread): Initialize new field.
6307
a58b110a
KB
63082012-02-15 Kevin Buettner <kevinb@redhat.com>
6309
6310 * MAINTAINERS: Add rl78 to target ISA section.
6311 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
6312 (ALLDEPFILES): Add rl78-tdep.c.
6313 * NEWS: Mention rl78 as a new target.
6314
4cb6da1c
AR
63152012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
6316
6317 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6318 data.
6319 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6320
3af2590d
TT
63212012-02-15 Tom Tromey <tromey@redhat.com>
6322
6323 PR gdb/12659:
6324 * infcmd.c (registers_info): Print just the current register's
6325 name.
6326
c6910659
TT
63272012-02-15 Tom Tromey <tromey@redhat.com>
6328
6329 * python/py-symbol.c (sympy_value): Use _().
6330
7cee1e54
PA
63312012-02-15 Pedro Alves <palves@redhat.com>
6332
6333 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6334 output to be like native targets'.
6335 (remote_pid_to_str): Special case the null ptid.
6336
816338b5
SS
63372012-02-14 Stan Shebs <stan@codesourcery.com>
6338
6339 * NEWS: Mention enable count command.
6340 * breakpoint.h (struct breakpoint): New field enable_count.
6341 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6342 (enable_breakpoint): Add arg to call.
6343 (struct disp_data): New struct.
6344 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6345 (do_map_enable_once_breakpoint): Create a struct and pass it.
6346 (do_map_enable_delete_breakpoint): Ditto.
6347 (do_map_enable_count_breakpoint): New function.
6348 (enable_count_command): New function.
6349 (bpstat_stop_status): Decrement enable_count.
6350 (print_one_breakpoint_location): Report enable count.
6351 (_initialize_breakpoint): Add enable count command.
6352
c47a44f4
KB
63532012-02-14 Kevin Buettner <kevinb@redhat.com>
6354
6355 * rl78-tdep.c (reggroups.h): Include.
6356 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6357 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6358 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6359 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6360 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6361 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6362 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6363 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6364 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6365 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6366 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6367 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6368 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6369 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6370 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6371 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6372 beginning of register list.
6373 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6374 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6375 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6376 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6377 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6378 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6379 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6380 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6381 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6382 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6383 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6384 the pseudo registers. Rearrange other pseudo registers too so
6385 that the bank registers appear at the end.
6386 (rl78_register_type): Account for the fact that the byte sized
6387 bank registers are now pseudo-registers.
6388 (rl78_register_name): Rearrange the register name array. Make
6389 initial set of raw banked registers inaccessible.
6390 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6391 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6392 case for copying bytes back and forth between raw and pseudo
6393 versions of the banked registers. Update other cases to reflect
6394 the changed names.
6395 (rl78_return_value): Update to account for changed names of
6396 raw registers.
6397 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6398 rl78_register_sim_regno().
6399
e4569f1e
KB
64002012-02-14 Kevin Buettner <kevinb@redhat.com>
6401
6402 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6403 the name parameter being passed to find_pc_partial_function().
6404
7a05aae7
JK
64052012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6406
6407 * MAINTAINERS: Step down from being ia64 target maintainer.
6408
11fde611
JK
64092012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6410
6411 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6412 compilation warning.
6413
57008375
JK
64142012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6415
6416 Fix crash on loaded shlibs without loaded exec_bfd.
6417 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6418 (set_section_command): Replace exec_bfd by p->bfd.
6419
ff3c9849
TT
64202012-02-10 Tom Tromey <tromey@redhat.com>
6421
6422 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6423 when we have a C++ qualified name.
6424
db2b9fdd
PA
64252012-02-10 Pedro Alves <palves@redhat.com>
6426
6427 * inferior.c (inferior_pid_to_str): New.
6428 (print_inferior, inferior_command): Use it.
6429
12cd34f3
PA
64302012-02-10 Pedro Alves <palves@redhat.com>
6431
6432 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6433 the test CFLAGS.
6434 * configure: Regenerate.
6435
e871429d
JK
64362012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6437
6438 * linespec.c (decode_line_internal): Fix comment correctness.
6439
1916efaf
PA
64402012-02-09 Valery Khromov <valery.khromov@gmail.com>
6441
6442 PR gdb/12953
6443 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6444 * amd64bsd-nat.c: Add support for debug registers (adapted from
6445 i386bsd-nat.c).
6446 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6447 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6448 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6449 (amd64bsd_dr_get_control): New functions.
6450 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6451 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6452 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6453 watchpoints initialization.
6454 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6455
f4859d94
JK
64562012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6457
6458 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6459 flds_bnds.fields.
6460 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6461
c56a97f9
JK
64622012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6463
6464 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6465
1a119f36
JB
64662012-02-08 Joel Brobecker <brobecker@adacore.com>
6467
6468 * language.h (symbol_name_cmp_ftype): Renames
6469 symbol_name_match_p_ftype.
6470 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6471 la_get_symbol_name_match_p.
6472 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6473 ada_get_symbol_name_match_p. Update comment.
6474 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6475 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6476 Renames symbol_name_match_p. Update field type.
6477 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6478 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6479 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6480 "la_get_symbol_name_cmp" in comments.
6481 * language.c: Likewise.
6482
c71bb1cf
RO
64832012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6484
6485 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6486 %eflags offset.
6487 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6488 (amd64_sol2_gregset32_reg_offs): Likewise.
6489
4b2d20a5
TG
64902012-02-08 Joel Brobecker <brobecker@adacore.com>
6491
6492 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6493 of the returned BFD is allocated by GDB.
6494
f0823d2c
TT
64952012-02-07 Tom Tromey <tromey@redhat.com>
6496
6497 PR python/12027:
6498 * python/python-internal.h (frame_object_type): Declare.
6499 * python/py-symbol.c (sympy_needs_frame): New function.
6500 (sympy_value): New function.
6501 (symbol_object_getset): Add "needs_frame".
6502 (symbol_object_methods): Add "value".
6503 * python/py-frame.c (frame_object_type): No longer static.
6504
64e7d9dd
TT
65052012-02-07 Tom Tromey <tromey@redhat.com>
6506
6507 PR python/13599:
6508 * python/py-symbol.c (sympy_line): New function.
6509 (symbol_object_getset): Add "line".
6510
1d6b2d2b
TT
65112012-02-07 Tom Tromey <tromey@redhat.com>
6512
6513 * charset.c (find_charset_names): Check 'in' against NULL.
6514
0d5cff50
DE
65152012-02-06 Doug Evans <dje@google.com>
6516
6517 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6518 and fields.name members from char * to const char *. All uses updated.
6519 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6520 from char * to const char *. All uses updated.
6521 (type_name_no_tag): Update.
6522 (lookup_unsigned_typename, lookup_signed_typename): Update.
6523 * gdbtypes.c (type_name_no_tag): Change result type
6524 from char * to const char *. All callers updated.
6525 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6526 name parameter from char * to const char *.
6527 * symtab.h (struct cplus_specific): Change type of demangled_name
6528 member from char * to const char *. All uses updated.
6529 (struct general_symbol_info): Change type of name and
6530 mangled_lang.demangled_name members from char * to const char *.
6531 All uses updated.
6532 (symbol_get_demangled_name, symbol_natural_name): Update.
6533 (symbol_demangled_name, symbol_search_name): Update.
6534 * symtab.c (symbol_get_demangled_name): Change result type
6535 from char * to const char *. All callers updated.
6536 (symbol_natural_name, symbol_demangled_name): Ditto.
6537 (symbol_search_name): Ditto.
6538 (completion_list_add_name): Change type of symname,sym_text,
6539 text,word parameters from char * to const char *.
6540 (completion_list_objc_symbol): Change type of sym_text,
6541 text,word parameters from char * to const char *.
6542 * ada-lang.c (find_struct_field): Change type of name parameter
6543 from char * to const char *.
6544 (encoded_ordered_before): Similarly for N0,N1 parameters.
6545 (old_renaming_is_invisible): Similarly for function_name parameter.
6546 (ada_type_name): Change result type from char * to const char *.
6547 All callers updated.
6548 * ada-lang.h (ada_type_name): Update.
6549 * buildsym.c (hashname): Change type of name parameter
6550 from char * to const char *.
6551 * buildsym.h (hashname): Update.
6552 * dbxread.c (end_psymtab): Change type of include_list parameter
6553 from char ** to const char **.
6554 * dwarf2read.c (determine_prefix): Change result type
6555 from char * to const char *. All callers updated.
6556 * f-lang.c (find_common_for_function): Change type of name, funcname
6557 parameters from char * to const char *.
6558 * f-lang.c (find_common_for_function): Update.
6559 * f-valprint.c (list_all_visible_commons): Change type of funcname
6560 parameters from char * to const char *.
6561 * gdbarch.sh (static_transform_name): Change type of name parameter
6562 and result from char * to const char *.
6563 * gdbarch.c: Regenerate.
6564 * gdbarch.h: Regenerate.
6565 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6566 of name parameter from char * to const char *.
6567 * jv-lang.c (java_primitive_type_from_name): Ditto.
6568 (java_demangled_signature_length): Similarly for signature parameter.
6569 (java_demangled_signature_copy): Ditto.
6570 (java_demangle_type_signature): Ditto.
6571 * jv-lang.h (java_primitive_type_from_name): Update.
6572 (java_demangle_type_signature): Update.
6573 * objc-lang.c (specialcmp): Change type of a,b parameters
6574 from char * to const char *.
6575 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6576 from char * to const char *. All callers updated.
6577 * p-lang.h (is_pascal_string_type): Update.
6578 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6579 of name parameter from char * to const char *.
6580 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6581 * utils.c (fprintf_symbol_filtered): Ditto.
6582 * defs.h (fprintf_symbol_filtered): Update.
6583 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6584 * stabsread.h (end_psymtab): Update.
6585 * stack.c (find_frame_funname): Change type of funname parameter
6586 from char ** to const char **.
6587 * stack.h (find_frame_funname): Update.
6588 * typeprint.c (type_print): Change type of varstring parameter
6589 from char * to const char *.
6590 * value.h (type_print): Update.
6591 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6592 from char * to const char *. All callers updated.
6593 (xcoff_end_psymtab): Change type of include_list parameter
6594 from char ** to const char **. All callers updated.
6595 (swap_sym): Similarly for name parameter. All callers updated.
6596 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6597 Use xstrdup.
6598 (process_coff_symbol): Use xstrdup.
6599 * stabsread.c (stabs_method_name_from_physname): Renamed from
6600 update_method_name_from_physname. Change result type from void
6601 to char *. All callers updated.
6602 (read_member_functions): In has_destructor case, store name in objfile
6603 obstack instead of malloc space. In !has_stub case, fix mem leak.
6604
5579a92e
TT
66052012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6606
6607 * configure: Rebuild.
6608 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6609 LDFLAGS.
6610
9058f767
KB
66112012-02-03 Kevin Buettner <kevinb@redhat.com>
6612
6613 * configure.tgt (rl78-*-elf): New target.
6614 * rl78-tdep.c: New file.
6615
5b37825d
PW
66162012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6617
6618 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6619 and continue the loop. Add QUIT statement.
6620
e009ee71
TT
66212012-02-03 Tom Tromey <tromey@redhat.com>
6622
6623 PR gdb/13596:
6624 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6625 bfd_lookup_symbol_from_symtab.
6626 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6627 gdb_bfd_lookup_symbol_from_symtab.
6628
f7e44f65
JB
66292012-02-03 Joel Brobecker <brobecker@adacore.com>
6630
6631 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6632 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6633 symbol. Add assertion that sym2 is never NULL.
6634
2c02bd72
DE
66352012-02-02 Doug Evans <dje@google.com>
6636
6637 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6638 "name" parameter to const char ** from char **. All callers updated.
6639 (find_pc_partial_function): Ditto.
6640 (cache_pc_function_name): Change type to const char * from char *.
6641 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6642 (find_pc_partial_function): Update.
6643 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6644 type of "name" parameter to const char * from char *.
6645 All uses updated.
6646 * arch-utils.c (generic_in_solib_return_trampoline): Change
6647 type of "name" parameter to const char * from char *.
6648 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6649 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6650 type of "name" parameter to const char * from char *.
6651 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6652 * gdbarch.c: Regenerate.
6653 * gdbarch.h: Regenerate.
6654 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6655 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6656 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6657 type of "name" parameter to const char * from char *.
6658 * skip.c (skip_function_pc): Ditto.
6659 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6660 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6661 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6662 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6663 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6664 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6665 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6666 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6667 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6668
e886a173
PA
66692012-02-02 Pedro Alves <palves@redhat.com>
6670
6671 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6672 the current inferior has no execution. Make sure the current
6673 remote process matches gdb's current inferior.
6674
c709a7c2
TT
66752012-02-02 Tom Tromey <tromey@redhat.com>
6676
6677 PR gdb/13405:
6678 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6679 read-only memory.
6680
f149aabd
TT
66812012-02-02 Tom Tromey <tromey@redhat.com>
6682
6683 PR gdb/9307:
6684 * symtab.c (lookup_language_this): Set block_found.
6685
03bef283
TT
66862012-02-01 Tom Tromey <tromey@redhat.com>
6687
6688 PR gdb/13431:
6689 * jit.c (struct jit_inferior_data): Rewrite.
6690 (struct jit_objfile_data): New.
6691 (get_jit_objfile_data): New function.
6692 (add_objfile_entry): Update.
6693 (jit_read_descriptor): Return int. Replace descriptor_addr
6694 argument with inf_data. Update. Don't call error.
6695 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6696 descriptor here.
6697 (jit_inferior_init): Don't look up descriptor. Don't call error.
6698 (jit_reset_inferior_data_and_breakpoints)
6699 (jit_inferior_created_observer): Remove.
6700 (jit_inferior_exit_hook): Update.
6701 (jit_executable_changed_observer): Remove.
6702 (jit_event_handler): Update.
6703 (free_objfile_data): Reset inferior data if needed.
6704 (_initialize_jit): Update.
6705
f0bbc364
TT
67062012-02-01 Tom Tromey <tromey@redhat.com>
6707
6708 * jit.c (bfd_open_from_target_memory): Move higher in file.
6709
47c1316c
TG
67102012-02-01 Tristan Gingold <gingold@adacore.com>
6711
6712 * libunwind-frame.c (libunwind_load): Display message if dlopen
6713 failed.
6714
8e704927
GB
67152012-02-01 Gary Benson <gbenson@redhat.com>
6716
09c7a31f 6717 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
6718 (iterate_over_symbols): Use the above.
6719 * symtab.c (iterate_over_symbols): Likewise.
6720 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6721 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6722 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6723 (iterate_name_matcher): Document return values.
6724 (collect_one_symbol): Likewise.
6725 (collect_function_symbols): Likewise.
6726 (collect_symbols): Likewise.
6727
d9680e73
TT
67282012-02-01 Tom Tromey <tromey@redhat.com>
6729
6730 * ada-lang.c (resolve_subexp): Update.
6731 (ada_lookup_symbol_list): Add 'full_search' argument.
6732 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6733 ada_lookup_symbol_list.
6734 (ada_lookup_encoded_symbol): Update.
6735 (get_var_value): Update.
6736 * ada-exp.y (block_lookup): Update.
6737 (write_var_or_type): Update.
6738 (write_name_assoc): Update.
6739 * ada-lang.h (ada_lookup_symbol_list): Update.
6740
72e1143f
TT
67412012-01-31 Tom Tromey <tromey@redhat.com>
6742
6743 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6744 comment.
6745
ab2d2ad3
DE
67462012-01-31 Doug Evans <dje@google.com>
6747
6748 * symtab.h: Remove outdated comment.
e9111bf7 6749 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 6750
bc884eba
JB
67512012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6752
6753 Fix build error in Darwin port.
6754 * i386-darwin-nat.c: Include i386-nat.h.
6755
8fc3fc34
TT
67562012-01-30 Tom Tromey <tromey@redhat.com>
6757
6758 PR breakpoints/13568:
6759 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6760 argument. Check for recursive includes.
6761 (dwarf_decode_macros): Create an include hash.
6762
5d853008
ME
67632012-01-30 Michael Eager <eager@eagercon.com>
6764
6765 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6766 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 6767 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
6768 (powerpc_linux_in_plt_stub): New function.
6769 (powerpc_linux_in_dynsym_resolve_code): New function.
6770 (ppc_skip_trampoline_code): New function.
6771 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6772 Use glibc_skip_solib_resolver.
6773
40478521
JK
67742012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6775
6776 Code cleanup: Make 1440 bytes of data segment read-only.
6777 * arch-utils.c (endian_enum): Make it const char *const [].
6778 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6779 Likewise.
6780 * breakpoint.c (always_inserted_enums): Likewise.
6781 * cli/cli-cmds.c (script_ext_enums): Likewise.
6782 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6783 enumlist parameter const char *const *.
6784 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6785 const char *const *.
6786 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6787 parameter const char *const *.
6788 * cris-tdep.c (cris_modes): Make it const char *const [].
6789 * filesystem.c (target_file_system_kinds): Likewise.
6790 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6791 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6792 (can_use_displaced_stepping_enum, scheduler_enums)
6793 (exec_direction_names): Likewise.
6794 * language.c (_initialize_language): Make the type_or_range_names and
6795 case_sensitive_names variables const char *const [].
6796 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6797 * python/python.c (python_excp_enums): Likewise.
6798 * remote.c (interrupt_sequence_modes): Likewise.
6799 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6800 * serial.c (logbase_enums): Likewise.
6801 * sh-tdep.c (sh_cc_enum): Likewise.
6802 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6803 Likewise.
6804 * symtab.c (multiple_symbols_modes): Likewise.
6805 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6806 Likewise.
6807 * utils.c (internal_problem_modes): Likewise.
6808
b3b8b934
JK
68092012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6810
6811 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6812 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6813 result.
6814
8c85a4e2
DE
68152012-01-27 Doug Evans <dje@google.com>
6816
6817 * configure.ac (with_python): Fix absolute path handling for win32.
6818 * configure: Regenerate.
6819
78d8b4d7
DE
68202012-01-26 Doug Evans <dje@google.com>
6821
eca864fe
DE
6822 * symtab.c: Whitespace cleanup, no code changes.
6823
7e082072
DE
6824 * symtab.c (lookup_symbol_in_language): Improve comment.
6825 (lookup_symbol_aux): Fix comment.
6826
7dc25483
DE
6827 * psymtab.c (add_psymbol_to_list): Result is now "void".
6828 * psympriv.h (add_psymbol_to_list): Update.
6829
78d8b4d7
DE
6830 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6831
4c63965b
JK
68322012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6833
6834 Do not open script filenames twice.
6835 * cli/cli-cmds.c (source_script_from_stream): Pass to
6836 source_python_script also STREAM.
6837 * python/py-auto-load.c (source_section_scripts): Pass to
6838 source_python_script_for_objfile also STREAM.
6839 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6840 also INPUT.
6841 * python/python-internal.h (source_python_script_for_objfile): New
6842 parameter file, rename parameter file to filename.
6843 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6844 instead if !_WIN32. Update the function comment.
6845 (source_python_script, source_python_script_for_objfile)
6846 (source_python_script): New parameter file, rename parameter file to
6847 filename. Pass FILENAME to python_run_simple_file.
6848 * python/python.h (source_python_script): New parameter file, rename
6849 parameter file to filename.
6850
88f38a04
PA
68512012-01-26 Pedro Alves <palves@redhat.com>
6852
6853 * corelow.c (core_has_fake_pid): Delete.
6854 (core_close): Delete references to `core_has_fake_pid'.
6855 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6856 (core_open): Delete references to `core_has_fake_pid'.
6857 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6858 the removed global.
6859
e078317b
JB
68602012-01-26 Joel Brobecker <brobecker@adacore.com>
6861
6862 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6863 Remove language parameter from name_matcher. Adjust the comment.
6864 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6865 Remove language parameter.
6866 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6867 * linespec.c (iterate_name_matcher): Likewise.
6868 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6869 name_matcher. Adjust call accordingly.
6870 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6871 (maintenance_check_symtabs): Adjust type of parameter "fun".
6872 * psymtab.h (maintenance_check_symtabs): Likewise.
6873
74ccd7f5
JB
68742012-01-26 Joel Brobecker <brobecker@adacore.com>
6875
6876 * language.h (symbol_name_match_p_ftype): New typedef.
6877 (struct language_defn): Replace field la_symbol_name_compare
6878 by la_get_symbol_name_match_p.
6879 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6880 (ada_language_defn): Use it.
6881 * linespec.c (struct symbol_matcher_data): New type.
6882 (iterate_name_matcher): Rewrite.
6883 (iterate_over_all_matching_symtabs): Pass a pointer to
6884 a symbol_matcher_data struct to expand_symtabs_matching
6885 instead of just the lookup name.
6886 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6887 opencl-lang.c, p-lang.c, language.c: Delete field
6888 la_symbol_name_compare, and replace by NULL for new field
6889 la_get_symbol_name_match_p.
6890 * symfile.h (struct quick_symbol_functions): Update comment.
6891
5d268276
TT
68922012-01-25 Tom Tromey <tromey@redhat.com>
6893
6894 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6895 dereferencing.
6896
edcc5120
TT
68972012-01-24 Tom Tromey <tromey@redhat.com>
6898
6899 PR symtab/12406:
6900 * solib.c (update_solib_list): Update the program space's
6901 added_solibs and deleted_solibs fields.
6902 * progspace.h (struct program_space) <added_solibs,
6903 deleted_solibs>: New fields.
6904 (clear_program_space_solib_cache): Declare.
6905 * progspace.c (release_program_space): Call
6906 clear_program_space_solib_cache.
6907 (clear_program_space_solib_cache): New function.
6908 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6909 bpstat_stop_status. Use handle_solib_event.
6910 * breakpoint.c: Include gdb_regex.h.
6911 (print_solib_event): New function.
6912 (bpstat_print): Use print_solib_event.
6913 (bpstat_stop_status): Add special case for bp_shlib_event.
6914 (handle_solib_event): New function.
6915 (bpstat_what): Use handle_solib_event.
6916 (struct solib_catchpoint): New.
6917 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6918 (breakpoint_hit_catch_solib, check_status_catch_solib)
6919 (print_it_catch_solib, print_one_catch_solib)
6920 (print_mention_catch_solib, print_recreate_catch_solib): New
6921 functions.
6922 (catch_solib_breakpoint_ops): New global.
6923 (catch_load_or_unload, catch_load_command_1)
6924 (catch_unload_command_1): New functions.
6925 (internal_bkpt_check_status): Add special case for
6926 bp_shlib_event.
6927 (internal_bkpt_print_it): Use print_solib_event.
6928 (initialize_breakpoint_ops): Initialize
6929 catch_solib_breakpoint_ops.
6930 (_initialize_breakpoint): Register "catch load" and "catch
6931 unload".
6932 * breakpoint.h (handle_solib_event): Declare.
6933 * NEWS: Add entry for "catch load" and "catch unload".
6934
fa864999
TT
69352012-01-24 Tom Tromey <tromey@redhat.com>
6936
6937 * ada-lang.c: Include gdb_vecs.h.
6938 * charset.c: Include gdb_vecs.h.
6939 * tracepoint.h: Include gdb_vecs.h.
6940 * gdb_vecs.h: New file.
6941
f90263c1
TT
69422012-01-24 Pedro Alves <pedro@codesourcery.com>
6943
6944 * breakpoint.c (breakpoint_hit_catch_fork)
6945 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6946 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6947 * infrun.c (inferior_has_forked, inferior_has_vforked)
6948 (inferior_has_execd, inferior_has_called_syscall): Delete.
6949 (handle_syscall_event): Get syscall_number from the execution
6950 control state's wait status.
6951 (wait_for_inferior): Don't clear syscall_number.
6952
09ac7c10
TT
69532012-01-24 Pedro Alves <palves@redhat.com>
6954
6955 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6956 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6957 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6958 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6959 `ws' parameter.
6960 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6961 false for events other than TARGET_SIGNAL_TRAP.
6962 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6963 Add `ws' parameter.
6964 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6965 events other than TARGET_SIGNAL_TRAP.
6966 (tracepoint_breakpoint_hit): Add `ws' parameter.
6967 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6968 parameter.
6969 (bpstat_stop_status): Same.
6970 (pc_at_non_inline_function): Same.
6971 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6972 to pass the current event's waitstatus to bpstat_stop_status
6973 and pc_at_non_inline_function.
6974
86eb7e95
JK
69752012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6976
6977 Code cleanup.
6978 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6979 Update the function comment for it.
6980 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6981 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6982 for STREAM.
6983
a9b3a50f
PA
69842012-01-24 Pedro Alves <palves@redhat.com>
6985
6986 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6987 outside `bs->stop' block.
6988 (bpstat_what): Rework bp_shlib_event handling.
6989 (internal_bkpt_check_status): If the breakpoint is a
6990 bp_shlib_event, then set bs->stop and bs->print if
6991 stop_on_solib_events is set.
6992
53fe1783
GB
69932012-01-24 Gary Benson <gbenson@redhat.com>
6994
6995 Delete #if 0'd out code.
6996 * stack.c (print_frame_label_vars): Remove.
6997 (catch_info): Likewise.
6998 (_initialize_stack): Remove "info catch" command.
6999 * NEWS: Mention the above.
7000
49c62f2e
PA
70012012-01-24 Pedro Alves <palves@redhat.com>
7002
7003 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
7004 it.
7005 (remote_notice_new_inferior): If the remote end doesn't support
7006 the multiprocess extensions, then the PID is fake.
7007 (add_current_inferior_and_thread): New.
7008 (remote_start_remote): Use it.
7009 (extended_remote_attach_1): Adjust.
7010 (extended_remote_create_inferior_1): Use
7011 add_current_inferior_and_thread.
7012
d0d8b0c6
JK
70132012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7014
7015 Fix watchpoints to be specific for each inferior.
7016 * breakpoint.c (watchpoint_in_thread_scope): Verify also
7017 current_program_space.
7018 * i386-nat.c (i386_inferior_data_cleanup): New.
7019 (i386_inferior_data_get): Replace variable inf_data_local by an
7020 inferior_data call.
7021 (i386_use_watchpoints): Initialize i386_inferior_data.
7022 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
7023 specific iterate_over_lwps.
7024
4403d8e9
JK
70252012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7026
7027 Fix watchpoints across inferior fork.
7028 * amd64-linux-nat.c (update_debug_registers_callback): Update the
7029 comment for linux_nat_iterate_watchpoint_lwps.
7030 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7031 linux_nat_iterate_watchpoint_lwps.
7032 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
7033 * i386-linux-nat.c (update_debug_registers_callback): Update the
7034 comment for linux_nat_iterate_watchpoint_lwps.
7035 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
7036 linux_nat_iterate_watchpoint_lwps.
7037 (i386_linux_prepare_to_resume): New comment on Linux kernel.
7038 * i386-nat.c: Include inferior.h.
7039 (dr_mirror): Remove.
7040 (i386_inferior_data, struct i386_inferior_data)
7041 (i386_inferior_data_get): New.
7042 (i386_debug_reg_state): Use i386_inferior_data_get.
7043 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
7044 (i386_insert_watchpoint, i386_remove_watchpoint)
7045 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7046 (i386_remove_hw_breakpoint): New variable state, use
7047 i386_debug_reg_state instead of DR_MIRROR.
7048 * linux-nat.c (delete_lwp): New declaration.
7049 (num_lwps): Move here from downwards.
7050 (delete_lwp_cleanup): New.
7051 (linux_child_follow_fork): Create new child_lp, call
7052 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
7053 PTRACE_DETACH.
7054 (num_lwps): Move upwards.
7055 (linux_nat_iterate_watchpoint_lwps): New.
7056 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
7057 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
7058
2992c9a7 70592012-01-24 Joel Brobecker <brobecker@adacore.com>
7060
7061 GDB 7.4 released.
7062
e360902b
PA
70632012-01-23 Pedro Alves <palves@redhat.com>
7064
7065 * top.c (caution): Rename to ...
7066 (confirm): ... this.
7067 (show_caution): Rename to ...
7068 (show_confirm): ... this.
7069 (quit_cover): Adjust.
7070 (init_main): Adjust.
7071 * top.h (caution): Rename to ...
7072 (confirm): ... this.
7073 * utils.c (internal_vproblem, defaulted_query): Adjust.
7074
050a2e1d
PA
70752012-01-23 Pedro Alves <palves@redhat.com>
7076
7077 * top.c (caution): Update comment.
7078 (execute_command): Don't consider the current value of `caution'.
7079
77a35dd8
JK
70802012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7081
7082 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
7083
a71b5a38
UW
70842012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
7085
7086 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7087 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
7088 * target.c (target_fileio_pwrite): Remove buffer address from
7089 debug output.
7090 (target_fileio_pread): Likewise.
7091
d99bd577
UW
70922012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7093
7094 * NEWS: Document remote "info proc" and "generate-core-file".
7095
35c2fab7
UW
70962012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7097
7098 * gdbarch.sh (find_memory_regions): New callback.
7099 * gdbarch.c, gdbarch.h: Regenerate.
7100
7101 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
7102 callback before falling back to target method.
7103
7104 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
7105 (linux_target_install_ops): No longer install it.
7106
7107 * linux-tdep.c (linux_find_memory_regions): New function.
7108 (linux_init_abi): Install it.
7109
6432734d
UW
71102012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7111
7112 * gdbarch.sh (make_corefile_notes): New architecture callback.
7113 * gdbarch.c: Regenerate.
7114 * gdbarch.h: Likewise.
7115
7116 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
7117 before target_make_corefile_notes. If NULL is returned, the
7118 target does not support core file generation.
7119
7120 * linux-nat.c: Include "linux-tdep.h".
7121 (find_signalled_thread, find_stop_signal): Remove.
7122 (linux_nat_do_thread_registers): Likewise.
7123 (struct linux_nat_corefile_thread_data): Likewise.
7124 (linux_nat_corefile_thread_callback): Likewise.
7125 (iterate_over_spus): Likewise.
7126 (struct linux_spu_corefile_data): Likewise.
7127 (linux_spu_corefile_callback): Likewise.
7128 (linux_spu_make_corefile_notes): Likewise.
7129 (linux_nat_collect_thread_registers): New function.
7130 (linux_nat_make_corefile_notes): Replace contents by call to
7131 linux_make_corefile_notes passing linux_nat_collect_thread_registers
7132 as native-only callback.
7133
7134 * linux-tdep.h: Include "bfd.h".
7135 (struct regcache): Add forward declaration.
7136 (linux_collect_thread_registers_ftype): New typedef.
7137 (linux_make_corefile_notes): Add prototype.
7138 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
7139 "regset.h", and "elf-bfd.h".
7140 (find_signalled_thread, find_stop_signal): New functions.
7141 (linux_spu_make_corefile_notes): Likewise.
7142 (linux_collect_thread_registers): Likewise.
7143 (struct linux_corefile_thread_data): New data structure.
7144 (linux_corefile_thread_callback): New funcion.
7145 (linux_make_corefile_notes): Likewise.
7146 (linux_make_corefile_notes_1): Likewise.
7147 (linux_init_abi): Install it.
7148
3030c96e
UW
71492012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7150
7151 * gdbarch.sh (info_proc): New callback.
7152 * gdbarch.c, gdbarch.h: Regenerate.
7153
7154 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
7155 before falling back to the target info_proc callback.
7156
7157 * linux-nat.c: Do not include "cli/cli-utils.h".
7158 (linux_nat_info_proc): Remove.
7159 (linux_target_install_ops): No longer install it.
7160
7161 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
7162 (read_mapping): New function.
7163 (linux_info_proc): Likewise.
7164 (linux_init_abi): Install it.
7165
145b16a9
UW
71662012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7167
7168 * defs.h (enum info_proc_what): Moved here from linux-nat.c
7169 * infcmd.c: (info_proc_cmd_1): New function.
7170 (info_proc_cmd): New function, moved here from equivalent routine
7171 orignally in linux-nat.c.
7172 (info_proc_cmd_mappings): Likewise.
7173 (info_proc_cmd_stat): Likewise.
7174 (info_proc_cmd_status): Likewise.
7175 (info_proc_cmd_cwd): Likewise.
7176 (info_proc_cmd_cmdline): Likewise.
7177 (info_proc_cmd_exe): Likewise.
7178 (info_proc_cmd_all): Likewise.
7179 (_initialize_infcmd): Install "info proc" command and subcommands.
7180
7181 * target.h (struct target_ops): Add to_info_proc.
7182 (target_info_proc): Add prototype.
7183 * target.c (target_info_proc): New function.
7184
7185 * procfs.c (procfs_info_proc): Add prototype.
7186 (info_proc_cmd): Rename into ...
7187 (procfs_info_proc): ... this. Update argument types as appropriate
7188 for a to_info_proc implementation. Handle "what" argument.
7189 (procfs_target): Install procfs_info_proc.
7190 (_initialize_procfs): No longer install "info proc" command.
7191
7192 * linux-nat.c: (enum info_proc_what): Remove.
7193 (linux_nat_info_proc_cmd_1): Rename into ...
7194 (linux_nat_info_proc): ... this. Update argument types as appropriate
7195 for a to_info_proc implementation.
7196 (linux_nat_info_proc_cmd): Remove.
7197 (linux_nat_info_proc_cmd_mappings): Likewise.
7198 (linux_nat_info_proc_cmd_stat): Likewise.
7199 (linux_nat_info_proc_cmd_status): Likewise.
7200 (linux_nat_info_proc_cmd_cwd): Likewise.
7201 (linux_nat_info_proc_cmd_cmdline): Likewise.
7202 (linux_nat_info_proc_cmd_exe): Likewise.
7203 (linux_nat_info_proc_cmd_all): Likewise.
7204 (linux_target_install_ops): Install linux_nat_info_proc.
7205 (_initialize_linux_nat): No longer install "info proc" command
7206 and subcommands.
7207
b9e7b9c3
UW
72082012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7209
7210 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
7211 * config.in, configure: Regenerate.
7212
7213 * target.h (struct target_ops): Add to_fileio_readlink.
7214 (target_fileio_readlink): Add prototype.
7215 * target.c (target_fileio_readlink): New function.
7216
7217 * inf-child.c: Conditionally include <sys/param.h>.
7218 (inf_child_fileio_readlink): New function.
7219 (inf_child_target): Install it.
7220
7221 * remote.c (PACKET_vFile_readlink): New enum value.
7222 (remote_hostio_readlink): New function.
7223 (init_remote_ops): Install it.
7224 (_initialize_remote): Handle vFile:readlink packet type.
7225
7313baad
UW
72262012-01-20 Pedro Alves <palves@redhat.com>
7227 Ulrich Weigand <ulrich.weigand@linaro.org>
7228
7229 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
7230 * config.in, configure: Regenerate.
7231
7232 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
7233 to_fileio_pread, to_fileio_close, to_fileio_unlink.
7234 (target_fileio_open): Add prototype.
7235 (target_fileio_pwrite): Likewise.
7236 (target_fileio_pread): Likewise.
7237 (target_fileio_close): Likewise.
7238 (target_fileio_unlink): Likewise.
7239 (target_fileio_read_alloc): Likewise.
7240 (target_fileio_read_stralloc): Likewise.
7241
7242 * target.c: Include "gdb/fileio.h".
7243 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
7244 (default_fileio_target): New function.
7245 (target_fileio_open): Likewise.
7246 (target_fileio_pwrite): Likewise.
7247 (target_fileio_pread): Likewise.
7248 (target_fileio_close): Likewise.
7249 (target_fileio_unlink): Likewise.
7250 (target_fileio_close_cleanup): Likewise.
7251 (target_fileio_read_alloc_1): Likewise.
7252 (target_fileio_read_alloc): Likewise.
7253 (target_fileio_read_stralloc): Likewise.
7254
7255 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
7256 <fcntl.h>, and <unistd.h>.
7257 (inf_child_fileio_open_flags_to_host): New function.
7258 (inf_child_errno_to_fileio_error): Likewise.
7259 (inf_child_fileio_open): Likewise.
7260 (inf_child_fileio_pwrite): Likewise.
7261 (inf_child_fileio_pread): Likewise.
7262 (inf_child_fileio_close): Likewise.
7263 (inf_child_fileio_unlink): Likewise.
7264 (inf_child_target): Install to_fileio routines.
7265
7266 * remote.c (init_remote_ops): Install to_fileio routines.
7267
901f9912
UW
72682012-01-20 Pedro Alves <palves@redhat.com>
7269 Ulrich Weigand <ulrich.weigand@linaro.org>
7270
7271 * remote.c (remote_multi_process_p): Only check for multi-process
7272 protocol feature, do not check for extended protocol.
7273 (remote_supports_multi_process): Check for extended protocol here.
7274 (set_general_process): Likewise.
7275 (extended_remote_kill): Likewise.
7276 (remote_pid_to_str): Likewise.
7277 (remote_query_supported): Always query multiprocess mode.
7278
e714e1bf
UW
72792012-01-20 Pedro Alves <palves@redhat.com>
7280 Ulrich Weigand <ulrich.weigand@linaro.org>
7281
7282 * inferior.h (struct inferior): Add fake_pid_p.
7283 * inferior.c (exit_inferior_1): Clear fake_pid_p.
7284 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
7285 magic_null_ptid since the remote side doesn't provide a real PID.
7286
50897289
TT
72872012-01-19 Tom Tromey <tromey@redhat.com>
7288
7289 * NEWS: Combine the two Python sections.
7290
1afc2033
JK
72912012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7292
7293 * target.h (target_close): Update comment on the target's unpush state.
7294
305436e0
PA
72952012-01-19 Pedro Alves <palves@redhat.com>
7296
7297 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
7298 linux_nat_async directly instead of going through the target
7299 vector.
7300 * target.c (unpush_target): Close target after unpushing it, not
7301 before.
7302
49323895
GB
73032012-01-19 Gary Benson <gbenson@redhat.com>
7304
7305 * mdebugread.c (sort_blocks): Replace integer constants with ones
7306 derived from FIRST_LOCAL_BLOCK.
7307
1db33378
PP
73082012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
7309 Jan Kratochvil <jan.kratochvil@redhat.com>
7310
7311 PR gdb/9538
7312 * symfile.c (find_separate_debug_file): New function.
7313 (terminate_after_last_dir_separator): Likewise.
7314 (find_separate_debug_file_by_debuglink): Also try realpath.
7315 * configure.ac (AC_CHECK_FUNCS): Add lstat.
7316 * configure: Regenerate.
7317 * config.in: Regenerate.
7318
f83d8a90
DE
73192012-01-18 Doug Evans <dje@google.com>
7320
7321 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7322 (main.o): Remove rule.
7323 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7324 (--with-sysroot): Rewrite.
7325 * configure: Regenerate.
7326 * config.in: Regenerate.
7327
2dbca4d6
SDJ
73282012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
7329
7330 * parse.c (initialize_expout): New function.
7331 (reallocate_expout): Likewise.
7332 (parse_exp_in_context): Use `initialize_expout' and
7333 `reallocate_expout' when appropriate.
7334
0695b514
PA
73352012-01-18 Pedro Alves <palves@redhat.com>
7336
7337 * record.c (struct record_breakpoint, record_breakpoint_p)
7338 (record_breakpoints): New.
7339 (record_insert_breakpoint, record_remove_breakpoint): Manage
7340 record breakpoints list. Only remove breakpoints from the
7341 inferior if they had been inserted there in the first place.
7342
136e1c30
DE
73432012-01-17 Doug Evans <dje@google.com>
7344
7345 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7346 if we know we don't have a file name to look for.
7347
c0bf857d
PA
73482012-01-17 Pedro Alves <palves@redhat.com>
7349
7350 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7351 the frame's stop reason is UNWIND_UNAVAILABLE.
7352
b486de60
JK
73532012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7354
7355 Fix compilation error.
7356 * m2-exp.y (yyerror): Use ANSI C prototype.
7357
d04550a6
SDJ
73582012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7359
7360 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7361 (growbuf_by_size): Likewise.
7362 (yyerror): Likewise.
7363 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7364 (modblock): Remove variable (was #if 0'ed).
7365 (parse_number): Convert prototype from K&R to ANSI C.
7366 (yyerror): Likewise.
7367 * objc-exp.y (parse_number): Likewise.
7368 (yyerror): Likewise.
7369 (yylex): Remove #if 0'ed code.
7370 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7371 (yyerror): Likewise.
7372
4aac40c8
TT
73732012-01-16 Tom Tromey <tromey@redhat.com>
7374
7375 * NEWS: Add item.
7376 * symtab.h (compare_filenames_for_search): Declare.
7377 * symtab.c (compare_filenames_for_search): New function.
7378 (iterate_over_some_symtabs): Use it.
7379 * symfile.h (struct quick_symbol_functions)
7380 <map_symtabs_matching_filename>: Change spec.
7381 * psymtab.c (partial_map_symtabs_matching_filename): Use
7382 compare_filenames_for_search. Update for new spec.
7383 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7384 compare_filenames_for_search. Update for new spec.
7385 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7386
cafec441
TT
73872012-01-16 Tom Tromey <tromey@redhat.com>
7388
7389 PR python/13281:
7390 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7391 (struct main_type) <flag_flag_enum>: New field.
7392 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7393 * NEWS: Add entries.
7394 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7395 enums.
7396 * python/lib/gdb/printing.py (_EnumInstance): New class.
7397 (FlagEnumerationPrinter): Likewise.
7398
983af33b
SDJ
73992012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7400
7401 * breakpoint.c (create_sals_from_address_default): New function.
7402 (create_breakpoints_sal_default): Likewise.
7403 (decode_linespec_default): Likewise.
7404 (is_marker_spec): Removed.
7405 (strace_marker_p): New function.
7406 (init_breakpoint_sal): Using `strace_marker_p' instead of
7407 `is_marker_spec'.
7408 (create_breakpoint): Call method `create_sals_from_address' from
7409 breakpoint_ops, replacing code that created SALs conditionally
7410 on the type of the breakpoint. Call method `create_breakpoints_sal',
7411 replacing code that created breakpoints conditionally on the type
7412 wanted.
7413 (base_breakpoint_create_sals_from_address): New function.
7414 (base_breakpoint_create_breakpoints_sal): Likewise.
7415 (base_breakpoint_decode_linespec): Likewise.
7416 (base_breakpoint_ops): Add methods
7417 `base_breakpoint_create_sals_from_address',
7418 `base_breakpoint_create_breakpoints_sal' and
7419 `base_breakpoint_decode_linespec'.
7420 (bkpt_create_sals_from_address): New function.
7421 (bkpt_create_breakpoints_sal): Likewise.
7422 (bkpt_decode_linespec): Likewise.
7423 (tracepoint_create_sals_from_address): Likewise.
7424 (tracepoint_create_breakpoints_sal): Likewise.
7425 (tracepoint_decode_linespec): Likewise.
7426 (strace_marker_create_sals_from_address): Likewise.
7427 (strace_marker_create_breakpoints_sal): Likewise.
7428 (strace_marker_decode_linespec): Likewise.
7429 (strace_marker_breakpoint_ops): New variable.
7430 (addr_string_to_sals): Remove `marker_spec'. Call method
7431 `decode_linespec' from breakpoint_ops, replacing code that decoded
7432 an address string into a SAL. Use `strace_marker_p' instead of
7433 `marker_spec'.
7434 (strace_command): Decide whether we are dealing with a static
7435 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7436 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7437 * breakpoint.h (linespec_result, linespec_sals): New forward
7438 declarations.
7439 (breakpoint_ops) <create_sals_from_address>,
7440 <create_breakpoints_sal>, <decode_linespec>: New methods.
7441
4795f398
DE
74422012-01-14 Doug Evans <dje@google.com>
7443
7444 * NEWS: Update text for "maint set python print-stack".
7445 It is deprecated in gdb 7.4 and deleted in 7.5.
7446
ee5106fe
EZ
74472012-01-13 Eli Zaretskii <eliz@gnu.org>
7448
7449 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7450 including curses.h.
7451
b161e06f
JK
74522012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7453
7454 * configure: Regenerate.
7455 * config.in: Regenerate.
7456
85254831
KS
74572012-01-12 Keith Seitz <keiths@redhat.com>
7458
7459 PR mi/10586
7460 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7461 (ANONYMOUS_UNION_NAME): Define.
7462 (is_path_expr_parent): New function.
7463 (get_path_expr_parent): New function.
7464 (is_anonymous_child): New function.
7465 (create_child_with_value): If the child is anonymous and without
7466 a name, assign an object name to it.
7467 (c_describe_child): Use get_path_expr_parent to determine
7468 the parent expression.
7469 If there field represents an anonymous struct or union and
7470 has no name, set an appropriate display name and expression.
7471 (cplus_describe_child): Likewise.
7472
620fa63a
PA
74732012-01-12 Pedro Alves <palves@redhat.com>
7474
7475 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7476 available when %ebp is found to be zero (outermost).
7477
2efa2c79
AT
74782012-01-11 Andreas Tobler <andreast@fgznet.ch>
7479
7480 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7481 an internal gdb_static_assert.
7482 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7483
88e7d25d
TT
74842012-01-11 Tom Tromey <tromey@redhat.com>
7485
7486 PR gdb/9598:
7487 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7488 catch" and "catch throw".
7489
72384ba3
PH
74902012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7491
7492 * blockframe.c (block_innermost_frame): Start search from selected
7493 frame, if present, or otherwise the current frame.
7494
7495 * c-exp.y (variable): Update innermost_block for
7496 'block COLONCOLON NAME' clause.
7497 * m2-exp.y (variable): Ditto.
7498 * objc-exp.y (variable): Ditto.
7499
065a711f
TT
75002012-01-10 Tom Tromey <tromey@redhat.com>
7501
7502 PR python/13199:
7503 * python/python.c (finish_python_initialization): Set sys.argv.
7504
f3f5162e
DE
75052012-01-10 Doug Evans <dje@google.com>
7506
7507 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7508 "want_line_info". All callers updated.
7509 (dwarf_decode_lines_1): New function.
7510 (handle_DW_AT_stmt_list): Add function comment.
7511 New arg "want_line_info". All callers updated.
7512 (read_file_scope,read_type_unit_scope): Move comment from
7513 handle_DW_AT_stmt_list to here.
7514
9934703b
JK
75152012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7516
7517 Fix regression after libiberty/ update for GCC PR 6057 and others.
7518 * c-exp.y (operator) <OPERATOR DELETE>
7519 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7520 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7521 (make_builtin_type, make_name): New variable i, add gdb_assert.
7522 (operator) <OPERATOR NEW>: Update ARGS to 3.
7523 (operator) <OPERATOR DELETE>: Add trailing space.
7524 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7525 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7526 * cp-support.c (cp_canonicalize_string): Check NULL from
7527 cp_comp_to_string, call warning and return.
7528
06b9f45f
JK
75292012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7530
7531 Fix duplicate .o files after omitting libbfd.a.
7532 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7533 (SFILES): Add corelow.c.
7534 (COMMON_OBS): Add corelow.o.
7535 (ALLDEPFILES): Remove corelow.c.
7536 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7537 * config/alpha/alpha-osf3.mh: Likewise.
7538 * config/alpha/fbsd.mh: Likewise.
7539 * config/arm/nbsdaout.mh: Likewise.
7540 * config/arm/nbsdelf.mh: Likewise.
7541 * config/i386/i386gnu.mh: Likewise.
7542 * config/ia64/hpux.mh: Likewise.
7543 * config/ia64/linux.mh: Likewise.
7544 * config/m32r/linux.mh: Likewise.
7545 * config/m68k/linux.mh: Likewise.
7546 * config/mips/irix5.mh: Likewise.
7547 * config/mips/irix6.mh: Likewise.
7548 * config/pa/hpux.mh: Likewise.
7549 * config/pa/linux.mh: Likewise.
7550 * config/powerpc/aix.mh: Likewise.
7551 * config/sparc/linux.mh: Likewise.
7552 * config/sparc/linux64.mh: Likewise.
7553 * config/sparc/sol2.mh: Likewise.
7554 * config/vax/vax.mh: Likewise.
7555 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7556 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7557 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7558 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7559 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7560 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7561 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7562 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7563 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7564 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7565 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7566 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7567 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7568 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7569 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7570 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7571 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7572 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7573 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7574 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7575 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7576 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7577 corelow.o from gdb_target_obs.
7578 * corefile.c (core_target): Update the comment on NULL value.
7579 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7580 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7581 MATCHES. Drop YUMMY set on NULL.
7582 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7583 reclaim CORE_DATA if it is already NULL.
7584
34365054
DE
75852012-01-09 Doug Evans <dje@google.com>
7586
7587 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7588 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7589
696166a3
KS
75902012-01-09 Keith Seitz <keiths@redhat.com>
7591
7592 * breakpoint.c (wrapper.h): Don't include.
7593
8e7b59a5
KS
75942012-01-09 Keith Seitz <keiths@redhat.com>
7595
7596 * Makefile.in (SFILES): Remove wrapper.c.
7597 (HFILES_NO_SRCDIR): Remove wrapper.h.
7598 (COMMON_OBS): Remove wrapper.o.
7599 * cli/cli-interp.c: Don't inlude wrapper.h.
7600 * corelow.c: Likewise.
7601 (core_open): Replace gdb_target_find_new_threads with
7602 TRY_CATCH around target_find_new_threads.
7603 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7604 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7605 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7606 evaluate_expression.
7607 (varobj_set_value): Likewise for evaluate_expression and
7608 value_assign.
7609 (install_new_variable): Likewise for value_fetch_lazy.
7610 (adjust_value_for_child_access): Likewise for value_ind.
7611 (c_describe_child): Likewise for value_subscript and
7612 value_ind.
7613 (c_value_of_root): Likewise for evaluate_expression.
7614 * wrapper.c: Remove.
7615 * wrapper.h: Remove.
7616
1a4eeb98
DE
76172012-01-09 Doug Evans <dje@google.com>
7618
9ff913ba
DE
7619 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7620 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7621 "abfd" args with "section". All callers updated.
7622 Error checking code moved ...
7623 (error_check_comp_unit_head): ... here. New function.
7624 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7625 Delete arg "abfd". New arg "type_offset". All callers updated.
7626 (create_debug_types_hash_table): Simplify by using
7627 read_and_check_type_unit_head.
7628
1a4eeb98
DE
7629 * parser-defs.h (namecopy): Delete.
7630 * parse.c (namecopy, namecopy_size): Move into copy_name.
7631
2e6af8c0
JK
76322012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7633
7634 Partially fix duplicate .o files after omitting libbfd.a.
7635 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7636 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7637 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7638 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7639 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7640 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7641 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7642
9f2f828a
PA
76432012-01-09 Pedro Alves <palves@redhat.com>
7644
7645 * MAINTAINERS: Update my email address.
7646
4d72c0bc
DE
76472012-01-08 Doug Evans <dje@google.com>
7648
d467dd73
DE
7649 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7650 n_type_units. Rename type_comp_units to all_type_units.
7651 All uses updated.
7652 (add_signatured_type_cu_to_table): Renamed from
7653 add_signatured_type_cu_to_list. All callers updated.
7654
4d72c0bc
DE
7655 * gdbtypes.h (struct cplus_struct_type): Delete member
7656 nfn_fields_total. All uses removed.
7657
21b2bd31
DE
76582012-01-06 Doug Evans <dje@google.com>
7659
7660 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7661 to top of file.
7662 (dwarf2_find_comp_unit): Delete.
7663 (process_psymtab_comp_unit): Make result "void".
7664 Delete args buffer, info_ptr, buffer_size, and replace with
7665 "section". All callers updated.
7666 (dwarf2_build_psymtabs_hard): Simplify.
7667
bfd189b1
SDJ
76682012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7669 Thiago Jung Bauermann <bauerman@br.ibm.com>
7670
7671 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7672 before `struct gdb_exception'.
7673 * breakpoint.c (update_global_location_list_nothrow)
7674 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7675 * cp-abi.c (value_rtti_type): Likewise.
7676 * cp-support.c (cp_validate_operator): Likewise.
7677 * infrun.c (insert_exception_resume_breakpoint)
7678 (check_exception_resume, keep_going): Likewise.
7679 * mi-interp.c (mi_breakpoint_created)
7680 (mi_breakpoint_modified): Likewise.
7681 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7682 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7683 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7684
6b07635f
DE
76852012-01-05 Doug Evans <dje@google.com>
7686
0b30b85c
DE
7687 * dwarf2read.c (statement_prologue): Delete, unused.
7688
98714339
DE
7689 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7690 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7691
6b07635f
DE
7692 * dwarf2read.c (comp_unit_header): Delete, unused.
7693
761f4555
UW
76942012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7695
7696 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7697 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7698
2ca0b532
PA
76992012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7700
7701 * infrun.c (normal_stop): Don't skip calling the normal_stop
7702 observers if the thread was doing a multi-step, but stopped for
7703 some reason other than stepping.
7704
50aeff07
PA
77052012-01-05 Pedro Alves <alves.ped@gmail.com>
7706
7707 * cli/cli-decode.h: Add comments.
7708 (CMD_LIST_AMBIGUOUS): Moved to command.h
7709 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7710 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7711 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7712 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7713 (add_com, add_com_alias, add_info, add_info_alias)
7714 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7715 declarations.
7716 * command.h: Add and adjust comments.
7717 (CMD_LIST_AMBIGUOUS): Moved here.
7718 (help_cmd, help_cmd_list): Delete declarations.
7719
5953832c
DE
77202012-01-04 Doug Evans <dje@google.com>
7721
e5fe5e75
DE
7722 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7723 All callers updated.
7724 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7725 Replace all arguments with "per_cu". All callers updated.
7726
28dee7f5
DE
7727 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7728
23745b47
DE
7729 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7730 New arg "per_cu". All callers updated.
7731
5953832c
DE
7732 Delete #if 0'd out code.
7733 * language.c (binop_result_type): Delete.
7734 (simple_type, ordered_type, same_type, integral_type): Delete.
7735 (numeric_type, character_type, string_type, boolean_type): Delete.
7736 (float_type, structured_type): Delete.
7737 * language.h: Update.
7738
0f5b7562
TT
77392012-01-04 Tom Tromey <tromey@redhat.com>
7740
7741 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7742
78218f56
JB
77432012-01-04 Joel Brobecker <brobecker@adacore.com>
7744
7745 * corefile.c (close_exec_file): Delete.
7746 (reopen_exec_file): Remove commented out code that seems related
7747 to close_exec_file, which is being deleted here.
7748 * inferior.h (close_exec_file): Delete.
7749 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7750
0fcd72ba
JB
77512012-01-04 Joel Brobecker <brobecker@adacore.com>
7752
7753 * ada-lang.c: #include "cli/cli-utils.h".
7754 (get_selections): Use skip_spaces.
7755 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7756 (catch_ada_exception_command_split): Use skip_spaces.
7757 (ada_decode_assert_location): Likewise.
7758
1dabb4c4
JB
77592012-01-04 Joel Brobecker <brobecker@adacore.com>
7760
7761 * linespec.c (decode_line_internal): Check for C++ or Java
7762 compound constructs only if the current language is C, C++
7763 or Java.
7764
5931a2fa
JK
77652012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7766
7767 Revert:
7768 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7769 Joel Brobecker <brobecker@adacore.com>
7770 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7771 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7772 3 times.
7773 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7774 fall through into AT_ENTRY_POINT.
7775 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7776 DUMMY_ADDR with it.
7777 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7778 PPC_INSN_SIZE skip to 3 times.
7779
1a2da5ee
JB
77802012-01-04 Joel Brobecker <brobecker@adacore.com>
7781
7782 * linespec.c (add_minsym): Preserve function descriptors.
7783
8645ff69
UW
77842012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7785
7786 * breakpoint.c (all_locations_are_pending): Consider locations
7787 in program spaces executing during startup pending as well.
7788
0b302171
JB
77892012-01-04 Joel Brobecker <brobecker@adacore.com>
7790
7791 Copyright year update in most files of the GDB Project.
7792
8ba098ad
JB
77932012-01-04 Joel Brobecker <brobecker@adacore.com>
7794
7795 * copyright.sh: Delete.
7796 * copyright.py: Rewrite.
7797
09c01c30
JB
77982012-01-04 Joel Brobecker <brobecker@adacore.com>
7799
7800 * gnulib/extra/update-copyright: New file, imported from gnulib.
7801
3c36c0af
JB
78022012-01-04 Joel Brobecker <brobecker@adacore.com>
7803
7804 * README (Copyright and License Notices): New section.
7805
888fe1e1
TT
78062012-01-03 Tom Tromey <tromey@redhat.com>
7807
7808 PR python/12533:
7809 * python/py-value.c (valpy_dereference, valpy_get_address
7810 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7811 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7812 (valpy_absolute, valpy_richcompare): Free intermediate values.
7813
6e681866
JB
78142011-01-03 Joel Brobecker <brobecker@adacore.com>
7815
7816 * ada-lang.c: Reformat the copyright notice.
7817
0cd09acb
JK
78182012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7819
7820 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7821 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7822 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7823 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7824 Revert this part of:
7825 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7826 Build gdb directly from *.o files not using libgdb.a.
7827 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7828
12c3e59c
JB
78292012-01-02 Joel Brobecker <brobecker@adacore.com>
7830
7831 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7832 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7833 Reformat the copyright header.
7834
11bf1490
JK
78352012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7836
7837 Revert this part of:
7838 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7839 Remove the gdbtui binary.
7840 * gdb.c (main): Remove args.interpreter_p initialization.
7841 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7842 * main.h (struct captured_main_args): Remove interpreter_p.
7843
1fef196f
JB
78442012-01-02 Joel Brobecker <brobecker@adacore.com>
7845
7846 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7847
67827812
JB
78482012-01-02 Joel Brobecker <brobecker@adacore.com>
7849
7850 * top.c (print_gdb_version): Update copyright year.
7851
a4d0b831
YQ
78522012-01-02 Yao Qi <yao@codesourcery.com>
7853
7854 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7855
b5914469
JK
78562012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7857 Joel Brobecker <brobecker@adacore.com>
7858
7859 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7860 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7861 3 times.
7862 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7863 fall through into AT_ENTRY_POINT.
7864 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7865 DUMMY_ADDR with it.
7866 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7867 PPC_INSN_SIZE skip to 3 times.
7868
8da828f7
JK
78692012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7870
7871 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7872 the return value.
7873 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7874
8574e74b
JK
78752012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7876
7877 Build gdb directly from *.o files not using libgdb.a.
7878 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7879 (COMMON_OBS): Remove solib-target.o.
7880 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7881 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7882 (LIBGDB_OBS, libgdb.a): Move it above.
7883 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7884 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7885 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7886 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7887 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7888 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7889 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7890 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7891 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7892 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7893 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7894 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7895 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7896 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7897 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7898 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7899 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7900 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7901 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7902 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7903 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7904 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7905 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7906 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7907 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7908 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7909 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7910
217bff3e
JK
79112012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7912
7913 Remove the gdbtui binary.
7914 * .gitignore (/gdbtui): Remove.
7915 * Makefile.in (TUI): Remove.
7916 (SUBDIR_TUI_OBS): Remove tui-main.o.
7917 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7918 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7919 (tui-main.o): Remove.
7920 (all_object_files): Remove tui-main.o.
7921 * NEWS: New note for the gdbtui removal.
7922 * configure: Rebuilt.
7923 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7924 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7925 CONFIG_UNINSTALL respectively.
7926 * gdb.c (main): Remove args.interpreter_p initialization.
7927 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7928 * main.h (struct captured_main_args): Remove interpreter_p.
7929 * tui/tui-main.c: Remove.
7930
9cdd5dbd
DE
79312012-01-01 Doug Evans <dje@google.com>
7932
bb5ed363
DE
7933 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7934 (dwarf2_physname, read_import_statement): Ditto.
7935 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7936 (process_structure_scope read_subroutine_type): Ditto.
7937 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7938 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7939 (dwarf2_fetch_die_location_block): Ditto.
7940 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7941
a0f42c21
DE
7942 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7943 All callers updated.
7944 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7945 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7946 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7947
2dc860c0
DE
7948 * dwarf2read.c (load_cu): Move assert to more useful location.
7949
68dc6402
DE
7950 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7951 All callers updated.
7952
9cdd5dbd
DE
7953 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7954 (dwarf2_elf_names): Minor reformat.
7955 (dwarf2_per_cu_data): Tweak comment.
7956 (dwarf2_read_section): Fix comment.
7957 (create_all_comp_units): Fix comment.
7958 (load_full_comp_unit): Fix comment.
7959 (process_full_comp_unit): Fix comment.
7960 (read_signatured_type): Fix comment.
7961
0c10e53e 7962For older changes see ChangeLog-2011.
c906108c
SS
7963\f
7964Local Variables:
7965mode: change-log
7966left-margin: 8
7967fill-column: 74
7968version-control: never
57da7796 7969coding: utf-8
c906108c 7970End:
This page took 1.81332 seconds and 4 git commands to generate.