gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7afa1642
JK
12012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
4 followed by a whitespace.
5
dc7650b8
JK
62012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7
28e66c70 8 PR gdb/14494.
dc7650b8
JK
9 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
10 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
11 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
12 here.
13
1591a1e8
PA
142012-08-27 Wei-cheng Wang <cole945@gmail.com>
15
16 * memattr.c (create_mem_region): Fix memory region overlapping
17 checking.
18
ecfb0d68
SP
192012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
20
21 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
22 with xmalloc/cleanup.
23 * mt-tdep.c (mt_push_dummy_call): Likewise.
24 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
25 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
26
8c56c1b9
YQ
272012-08-24 Yao Qi <yao@codesourcery.com>
28
29 * jv-exp.y (push_expression_name): Add "." at the end of error
30 message.
31
e3480f4a
YPK
322012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
33
34 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
35 * python/python.c (_initialize_python): Update documentation.
36
dfbd5e7b
PA
372012-08-23 Pedro Alves <palves@redhat.com>
38
39 * infrun.c (_initialize_infrun) <handle command help text>:
40 Mention that multiple signals are supported.
41
2edda2ff
PA
422012-08-23 Pedro Alves <palves@redhat.com>
43
44 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
45 string.
46
8d735b87
YQ
472012-08-23 Yao Qi <yao@codesourcery.com>
48
49 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
50 (tfind_1): Don't call registers_changed, set_traceframe_num,
51 and clear_traceframe_info.
52 Call set_current_traceframe.
53 (set_current_traceframe): call set_traceframe_num.
54
c5d9b215
SDJ
552012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
56
57 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
58 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
59
037bbc8e
YPK
602012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
61
62 Enable readline in Python in a GDB-specific way and block the
63 standard Python readline module to prevent conflicts with GDB.
64 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
65 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
66 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
67 * python/py-gdb-readline.c: New file.
68 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
69 prototype.
70 * python/python.c (_initialize_python): Call
71 gdbpy_initialize_gdb_readline.
72
406b1477
KS
732012-08-22 Keith Seitz <keiths@redhat.com>
74
75 * defs.h: Include build-gnulib/config.h
76
6ca1b147
JM
772012-08-22 Joseph Myers <joseph@codesourcery.com>
78
79 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
80 and blx pc.
81
8315665e
YPK
822012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
83
84 Add a new "python-interactive" command that starts a standard
85 Python interactive prompt with "pi" as alias, and add "py" as
86 an alias to "python".
87 * NEWS: Mention the new commands.
8315665e
YPK
88 * python/python.c (eval_python_command): New function.
89 (python_interactive_command): For "python-interactive" with
90 arguments, call eval_python_command. For "python-interactive"
91 without arguments, call PyRun_InteractiveLoop.
92 (_initialize_python): Add "python-interactive" command with
93 "pi" as alias, and add "py" as an alias to "python".
94
522002f9
TT
952012-08-22 Tom Tromey <tromey@redhat.com>
96
97 * defs.h (quit_flag): Don't declare.
98 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
99 (QUIT): Use new functions.
100 * event-top.c (command_handler): Use clear_quit_flag.
101 (handle_sigint): Use set_quit_flag.
102 (async_request_quit): Use check_quit_flag. Don't check
103 immediate_quit.
104 * exceptions.c (throw_exception): Use clear_quit_flag.
105 * main.c (captured_main): Use clear_quit_flag.
106 * python/python.c (clear_quit_flag, set_quit_flag)
107 (check_quit_flag): New functions.
108 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
109 clear_quit_flag.
110 * remote.c (remote_wait_as): Use check_quit_flag,
111 clear_quit_flag.
112 (remote_start_remote): Call QUIT.
113 * symfile.c (load_progress): Use check_quit_flag.
114 * top.c (command_loop): Use clear_quit_flag.
115 (command_line_input): Call QUIT.
116 * utils.c (quit_flag): Conditionally define.
117 (clear_quit_flag, check_quit_flag, set_quit_flag): New
118 functions.
119 (prompt_for_continue): Call QUIT. Use quit, not
120 async_request_quit.
121 * remote-mips.c (mips_expect_timeout): Call QUIT.
122 * monitor.c (monitor_expect): Call QUIT.
123
b583003e
TT
1242012-08-22 Tom Tromey <tromey@redhat.com>
125
126 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
127 (async_init_signals): Update.
128 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
129 (SIGWINCH_HANDLER_BODY): Remove.
130
e1507e95
TT
1312012-08-22 Tom Tromey <tromey@redhat.com>
132
133 * jit.c (jit_object_close_impl): Don't malloc the objfile
134 name.
135 * objfiles.c (allocate_objfile): Don't malloc the objfile
136 name.
137 (free_objfile): Don't free the objfile name.
138 * objfiles.h (struct objfile) <name>: Update comment.
139 * symfile.c (reread_symbols): Fix reference counting. Don't
140 malloc objfile name.
141
1c00ec6b
TT
1422012-08-22 Tom Tromey <tromey@redhat.com>
143
144 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
145 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
146 (symfile_bfd_open): Likewise.
147 (generic_load): Likewise.
148 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
149 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
150 gdb_bfd_open.
151 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
152 Use gdb_bfd_open.
153 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
154 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
155 (pmon_load_fast): Likewise.
156 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
157 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
158 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
159 (macho_check_dsym): Likewise.
160 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
161 (m32r_upload_command): Likewise.
162 * gdb_bfd.h (gdb_bfd_cache): Declare.
163 * gdb_bfd.c (struct gdb_bfd_data): New.
164 (gdb_bfd_cache): New global.
165 (struct gdb_bfd_cache_search): New.
166 (hash_bfd): New function.
167 (eq_bfd): Likewise.
168 (gdb_bfd_open): Likewise.
169 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
170 (gdb_bfd_unref): Remove closed BFD from cache. Update for
171 gdb_bfd_data.
172 * exec.c (exec_file_attach): Use gdb_bfd_open.
173 * dsrec.c (load_srec): Use gdb_bfd_open.
174
6532ff36
TT
1752012-08-22 Tom Tromey <tromey@redhat.com>
176
177 * dwarf2read.c (macro_start_file): Update.
178 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
179 (free_objfile_per_bfd_storage): Destroy macro_cache.
180 (allocate_objfile, free_objfile): Update.
181 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
182 New field.
183 (struct objfile) <macro_cache>: Remove.
184 * symfile.c (reread_symbols): Update.
185 * symmisc.c (print_symbol_bcache_statistics): Update.
186 (print_objfile_statistics): Update.
187
706e3705
TT
1882012-08-22 Tom Tromey <tromey@redhat.com>
189
190 * elfread.c (elf_symtab_read): Update.
191 * objfiles.c (objfiles_bfd_data): New global.
192 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
193 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
194 (allocate_objfile, free_objfile): Update.
195 (_initialize_objfiles): Initialize objfiles_bfd_data.
196 * objfiles.h (struct objfile_per_bfd_storage): New.
197 (struct objfile) <per_bfd>: New field.
198 <filename_cache>: Remove.
199 (set_objfile_per_bfd): Declare.
200 * symfile.c (reread_symbols): Update. Call
201 set_objfile_per_bfd.
202 (allocate_symtab): Update.
203 * symmisc.c (print_symbol_bcache_statistics): Update.
204 (print_objfile_statistics): Print the size of the BFD obstack.
205
e992eda4
TT
2062012-08-22 Tom Tromey <tromey@redhat.com>
207
208 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
209 * gdb_bfd.c: Use DEFINE_REGISTRY.
210 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
211 (gdb_bfd_ref): Call bfd_alloc_data.
212 (gdb_bfd_unref): Call bfd_free_data.
213
6b81941e
TT
2142012-08-22 Tom Tromey <tromey@redhat.com>
215
216 * registry.h (struct registry_fields): New.
217 (REGISTRY_FIELDS): Redefine.
218 (REGISTRY_ACCESS_FIELD): New macro.
219 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
220 functions.
221
8e260fc0
TT
2222012-08-22 Tom Tromey <tromey@redhat.com>
223
224 * auto-load.c (_initialize_auto_load): Update.
225 * solib-svr4.c (_initialize_svr4_solib): Update
226 * solib-dsbt.c (_initialize_dsbt_solib): Update.
227 * solib-darwin.c (_initialize_darwin_solib): Update.
228 * registry.h: New file.
229 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
230 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
231 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
232 (register_program_space_data_with_cleanup)
233 (register_program_space_data, program_space_alloc_data)
234 (clear_program_space_data, set_program_space_data)
235 (program_space_data): Don't declare.
236 * progspace.c: Use DEFINE_REGISTRY.
237 (struct program_space_data, struct
238 program_space_data_registration, struct
239 program_space_data_registry, program_space_data_registry)
240 (register_program_space_data_with_cleanup)
241 (register_program_space_data, program_space_alloc_data)
242 (program_space_free_data, clear_program_space_data)
243 (set_program_space_data, program_space_data): Remove.
244 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
245 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
246 (register_objfile_data_with_cleanup, register_objfile_data)
247 (clear_objfile_data, set_objfile_data, objfile_data): Don't
248 declare.
249 * objfiles.c: Use DEFINE_REGISTRY.
250 (struct objfile_data, struct objfile_data_registration, struct
251 objfile_data_registry, objfile_data_registry)
252 (register_objfile_data_with_cleanup, register_objfile_data)
253 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
254 (set_objfile_data, objfile_data): Remove.
255 (_initialize_objfiles): Update.
256 * jit.c (_initialize_jit): Update.
257 * inflow.c (_initialize_inflow): Update.
258 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
259 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
260 (register_inferior_data_with_cleanup, register_inferior_data)
261 (clear_inferior_data, set_inferior_data, inferior_data): Don't
262 declare.
263 * inferior.c: Use DEFINE_REGISTRY.
264 (struct inferior_data, struct inferior_data_registration, struct
265 inferior_data_registry, inferior_data_registry)
266 (register_inferior_data_with_cleanup, register_inferior_data)
267 (inferior_alloc_data, inferior_free_data clear_inferior_data)
268 (set_inferior_data, inferior_data): Remove.
269 * auxv.c (_initialize_auxv): Update.
270 * ada-lang.c (_initialize_ada_language): Update.
271 * breakpoint.c (_initialize_breakpoint): Update.
272 * i386-nat.c (i386_use_watchpoints): Update.
273
ed9eebaf
TT
2742012-08-22 Tom Tromey <tromey@redhat.com>
275
276 * exec.c (exec_close, exec_file_attach): Update.
277 (add_to_section_table): Initialize 'key' field.
278 (add_target_sections, remove_target_sections): Add 'key' argument.
279 * exec.h (add_target_sections, remove_target_sections): Add
280 'key' argument.
281 * solib.c (solib_map_sections, update_solib_list, clear_solib)
282 (reload_shared_libraries_1): Update.
283 * target.h (struct target_section) <key>: New field.
284
2f2e97fa
TT
2852012-08-22 Tom Tromey <tromey@redhat.com>
286
287 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
288
b3dbbd6f
PM
2892012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
290
291 * symfile.c (allocate_symtab): Use host_address_to_string
292 function instead of cast of pointer to long which is not
293 compatible with x86_64-w64-mingw32 build.
294
f94363d7
AP
2952012-08-19 Andrew Pinski <apinski@cavium.com>
296
297 * mips-tdep.c (is_octeon): New function.
298 (is_octeon_bbit_op): New function.
299 (mips32_next_pc): Handle Octeon's bbit instructions.
300 (mips32_instruction_has_delay_slot): Likewise.
301
78a59c2f
AP
3022012-08-19 Andrew Pinski <apinski@cavium.com>
303
304 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
305 before the function.
306
4f5bcb50
AP
3072012-08-19 Andrew Pinski <apinski@cavium.com>
308
309 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
310
e5afdbd7
KS
3112012-08-19 Keith Seitz <keiths@redhat.com>
312
313 PR c++/14365
314 * c-typeprint.c (c_type_print_varspec_prefix): Pass
315 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
316
13c9750e
EZ
3172012-08-18 Eli Zaretskii <eliz@gnu.org>
318
319 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
320 The typo broke "make TAGS".
321
db761810 3222012-08-17 Joel Brobecker <brobecker@adacore.com>
323
324 GDB 7.5 released.
325
a451cb65
KS
3262012-08-17 Keith Seitz <keiths@redhat.com>
327
328 PR c++/13356
329 * gdbtypes.c (strict_type_checking): New variable.
330 (show_strict_type_checking): New function.
331 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
332 if strict type checking is disabled.
333 (_initialize_gdbtypes): Add "check type" subcommand.
334 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
335
3362012-08-17 Keith Seitz <keiths@redhat.com>
337
338 * language.h (type_mode): Remove.
339 (type_check): Remove.
340 (struct language_defn): Remove la_type_check.
341 (STRICT_TYPE): Remove unused macro.
342 (type_error): Remove.
343 * language.c (set_type_range_case): Renamed to ...
344 (set_range_case): ... this. Update all callers.
345 Remove type_mode/type_check.
346 (type_mode): Remove.
347 (type_check): Remove.
348 (show_type_command): Remove.
349 (set_type_command): Remove.
350 (language_info): Remove type checking output.
351 (type_error): Remove unused function.
352 (range_error): Update comment.
353 (unknown_language_defn): Remove la_type_check.
354 (auto_language_defn): Likewise.
355 (local_language_defn): Likewise.
356 (_initialize_language): Remove "check type" subcommand.
357 * ada-lang.c (ada_language_defn): Remove la_type_check.
358 * c-lang.c (c_language_defn): Likewise.
359 (cplus_language_defn): Likewise.
360 (asm_language_defn): Likewise.
361 (minimal_language_defn): Likewise.
362 * d-lang.c (d_language_defn): Likewise.
363 * f-lang.c (f_language_defn): Likewise.
364 * go-lang.c (go_language_defn): Likewise.
365 * jv-lang.c (java_language_defn): Likewise.
366 * m2-lang.c (m2_language_defn): Likewise.
367 * objc-lang.c (objc_language_defn): Likewise.
368 * opencl-lang.c (opencl_language_defn): Likewise.
369 * p-lang.c (pascal_language_defn): Likewise.
370
dbf6a605
MF
3712012-08-16 Mike Frysinger <vapier@gentoo.org>
372
373 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
374
973e3cf7
JB
3752012-08-16 Joel Brobecker <brobecker@adacore.com>
376
377 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
378 New function.
379 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
380 using the regache. Use ia64_hpux_get_register_from_save_state_t
381 to access the bsp and bspstore registers if not.
382
d80ee84f
JB
3832012-08-16 Joel Brobecker <brobecker@adacore.com>
384
385 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
386 * breakpoint.c (detach_breakpoints): Change pid parameter into
387 a ptid. Adjust code accordingly.
388 * infrun.c (handle_inferior_event): Delete variable child_pid.
389 Update call to detach_breakpoints to pass the child ptid for
390 fork events.
391 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
392 assert that inferior_ptid's lwp is zero.
393 (linux_handle_extended_wait): Update call to detach_breakpoints.
394 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
395 detach_breakpoints.
396
2dcc6086
JB
3972012-08-16 Joel Brobecker <brobecker@adacore.com>
398
399 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
400 parent, only call detach_breakpoints if tts.tts_event ==
401 TTEVT_VFORK.
402
0c92d8c1
JB
4032012-08-16 Joel Brobecker <brobecker@adacore.com>
404
405 * dwarf2-frame.c (dwarf2_frame_cache): Use
406 get_frame_address_in_block instead of get_frame_pc as
407 the bound for executing the frame's FDE.
408
6b1755ce
YQ
4092012-08-16 Yao Qi <yao@codesourcery.com>
410
411 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
412 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
413 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
414 (c_type_print_varspec_suffix): Likewise.
415 * eval.c (evaluate_subexp_standard): Likewise.
416 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
417 (f_type_print_varspec_suffix): Likewise.
418 * gdbtypes.c (is_scalar_type): Likewise.
419 (recursive_dump_type): Likewise.
420 * infcall.c (value_arg_coerce): Likewise.
421 * m2-valprint.c (m2_val_print): Likewise.
422 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
423 (pascal_type_print_varspec_suffix): Likewise.
424 (pascal_type_print_base): Likewise.
425 * p-valprint.c (pascal_val_print): Likewise.
426 (pascal_val_print): Likewise.
427 * valops.c (value_slice): Likewise.
428 * valprint.c (scalar_type_p): Likewise.
429 * valarith.c (value_bitstring_subscript): Remove.
430 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
431 Remove comment on TYPE_CODE_BITSTRING.
432
433 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
434 TYPE_CODE_BITSTRING.
435
436 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
437 slot 0.
438
8acc4065
YQ
4392012-08-16 Yao Qi <yao@codesourcery.com>
440
441 * tracepoint.c (trace_find_none_command): Remove.
442 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
443
8128fd8e
YQ
4442012-08-16 Yao Qi <yao@codesourcery.com>
445
446 * remote.c (handle_notification): Remove parameter 'length'.
447 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
448
2873700e
KS
4492012-08-15 Keith Seitz <keiths@redhat.com>
450
451 * gdbtypes.c (opaque_type_resolution): Make static.
452 Add missing comment.
453 (overload_debug): Add missing comment.
454 (show_opaque_type_resolution): Likewise.
455 (show_overload_debug): Likewise.
456 (print_bit_vector): Remove unnecessary forward declaration.
457 (print_arg_types): Likewise.
458 (dump_fn_fieldlists): Likewise.
459 (print_cplus_stuff): Likewise.
460
b82d08cd
TT
4612012-08-15 Tom Tromey <tromey@redhat.com>
462
463 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
464 (gdb_bfd_ref): Initialize new field.
465 (gdb_bfd_unref): Unref the archive BFD.
466 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
467 parent archive.
468
db6573d6
TT
4692012-08-15 Tom Tromey <tromey@redhat.com>
470
471 PR python/14387:
472 * python/py-bpevent.c (create_breakpoint_event_object): Update
473 comment.
474 * python/py-event.c (evpy_add_attribute): Update comment.
475 * python/py-exitedevent.c (create_exited_event_object): Fix
476 reference counting and error handling.
477 * python/py-newobjfileevent.c (create_new_objfile_event_object):
478 Fix reference counting.
479 * python/py-signalevent.c (create_signal_event_object): Fix
480 reference counting and error handling.
481 * python/py-stopevent.c (emit_stop_event): Fix reference
482 counting.
483 * python/py-threadevent.c (get_event_thread): Return a
484 borrowed reference.
485 * python/py-type.c (convert_field): Fix reference counting.
486
a036ba48
TT
4872012-08-15 Tom Tromey <tromey@redhat.com>
488
489 * dwarf2read.c (dwarf_decode_macro_bytes)
490 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
491 as hash key.
492
486c7739
MF
4932012-08-14 Mike Frysinger <vapier@gentoo.org>
494
495 * infcmd.c (_initialize_infcmd): Update help text for the signal,
496 stepi, nexti, finish, next, step, jump, and continue commands.
497 * infrun.c (_initialize_infrun): Update help text for the handle
498 command.
499
4cf93a03
DE
5002012-08-14 Doug Evans <dje@google.com>
501
70b099cf
DE
502 * gdbtypes.c (struct extra): Delete, unused.
503
5212577a
DE
504 * gdbtypes.c: Whitespace cleanup.
505 (address_space_name_to_int): Remove "extern" from definition.
506 (_initialize_gdbtypes): Declare with initialize_file_ftype.
507
4cf93a03
DE
508 * gdbtypes.c (make_pointer_type): Remove redundant setting of
509 TYPE_POINTER_TYPE (type).
510
3756ef7e
GB
5112012-08-14 Gary Benson <gbenson@redhat.com>
512
513 * solib-svr4.c (svr4_free_library_list): Use free_so.
514
40d72643
MF
5152012-08-13 Mike Frysinger <vapier@gentoo.org>
516
517 * .gitignore: Add go-exp.c.
518
f47f77df
DE
5192012-08-13 Doug Evans <dje@google.com>
520
521 * value.c (show_convenience): Tweak comment.
522 (_initialize_values): Mention convenience functions in the help text
523 for "show convenience".
524
7507c54a
YQ
5252012-08-13 Yao Qi <yao@codesourcery.com>
526
527 * std-operator.def: Remove TERNOP_SLICE_COUNT.
528 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
529 TERNOP_SLICE_COUNT.
530 * eval.c (evaluate_subexp_standard): Likewise.
531 * expprint.c (print_subexp_standard): Likewise.
532 (dump_subexp_body_standard): Likewise.
533 * parse.c (operator_length_standard): Likewise.
534
5cad9736
YQ
5352012-08-13 Yao Qi <yao@codesourcery.com>
536
537 * std-operator.def: Remove OP_BITSTRING.
538 * breakpoint.c (watchpoint_exp_is_const): Update.
539 * eval.c (evaluate_subexp_standard): Remove handling to
540 OP_BITSTRING.
541 * expprint.c (print_subexp_standard): Likewise.
542 (dump_subexp_body_standard): Likewise.
543 * parse.c (operator_length_standard): Likewise.
544 * valops.c (value_bitstring): Remove.
545 * value.h: Remove the declaration of 'value_bitstring'.
546
bad7670a
SDJ
5472012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
548
549 * linespec.c (find_methods): Remove unused variables `i1' and
550 `name_len'.
551 (decode_line_full): Likewise for `arg_start'.
552
d9dce7fa
SDJ
5532012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
554
555 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
556 (zlib_decompress_section): Likewise for `section_data'.
557 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
558
a72c3253
DE
5592012-08-10 Doug Evans <dje@google.com>
560
561 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
562 * NEWS: Document them.
563 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
564 function/strfns.py.
565 * python/py-type.c (typy_array_1): New function.
566 (typy_array): Call it.
567 (typy_vector): New function.
568 (type_object_methods): Add "vector".
569 * python/lib/gdb/function/__init__.py: New file.
570 * python/lib/gdb/function/strfns.py: New file.
571
200bc880
SP
5722012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
573
574 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
575 for TYPE_FIELD_BITPOS.
576 (typy_get_sizeof): Likewise for TYPE_LENGTH.
577
de0bea00
MF
5782012-08-10 Mike Frysinger <vapier@gentoo.org>
579
580 PR cli/10436:
581 * common/vec.h (VEC_merge): Define.
582 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
583 (DEF_VEC_ALLOC_FUNC_P): Likewise.
584 (DEF_VEC_ALLOC_FUNC_O): Likewise.
585 * completer.c: Include gdb_signals.h.
586 (signal_completer): Define.
587 * completer.h (signal_completer): Add prototype.
588 * infcmd.c (_initialize_infcmd): Assign the command
589 completer for "signal" to handle_completer.
590 * infrun.c: Include completer.h.
591 (handle_completer): Define.
592 (_initialize_infrun): Declare a new local variable c. Store the
593 result of add_com("handle") to it. Assign the command
594 completer for "handle" to handle_completer.
595
5b9afe8a
YQ
5962012-08-09 Yao Qi <yao@codesourcery.com>
597
598 * cli/cli-decode.c (set_cmd_prefix): New.
599 (lookup_cmd_for_prefixlist): New.
600 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
601 of each cmd_list_element in *prefixlist.
602 (add_setshow_cmd_full): set_cmd_prefix.
603 (add_alias_cmd): Likewise.
604 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
605 Declare 'auto_boolean_enums'.
606 * cli/cli-setshow.c: Include "observer.h".
607 (notify_command_param_changed_p): New.
608 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
609 Remove 'static'.
610 (do_setshow_command): Split it to ...
611 (do_set_command, do_show_command): ... them. New.
612 (do_set_command): Call observer_notify_command_param_changed if
613 notify_command_param_changed_p returns true.
614 (cmd_show_list): Caller update.
615 * auto-load.c (set_auto_load_cmd): Likewise.
616 * remote.c (show_remote_cmd): Likewise.
617 * cli/cli-setshow.h: Update declarations.
618 * top.c (execute_command): Call do_set_command and do_show_command.
619
620 * NEWS: Mention new MI notification.
621 * mi/mi-interp.c: Declare mi_command_param_changed.
622 (mi_interpreter_init): Attach mi_command_param_changed to
623 observer command_param_changed.
624 (mi_command_param_changed): New.
625 Remove mi_suppress_breakpoint_notifications.
626 Define global variable mi_suppress_notification.
627 (mi_breakpoint_created): Update.
628 (mi_breakpoint_deleted): Likewise.
629 (mi_breakpoint_modified): Likewise.
630 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
631 'gdb-set' and set mi_suppress_notification.
632 * mi/mi-main.h: (mi_suppress_notification): New struct.
633
1969df89
JK
6342012-08-09 Andreas Tobler <andreast@fgznet.ch>
635 Jan Kratochvil <jan.kratochvil@redhat.com>
636
637 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
638
8bfd80db
YQ
6392012-08-09 Yao Qi <yao@codesourcery.com>
640
641 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
642 (skiplist): Move it to skip.c.
643 (init_cmd_lists): Remove code setting enablebreaklist and
644 skiplist to NULL.
645 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
646 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
647 skiplist.
648 * gdbcmd.h: Likewise.
649 * skip.c (_initialize_step_skip): Move 'skiplist' from
650 cli/cli-cmds.c.
651
28578e6b
YQ
6522012-08-09 Yao Qi <yao@codesourcery.com>
653
654 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
655 * gnu-nat.c, symfile.c: Likewise.
656
260c0b2a
DE
6572012-08-08 Aaron Gamble <agamble@google.com>
658
659 * utils.c (prompt_for_continue_wait_time): New static global.
660 (make_command_stats_cleanup): Initialize it.
661 (report_command_stats): Subtract time waiting for user.
662 (prompt_for_continue): Track time waiting for user.
663 (defaulted_query): Track time waiting for user.
664
4f485ebc
DE
6652012-08-08 Doug Evans <dje@google.com>
666
667 * eval.c (evaluate_subexp_standard): Fix thinko in handling
668 UNOP_MEMVAL_TYPE.
669 * expprint.c (print_subexp_standard, case OP_TYPE): New.
670 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
671 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
672 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
673 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
674 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
675 elt.
676 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
677 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
678 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
679 (dump_prefix_expression): Handle OP_TYPE.
680
2acf2b39
KS
6812012-08-08 Keith Seitz <keiths@redhat.com>
682
683 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
684 addr_start.
685
e6712ff1
DE
6862012-08-08 Doug Evans <dje@google.com>
687
688 * linux-thread-db.c: #include "gdb_vecs.h".
689 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
690 updated.
691 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
692 (thread_db_load_search): Use a vector to iterate over path elements.
693 Handle text appearing after "$pdir".
694
695 * gdb_string.h: Moved to ...
696 * common/gdb_string.h: ... here.
697 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
698 gdb_string.h and gdb_assert.h.
699
ab854e54
YQ
7002012-08-08 Yao Qi <yao@codesourcery.com>
701
702 * tic6x-tdep.c (tic6x_register_to_value): Remove.
703 (tic6x_value_to_register): Likewise.
704 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
705 and set_gdbarch_value_to_register.
706
4f69f4c2
JK
7072012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
708 Jean-Marc Saffroy <saffroy@gmail.com>
709
710 PR 11804
711 * defs.h (find_memory_region_ftype): New comment. New arg modified.
712 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
713 * gcore.c (gcore_create_callback): New function comment. Add modified
714 parameter. Only write modified regions. Set SEC_READONLY exactly
715 according to MODIFIED.
716 (objfile_find_memory_regions): Ignore separate debug info files. Ass
717 the passed modified value to FUNC.
718 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
719 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
720 first. New variables modified and has_anonymous. Parse the lines of
721 smaps file. Add the passed MODIFIED value to FUNC.
722 * procfs.c (find_memory_regions_callback): Add the passed modified
723 value.
724
78ac5f83
TT
7252012-08-06 Tom Tromey <tromey@redhat.com>
726
727 * dwarf2-frame.c (clear_pointer_cleanup): New function.
728 (dwarf2_frame_cache): Use it.
729 * frame-unwind.h (frame_sniffer_ftype): Document prologue
730 cache initialization constraint.
731
2c12abee
TT
7322012-08-06 Tom Tromey <tromey@redhat.com>
733
734 PR python/14386:
735 * varobj.c (update_dynamic_varobj_children): Don't call
736 PyIter_Check.
737
4979d7f0
TT
7382012-08-06 Tom Tromey <tromey@redhat.com>
739
740 PR cli/14392:
741 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
742
f3c8a52a
JK
7432012-08-06 Nathaniel Flath <flat0103@gmail.com>
744
745 * NEWS: New entry for 'cd' default parameters.
746 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
747
5a1cf4d6
TT
7482012-08-03 Tom Tromey <tromey@redhat.com>
749
750 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
751 return.
752
7c3270ae
UW
7532012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
754
755 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
756 to attempting lseek/write.
757 (inf_child_fileio_pread): Likewise for pread.
758
ccce17b0
YQ
7592012-08-02 Yao Qi <yao@codesourcery.com>
760
761 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
762 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
763 add_setshow_zinteger_cmd.
764 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
765 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
766 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
767 instead of add_setshow_zinteger_cmd.
768 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
769 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
770 instead of add_setshow_zinteger_cmd.
771 * frame.c (frame_debug): Add 'unsigned'.
772 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
773 add_setshow_zinteger_cmd.
774 * frame.h: Update the declaration of 'frame_debug'.
775 * gdbtypes.c (overload_debug): Add 'unsigned'.
776 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
777 add_setshow_zinteger_cmd.
778 * inferior.h: Update declaration of 'debug_infrun'.
779 * infrun.c (debug_infrun): Add 'unsigned'.
780 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
781 add_setshow_zinteger_cmd.
782 * jit.c (jit_debug): Add 'unsigned'.
783 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
784 add_setshow_zinteger_cmd.
785 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
786 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
787 instead of add_setshow_zinteger_cmd.
788 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
789 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
790 add_setshow_zinteger_cmd.
791 * machoread.c (mach_o_debug_level): Add 'unsigned'.
792 (_initialize_machoread): Call add_setshow_zuinteger_cmd
793 instead of add_setshow_zinteger_cmd.
794 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
795 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
796 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
797 intead of add_setshow_zinteger_cmd.
798 * mips-tdep.c (mips_debug): Add 'unsigned'.
799 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
800 instead of add_setshow_zinteger_cmd.
801 * monitor.c (monitor_debug): Add 'unsigned'.
802 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
803 add_setshow_zinteger_cmd.
804 * observer.c (observer_debug): Add 'unsigned'.
805 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
806 add_setshow_zinteger_cmd.
807 * parse.c (expressiondebug): Add 'unsigned'.
808 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
809 add_setshow_zinteger_cmd.
810 * record.c (record_debug): Add 'unsigned'.
811 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
812 add_setshow_zinteger_cmd.
813 * record.h: Update the declaration of 'record_debug'.
814 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
815 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
816 add_setshow_zinteger_cmd.
817 * serial.c (global_serial_debug_p): Add 'unsigned'.
818 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
819 add_setshow_zinteger_cmd.
820 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
821 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
822 add_setshow_zinteger_cmd.
823 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
824 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
825 add_setshow_zinteger_cmd.
826 * target.c (targetdebug): Add 'unsigned'.
827 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
828 add_setshow_zinteger_cmd.
829 * valops.c (overload_debug): Add 'unsigned'.
830 * varobj.c (varobjdebug): Add 'unsigned'.
831 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
832 add_setshow_zinteger_cmd.
833 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
834 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
835 instead of add_setshow_zinteger_cmd.
836
837 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
838 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
839 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
840 instead of add_setshow_zinteger_cmd.
841 * gdbarch.c, gdbarch.h: Re-generated.
842
95b07c96
YQ
8432012-08-02 Yao Qi <yao@codesourcery.com>
844
845 * nto-tdep.c: Don't include cli/cli-decode.h and
846 cli/cli-cmds.h.
847 (_initialize_nto_tdep): Remove.
848 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
849 Remove field.
850 Remove macro nto_internal_debugging.
851
57295b0b
RH
8522012-08-01 Richard Henderson <rth@redhat.com>
853
854 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
855 (mep-*-*) [gdb_target_obs]: Likewise.
856
f782ad9b
AS
8572012-07-31 Andreas Schwab <schwab@linux-m68k.org>
858
859 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
860 linux_get_siginfo_type.
861
a14dd77e
JK
8622012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
863
864 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
865 AT_ENTRY_POINT.
866 (call_function_by_hand) <ON_STACK>: Call write_memory with
867 gdbarch_breakpoint_from_pc, if possible.
868 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
869 here.
870
1467929f
YQ
8712012-07-31 Yao Qi <yao@codesourcery.com>
872
873 * tracepoint.c: Add 'static' for some variables.
874
70976b65
YQ
8752012-07-31 Yao Qi <yao@codesourcery.com>
876
877 * go32-nat.c: Declare _initialize_go32_nat.
878 * ser-go32.c: Declare _initialize_ser_dos.
879 * top.c (do_chdir_cleanup): Add 'static'.
880
eff9c3e6
KS
8812012-07-30 Keith Seitz <keiths@redhat.com>
882
883 * linespec.c (linespec_lex_number): A number followed
884 by quotes is a valid number, too.
885
728400d7
TT
8862012-07-30 Tom Tromey <tromey@redhat.com>
887
888 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
889
fcf303ab
UW
8902012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
891
892 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
893 attempt to 4-byte-align HW breakpoint addresses for Thumb.
894
4e969b4f
AB
8952012-07-30 Andrew Burgess <aburgess@broadcom.com>
896
897 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
898 invalid or reevaluated to prevent prevent references to possibly
899 delete'd type objects being left in the varobj.
900
c4bfde41
JK
9012012-07-27 Tom Tromey <tromey@redhat.com>
902 Jan Kratochvil <jan.kratochvil@redhat.com>
903
904 * copying.awk: Print buffer-read-only and vi ro markers.
905 * copying.c: Rebuild.
906 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
907 * gdbarch.c, gdbarch.h: Rebuild.
908 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
909 buffer-read-only and vi ro markers.
910 * features/arm-with-iwmmxt.c: Rebuild.
911 * features/arm-with-m-fpa-layout.c: Rebuild.
912 * features/arm-with-m-vfp-d16.c: Rebuild.
913 * features/arm-with-m.c: Rebuild.
914 * features/arm-with-neon.c: Rebuild.
915 * features/arm-with-vfpv2.c: Rebuild.
916 * features/arm-with-vfpv3.c: Rebuild.
917 * features/i386/amd64-avx-linux.c: Rebuild.
918 * features/i386/amd64-avx.c: Rebuild.
919 * features/i386/amd64-linux.c: Rebuild.
920 * features/i386/amd64.c: Rebuild.
921 * features/i386/i386-avx-linux.c: Rebuild.
922 * features/i386/i386-avx.c: Rebuild.
923 * features/i386/i386-linux.c: Rebuild.
924 * features/i386/i386-mmx-linux.c: Rebuild.
925 * features/i386/i386-mmx.c: Rebuild.
926 * features/i386/i386.c: Rebuild.
927 * features/i386/x32-avx-linux.c: Rebuild.
928 * features/i386/x32-avx.c: Rebuild.
929 * features/i386/x32-linux.c: Rebuild.
930 * features/i386/x32.c: Rebuild.
931 * features/mips-dsp-linux.c: Rebuild.
932 * features/mips-linux.c: Rebuild.
933 * features/mips64-dsp-linux.c: Rebuild.
934 * features/mips64-linux.c: Rebuild.
935 * features/rs6000/powerpc-32.c: Rebuild.
936 * features/rs6000/powerpc-32l.c: Rebuild.
937 * features/rs6000/powerpc-403.c: Rebuild.
938 * features/rs6000/powerpc-403gc.c: Rebuild.
939 * features/rs6000/powerpc-405.c: Rebuild.
940 * features/rs6000/powerpc-505.c: Rebuild.
941 * features/rs6000/powerpc-601.c: Rebuild.
942 * features/rs6000/powerpc-602.c: Rebuild.
943 * features/rs6000/powerpc-603.c: Rebuild.
944 * features/rs6000/powerpc-604.c: Rebuild.
945 * features/rs6000/powerpc-64.c: Rebuild.
946 * features/rs6000/powerpc-64l.c: Rebuild.
947 * features/rs6000/powerpc-7400.c: Rebuild.
948 * features/rs6000/powerpc-750.c: Rebuild.
949 * features/rs6000/powerpc-860.c: Rebuild.
950 * features/rs6000/powerpc-altivec32.c: Rebuild.
951 * features/rs6000/powerpc-altivec32l.c: Rebuild.
952 * features/rs6000/powerpc-altivec64.c: Rebuild.
953 * features/rs6000/powerpc-altivec64l.c: Rebuild.
954 * features/rs6000/powerpc-cell32l.c: Rebuild.
955 * features/rs6000/powerpc-cell64l.c: Rebuild.
956 * features/rs6000/powerpc-e500.c: Rebuild.
957 * features/rs6000/powerpc-e500l.c: Rebuild.
958 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
959 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
960 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
961 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
962 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
963 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
964 * features/rs6000/powerpc-vsx32.c: Rebuild.
965 * features/rs6000/powerpc-vsx32l.c: Rebuild.
966 * features/rs6000/powerpc-vsx64.c: Rebuild.
967 * features/rs6000/powerpc-vsx64l.c: Rebuild.
968 * features/rs6000/rs6000.c: Rebuild.
969 * features/s390-linux32.c: Rebuild.
970 * features/s390-linux32v1.c: Rebuild.
971 * features/s390-linux32v2.c: Rebuild.
972 * features/s390-linux64.c: Rebuild.
973 * features/s390-linux64v1.c: Rebuild.
974 * features/s390-linux64v2.c: Rebuild.
975 * features/s390x-linux64.c: Rebuild.
976 * features/s390x-linux64v1.c: Rebuild.
977 * features/s390x-linux64v2.c: Rebuild.
978 * features/tic6x-c62x-linux.c: Rebuild.
979 * features/tic6x-c62x.c: Rebuild.
980 * features/tic6x-c64x-linux.c: Rebuild.
981 * features/tic6x-c64x.c: Rebuild.
982 * features/tic6x-c64xp-linux.c: Rebuild.
983 * features/tic6x-c64xp.c: Rebuild.
984
826f0041
TT
9852012-07-27 Tom Tromey <tromey@redhat.com>
986
987 * c-exp.y (classify_name): Avoid assignment in condition.
988
84552b16
PA
9892012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
990
991 * amd64-windows-tdep.c: Include "frame.h".
992 (amd64_windows_skip_trampoline_code): New function.
993 (amd64_windows_init_abi): Add trampoline registration.
994
a8a64aa8
YQ
9952012-07-27 Yao Qi <yao@codesourcery.com>
996
997 * tracepoint.c (cur_traceframe_number): Remove.
998 (set_tfile_traceframe): Remove.
999 (tfile_trace_find, tfile_fetch_registers): Update callers.
1000 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1001 (tfile_open, tfile_trace_find): Likewise.
1002
d99067cb
YQ
10032012-07-27 Yao Qi <yao@codesourcery.com>
1004
1005 * thread.c (switch_to_thread): Don't call registers_changed.
1006
f2e8016f
TT
10072012-07-26 Tom Tromey <tromey@redhat.com>
1008
f782ad9b
AS
1009 * Makefile.in (SFILES): Remove objc-exp.y.
1010 (YYFILES): Remove objc-exp.c.
1011 (YYOBJ): Remove objc-exp.o.
1012 (local-maintainer-clean): Don't mention objc-exp.c.
1013 * c-exp.y: Include objc-lang.h.
1014 (%union) <class>: New field.
1015 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1016 (exp): Clone subscript production for OBJC_LBRAC. Add various
1017 Objective C productions.
1018 (msglist, msgarglist, msgarg): New productions.
1019 (array_mod, func_mod, operator): Clone productions for
1020 OBJC_LBRAC.
1021 (parse_string_or_char): Handle '@' strings.
1022 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1023 (classify_name): Check la_name_of_this. Recognize ObjC class
1024 names.
1025 * objc-exp.y: Remove.
1026 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1027 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1028
f66713d2
JK
10292012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1030
1031 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1032
7cfe01b4
JK
10332012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1034
1035 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1036 and decrement.
1037
5ba19b4c
TT
10382012-07-26 Tom Tromey <tromey@redhat.com>
1039
1040 * copying.c: Rebuild.
1041 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1042 'no_class'.
1043
27618ce4
TT
10442012-07-26 Tom Tromey <tromey@redhat.com>
1045
1046 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1047 immediate_quit.
1048 (print_objfile_statistics): Likewise.
1049 (maintenance_print_symbols): Likewise.
1050 (maintenance_print_msymbols): Likewise.
1051 (maintenance_print_objfiles): Likewise.
1052 * psymtab.c (print_partial_symbols): Call QUIT.
1053 (maintenance_print_psymbols): Likewise. Don't modify
1054 immediate_quit.
1055 * copying.c (show_copying_command): Don't modify immediate_quit.
1056 (show_warranty_command): Likewise.
1057 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1058
dd3818c8
KS
10592012-07-26 Keith Seitz <keiths@redhat.com>
1060
1061 * linespec.c (linespec_lexer_lex_number): The input
1062 is also a valid number if the next character is a comma
1063 or colon.
1064
23a80689
JB
10652012-07-26 Joel Brobecker <brobecker@adacore.com>
1066
1067 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1068 configure options.
1069
29f77997
TG
10702012-07-26 Tristan Gingold <gingold@adacore.com>
1071
1072 * machoread.c: Include gdb_bfd.h.
1073
a55c1f32
TG
10742012-07-26 Tristan Gingold <gingold@adacore.com>
1075
1076 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1077 offset.
1078
56eb65bd
SP
10792012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1080
1081 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1082 SIZE to size_t.
1083 (dwarf2_evaluate_loc_desc): Likewise.
1084 (dwarf2_loc_desc_needs_frame): Likewise.
1085 (locexpr_describe_location_1): Likewise.
1086 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1087 size_t.
1088 (struct dwarf2_loclist_baton): Likewise.
1089 * dwarf2read.c (struct dwarf_block): Likewise.
1090 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1091 (decode_locdesc): Expand SIZE and I to size_t.
1092
aec8845c
JK
10932012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1094
1095 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1096
33d7655b
JB
10972012-07-25 Joel Brobecker <brobecker@adacore.com>
1098
1099 * doublest.c (convert_doublest_to_floatformat): If the exponent
1100 is too small, treat the value as zero. If the exponent is too
1101 large, treat the value as infinity.
1102
a22d44ff
JB
11032012-07-25 Joel Brobecker <brobecker@adacore.com>
1104
1105 * configure.ac: Add --enable-lmcheck configure option.
1106 * configure: Regenerate.
1107
d6b28940
TT
11082012-07-25 Tom Tromey <tromey@redhat.com>
1109
f782ad9b
AS
1110 * NEWS: Mention maint info bfds.
1111 * gdb_bfd.c (all_bfds): New global.
1112 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1113 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1114 New functions.
d6b28940 1115
6e73ba20
RC
11162012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1117
1118 * configure.tgt: Add v850*-*-rtems*.
1119
d560eebd
TT
11202012-07-25 Tom Tromey <tromey@redhat.com>
1121
1122 * macrotab.c (macro_bcache_str): Remove cast.
1123
d7cbec71
HZ
11242012-07-25 Hui Zhu <hui_zhu@mentor.com>
1125
1126 * linespec.c (linespec_lexer_lex_number): Update comments,
1127 change the return and add check to make sure the input is
1128 the decimal numbers.
1129 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1130 false, call linespec_lexer_lex_string.
1131
882f447f
TT
11322012-07-24 Tom Tromey <tromey@redhat.com>
1133
1134 * symfile.c (symbol_file_add): Don't open BFD twice.
1135
53ab4066 11362012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1137
1138 * breakpoint.c (create_breakpoint): Store condition for pending
1139 breakpoints.
1140
108fb0f7
AS
11412012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1142
1143 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1144 (m68k_return_value): Handle complex types like structures.
1145 (m68k_svr4_return_value): Likewise.
1146
1634dcbe
JK
11472012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1148
1149 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1150 parameters to bfd_get_section_name.
1151
e2d12c21
YQ
11522012-07-24 Yao Qi <yao@codesourcery.com>
1153
1154 * cli/cli-setshow.c: Handle case 'var_uinteger'
1155 and 'var_zuninteger' together. Handle case 'var_integer' and
1156 'var_zinteger' together.
1157
64b92e45
KS
11582012-07-23 Keith Seitz <keiths@redhat.com>
1159
1160 * linespec.c (convert_linespec_to_sal): Don't add
1161 any symbols to the result vector if symbol_to_sal
1162 returns zero.
1163
0f5f4ffe
KS
11642012-07-23 Keith Seitz <keiths@redhat.com>
1165
1166 * linespec.c (decode_objc): Record the function name
1167 in the linespec.
1168
da1cc82f
TT
11692012-07-23 Tom Tromey <tromey@redhat.com>
1170
1171 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1172 counting.
1173 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1174 (map_vmap): Acquire a reference to the BFD.
1175
6c18f3e0
SP
11762012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1177
1178 * p-valprint.c (pascal_object_print_value): Replace potentially
1179 unsafe alloca with xmalloc/xfree.
1180 * valops.c (search_struct_method): Likewise.
1181
695c3173
TT
11822012-07-23 Tom Tromey <tromey@redhat.com>
1183
1184 * solib-svr4.c (enable_break): Update.
1185 * bfd-target.h (target_bfd_reopen): Update documentation.
1186
08d2cd74
TT
11872012-07-23 Tom Tromey <tromey@redhat.com>
1188
1189 * symfile.c (separate_debug_file_exists): Update.
1190 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1191 (reread_symbols): Update.
1192 * elfread.c (build_id_verify): Update.
1193 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1194 bfd_open_maybe_remote.
1195
596f7d67
TT
11962012-07-23 Tom Tromey <tromey@redhat.com>
1197
1198 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1199
8ac244b4
TT
12002012-07-23 Tom Tromey <tromey@redhat.com>
1201
1202 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1203 and 'abfd'.
1204 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1205 and 'abfd'.
1206 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1207 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1208 'abfd'.
1209 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1210 * objfiles.c (allocate_objfile): Acquire a new reference.
1211 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1212 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1213 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1214 a cleanup for 'nbfd'.
1215 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1216 for 'nbfd'.
1217 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1218 make a cleanup for 'abfd'.
1219 (symbol_file_add): Make a BFD cleanup.
1220
64c31149
TT
12212012-07-23 Tom Tromey <tromey@redhat.com>
1222
1223 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1224 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1225 * corelow.c (core_open): Use gdb_bfd_fopen.
1226 * dsrec.c (load_srec): Use gdb_bfd_openr.
1227 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1228 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1229 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1230 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1231 (gdb_bfd_fdopenr): New functions.
1232 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1233 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1234 (gdb_bfd_fdopenr): Declare.
1235 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1236 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1237 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1238 gdb_bfd_openr_next_archived_file.
1239 (macho_check_dsym): Use gdb_bfd_openr.
1240 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1241 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1242 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1243 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1244 gdb_bfd_openr.
1245 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1246 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1247 gdb_bfd_openr_next_archived_file.
1248 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1249 Use gdb_bfd_openr.
1250 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1251 gdb_bfd_openr.
1252 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1253 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1254 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1255 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1256 (symfile_bfd_open): Use gdb_bfd_fopen.
1257 (generic_load): Use gdb_bfd_openr.
1258 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1259
520b0001
TT
12602012-07-23 Tom Tromey <tromey@redhat.com>
1261
1262 * bfd-target.c (target_bfd_reopen): Update.
1263 * cli/cli-dump.c (bfd_openr_with_cleanup)
1264 (bfd_openw_with_cleanup): Update.
1265 * corelow.c (core_open): Update.
1266 * dsrec.c (load_srec): Update.
1267 * exec.c (exec_file_attach): Update.
1268 * gcore.c (create_gcore_bfd): Update.
1269 * gdb_bfd.c (gdb_bfd_ref): Return void.
1270 (gdb_bfd_open): Update.
1271 * gdb_bfd.h (gdb_bfd_ref): Return void.
1272 Update comments.
1273 * jit.c (jit_bfd_try_read_symtab): Update.
1274 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1275 * machoread.c (macho_symfile_read_all_oso): Update.
1276 (macho_check_dsym): Update.
1277 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1278 * remote-m32r-sdi.c (m32r_load): Update.
1279 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1280 * rs6000-nat.c (add_vmap): Update.
1281 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1282 Update.
1283 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1284 * solib-spu.c (spu_bfd_open): Update.
1285 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1286 * spu-linux-nat.c (spu_bfd_open): Update.
1287 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1288 (generic_load): Update.
1289 * windows-nat.c (windows_make_so): Update.
1290
2322ff16
SP
12912012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1292
1293 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1294
3def0b36
PA
12952012-07-20 Jeff Kenton <jkenton@tilera.com>
1296
1297 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1298 SIGTRAMP_FRAME unwinding.
1299
e615022a
DE
13002012-07-20 Doug Evans <dje@google.com>
1301
1302 * NEWS: Document new options "set/show use-deprecated-index-sections",
1303 and delete reference to --use-deprecated-index-sections.
1304 * symfile.h (use_deprecated_index_sections): Delete.
1305 * dwarf2read.c (use_deprecated_index_sections): Make static.
1306 (read_index_from_section): Update wording of how to load
1307 deprecated index sections.
1308 (_initialize_dwarf2_read): New options
1309 "set/show use-deprecated-index-sections".
1310 * main.c (captured_main): Delete --use-deprecated-index-sections.
1311
64776a0b
PA
13122012-07-20 Pedro Alves <palves@redhat.com>
1313
1314 PR threads/11692
1315 PR gdb/12203
1316
1317 * infrun.c (handle_inferior_event) <new thread>: Don't special
1318 case minus_one_ptid.
1319 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1320 * linux-thread-db.c (thread_get_info_callback): Don't return early
1321 if the thread is zombie.
1322 (thread_from_lwp): Change return type to void. Rewrite stale
1323 comment.
1324 (attach_thread): Don't return early if the thread is zombie,
1325 instead set its "dying" flag.
1326 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1327 (find_new_threads_callback): Don't return early if the thread is
1328 zombie.
1329
09826ec5
PA
13302012-07-20 Pedro Alves <palves@redhat.com>
1331
1332 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1333 * target.c (target_wait): Likewise.
1334 (str_comma_list_concat_elem, do_option, target_options_to_string):
1335 New functions.
1336 * target.h (target_options_to_string): Declare.
1337
f7a35f02
TT
13382012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1339 Tom Tromey <tromey@redhat.com>
1340
1341 * dwarf2read.c (dwarf_decode_macros)
1342 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1343 DW_MACRO_GNU_transparent_include_alt>: New cases.
1344 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1345 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1346
b81e1ee0
TT
13472012-07-20 Tom Tromey <tromey@redhat.com>
1348
1349 * dwarf2read.c (try_open_dwo_file): Don't call
1350 gdb_bfd_stash_filename.
1351
99c1624c
PA
13522012-07-20 Pedro Alves <palves@redhat.com>
1353
1354 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1355 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1356 (i386_process_record): Tweak description comments.
1357
4ffa4fc7
PA
13582012-07-20 Pedro Alves <palves@redhat.com>
1359
1360 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1361 (i386_process_record): Use record_read_memory.
1362 * record.c (record_read_memory): New function.
1363 (record_arch_list_add_mem, record_exec_insn): Use
1364 record_read_memory.
1365 * record.h (record_read_memory): Declare.
1366
c24343e2
YQ
13672012-07-20 Yao Qi <yao@codesourcery.com>
1368
1369 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1370 NULL for xfree.
1371
90f47860
PA
13722012-07-19 Pedro Alves <palves@redhat.com>
1373
1374 * record.c (record_resume): Ask the target beneath to report all
1375 signals.
1376
01093045
DE
13772012-07-19 Doug Evans <dje@google.com>
1378
1379 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1380 there's no section at address zero.
1381 (dwarf2_record_block_ranges): Ditto.
1382
a7c3d162
YQ
13832012-07-19 Yao Qi <yao@codesourcery.com>
1384
1385 * command.h, remote.c: Fix a typo in comment.
1386
608b4967
TT
13872012-07-19 Tom Tromey <tromey@redhat.com>
1388
1389 PR exp/13206:
1390 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1391 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1392 OP_DECLTYPE>: New cases.
1393 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1394 (type_exp): Add new productions.
1395 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1396 and decltype.
1397 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1398 New case.
1399 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1400 OP_DECLTYPE>: New case.
1401 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1402 New case.
1403 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1404 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1405
274b54d7
TT
14062012-07-19 Tom Tromey <tromey@redhat.com>
1407
1408 * c-exp.y (enum token_flags): New.
1409 (struct token) <cxx_only>: Remove.
1410 <flags>: New field.
1411 (tokentab3, tokentab2, ident_tokens): Update.
1412 (lex_one_token): Update. Handle FLAG_SHADOW.
1413
9eaf6705
TT
14142012-07-19 Tom Tromey <tromey@redhat.com>
1415
1416 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1417 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1418 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1419 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1420 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1421 type_exp production where appropriate.
1422 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1423 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1424 <UNOP_MEMVAL_TYPE>: New case.
1425 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1426 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1427 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1428 <UNOP_MEMVAL_TYPE>: New case.
1429 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1430 UNOP_REINTERPRET_CAST>: Update.
1431 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1432 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1433 UNOP_REINTERPRET_CAST>: Update.
1434 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1435 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1436 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1437 constants.
1438
6ace3df1
YQ
14392012-07-19 Yao Qi <yao@codesourcery.com>
1440 Jan Kratochvil <jan.kratochvil@redhat.com>
1441
1442 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1443 and case 'var_optional_filename' together.
1444 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1445 instead of add_setshow_optional_filename_cmd for setshow command
1446 'args'. Set completer for 'set args'.
1447
48faced0
DE
14482012-07-18 Doug Evans <dje@google.com>
1449
1450 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1451 * common/gdb_vecs.c: New file, contents from utils.c.
1452 * common/host-defs.h: New file, contents from defs.h.
1453 * utils.h: New file, contents from defs.h.
1454 * defs.h: Move all declarations of objects defined in utils.c
1455 to utils.h (except QUIT() and related).
1456 #include "utils.h", "host-defs.h".
1457 * probe.h (probe_p): Move here from gdb_vecs.h.
1458 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1459 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1460 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1461 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1462 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1463 (COMMON_OBS): Add gdb_vecs.o.
1464 (gdb_vecs.o): New rule.
1465
66f1999b
KS
14662012-07-18 Keith Seitz <keiths@redhat.com>
1467
1468 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1469 parameter. If non-zero, use SYMNAME as the canonical name
1470 for the SaL.
1471 Update all callers.
1472 (convert_linespec_to_sals): Use add_sal_to_sals for
1473 expressions, too.
1474 (decode_line_full): No need to "fill in missing canonical names"
1475 anymore. Simply make cleanups for the allocated names.
1476
5d94e27b
KS
14772012-07-18 Keith Seitz <keiths@redhat.com>
1478
1479 * linespec.c (struct linespec): Constify expression,
1480 source_filename, function_name, and label_name.
1481 (symbol_not_found_error): Make all parameters const.
1482 (linespec_parser_delete): No need to check for NULL
1483 when using xfree. Cast const char * to char * for xfree.
1484
af4908ba
KS
14852012-07-18 Keith Seitz <keiths@redhat.com>
1486
1487 * breakpoint.c (invalid_thread_id_error): New function.
1488 (find_condition_and_thread): Use invalid_thread_id_error.
1489 (watch_command_1): Likewise.
1490
853254db
TT
14912012-07-18 Tom Tromey <tromey@redhat.com>
1492
1493 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1494 * contrib/cc-with-tweaks.sh: New file.
1495
2ec9a5e0
TT
14962012-07-18 Tom Tromey <tromey@redhat.com>
1497
1498 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1499 (locate_dwz_sections): Recognize .gdb_index.
1500 (create_cus_from_index_list): New function.
1501 (create_cus_from_index): Use it. Handle .dwz data.
1502 (read_index_from_section): New function, extracted from
1503 dwarf2_read_index.
1504 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1505 if needed.
1506
36586728
TT
15072012-07-18 Tom Tromey <tromey@redhat.com>
1508
1509 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1510 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1511 <is_dwz>: New field.
1512 (struct dwz_file): New.
1513 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1514 (locate_dwz_sections, dwarf2_get_dwz_file)
1515 (get_abbrev_section_for_cu): New functions.
1516 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1517 (read_and_check_type_unit_head): Add abbrev_section argument.
1518 (create_debug_types_hash_table): Update.
1519 (init_cutu_and_read_dies): Use proper abbrev section.
1520 (init_cutu_and_read_dies_no_follow): Likewise.
1521 (set_partial_user): Do nothing if PST==NULL.
1522 (read_comp_units_from_section): New function.
1523 (create_all_comp_units): Use it.
1524 (scan_partial_symbols, partial_die_parent_scope): Update.
1525 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1526 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1527 (find_partial_die): Add offset_in_dwz argument. Update.
1528 (guess_partial_die_structure_name, fixup_partial_die): Update.
1529 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1530 DW_FORM_GNU_strp_alt.
1531 (read_indirect_string_from_dwz): New function.
1532 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1533 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1534 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1535 (follow_die_offset): Add offset_in_dwz argument.
1536 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1537 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1538 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1539 Handle new macro forms.
1540 (dwarf_decode_macros): Update.
1541 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1542 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1543 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1544 (create_debug_types_hash_table): Use correct abbrev section.
1545 (get_debug_line_section): New function.
1546 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1547 (process_full_comp_unit): Pass 'required' argument to
1548 end_symtab_get_static_block.
1549 * buildsym.h (end_symtab_get_static_block): Update.
1550 * buildsym.c (end_symtab_get_static_block): Add 'required'
1551 argument.
1552 (end_symtab, end_expandable_symtab): Update.
1553
4bf44c1c
TT
15542012-07-18 Tom Tromey <tromey@redhat.com>
1555
1556 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1557 (pagesize): Remove.
1558 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1559 (zlib_decompress_section): Remove.
1560 (dwarf2_read_section): Use gdb_bfd_map_section.
1561 (munmap_section_buffer): Remove.
1562 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1563 munmap_section_buffer.
1564 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1565 (struct gdb_bfd_section_data): New.
1566 (free_one_bfd_section): New function.
1567 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1568 (get_section_descriptor, zlib_decompress_section)
1569 (gdb_bfd_map_section): New functions.
1570 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1571
bb397797
TT
15722012-07-18 Tom Tromey <tromey@redhat.com>
1573
1574 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1575
6ec53d05
TT
15762012-07-18 Tom Tromey <tromey@redhat.com>
1577
1578 * gdb_bfd.c (struct gdb_bfd_data): New.
1579 (gdb_bfd_cache): New global.
1580 (struct gdb_bfd_cache_search): New.
1581 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1582 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1583 * gdb_bfd.h (gdb_bfd_open): Declare.
1584
f9a062ff
TT
15852012-07-18 Tom Tromey <tromey@redhat.com>
1586
1587 * utils.c (make_cleanup_bfd_unref): Rename from
1588 make_cleanup_bfd_close.
1589 * defs.h (make_cleanup_bfd_unref): Rename from
1590 make_cleanup_bfd_close.
1591 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1592 (bfd_openw_with_cleanup): Update.
1593 * corelow.c (core_open): Update.
1594 * dsrec.c (load_srec): Update.
1595 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1596 * remote-m32r-sdi.c (m32r_load): Update.
1597 * remote-mips.c (mips_load_srec): Update.
1598 (pmon_load_fast): Update.
1599 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1600 Update.
1601 (darwin_bfd_open): Update.
1602 * solib.c (solib_bfd_fopen): Update.
1603 * symfile-mem.c (symbol_file_add_from_memory): Update.
1604 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1605 (symfile_bfd_open): Update.
1606 (generic_load): Update.
1607
d6ad71ba
TT
16082012-07-18 Tom Tromey <tromey@redhat.com>
1609
1610 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1611 (pmon_load_fast): Likewise.
1612 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1613 (m32r_upload_command): Likewise.
1614 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1615 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1616 Use make_cleanup_bfd_close.
1617
a4453b7e
TT
16182012-07-18 Tom Tromey <tromey@redhat.com>
1619
1620 * symfile.c (symfile_bfd_open): Don't copy name. Call
1621 gdb_bfd_stash_filename.
1622 (load_command): Open the new BFD before freeing the old.
1623 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1624 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1625 Call gdb_bfd_stash_filename.
1626 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1627 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1628 gdb_bfd_stash_filename.
1629 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1630 Free found_pathname.
1631 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1632 gdb_bfd_stash_filename.
1633 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1634 * machoread.c (macho_add_oso_symfile): Call
1635 gdb_bfd_stash_filename.
1636 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1637 gdb_bfd_stash_filename.
1638 (macho_check_dsym): Don't copy filename. Call
1639 gdb_bfd_stash_filename.
1640 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1641 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1642 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1643 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1644 * exec.c (exec_close): Don't free the BFD's filename.
1645 (exec_file_attach): Don't copy the filename. Call
1646 gdb_bfd_stash_filename.
1647 * corelow.c (core_close): Don't free the BFD's filename.
1648 (core_open): Call gdb_bfd_stash_filename.
1649 * corefile.c (reopen_exec_file): Remove #if 0 code.
1650 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1651 pathname.
1652 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1653
cbb099e8
TT
16542012-07-18 Tom Tromey <tromey@redhat.com>
1655
1656 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1657 gdb_bfd_unref.
1658 (free_dwo_file): Use gdb_bfd_unref.
1659 * cli/cli-dump.c: Include gdb_bfd.h.
1660 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1661 (bfd_openr_with_cleanup): Likewise.
1662 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1663 gdb_bfd_unref.
1664 * utils.c: Include gdb_bfd.h.
1665 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1666 * symfile.c: Include gdb_bfd.h.
1667 (separate_debug_file_exists): Use gdb_bfd_unref.
1668 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1669 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1670 (generic_load): Use gdb_bfd_ref.
1671 (reread_symbols): Use gdb_bfd_unref.
1672 * symfile-mem.c: Include gdb_bfd.h.
1673 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1674 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1675 * solib.c: Include gdb_bfd.h.
1676 (solib_bfd_fopen): Use gdb_bfd_ref.
1677 (solib_bfd_open): Use gdb_bfd_unref.
1678 (free_so_symbols): Use gdb_bfd_unref.
1679 (reload_shared_libraries_1): Use gdb_bfd_unref.
1680 * solib-spu.c: Include gdb_bfd.h.
1681 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1682 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1683 gdb_bfd_unref.
1684 * solib-frv.c: Include gdb_bfd.h.
1685 (enable_break2): Use gdb_bfd_unref.
1686 * solib-dsbt.c: Include gdb_bfd.h.
1687 (enable_break2): Use gdb_bfd_unref.
1688 * solib-darwin.c: Include gdb_bfd.h.
1689 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1690 gdb_bfd_unref.
1691 (darwin_bfd_open): Use gdb_bfd_unref.
1692 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1693 * remote-mips.c: Include gdb_bfd.h.
1694 (mips_load_srec): Use gdb_bfd_ref.
1695 (pmon_load_fast): Use gdb_bfd_ref.
1696 * remote-m32r-sdi.c: Include gdb_bfd.h.
1697 (m32r_load): Use gdb_bfd_ref.
1698 * record.c: Include gdb_bfd.h.
1699 (record_save_cleanups): Use gdb_bfd_unref.
1700 (cmd_record_save): Use gdb_bfd_unref.
1701 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1702 gdb_bfd_unref.
1703 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1704 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1705 * objfiles.c: Include gdb_bfd.h.
1706 (free_objfile): Use gdb_bfd_unref.
1707 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1708 gdb_bfd.c.
1709 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1710 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1711 (macho_check_dsym): Likewise.
1712 * m32r-rom.c: Include gdb_bfd.h.
1713 (m32r_load): Use gdb_bfd_ref.
1714 (m32r_upload_command): Use gdb_bfd_ref.
1715 * jit.c: Include gdb_bfd.h.
1716 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1717 * gdb_bfd.h: New file.
1718 * gdb_bfd.c: New file.
1719 * gcore.c: Include gdb_bfd.h.
1720 (create_gcore_bfd): Use gdb_bfd_ref.
1721 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1722 (gcore_command): Use gdb_bfd_unref.
1723 * exec.c: Include gdb_bfd.h.
1724 (exec_close): Use gdb_bfd_unref.
1725 (exec_close_1): Use gdb_bfd_unref.
1726 (exec_file_attach): Use gdb_bfd_ref.
1727 * elfread.c: Include gdb_bfd.h.
1728 (build_id_verify): Use gdb_bfd_unref.
1729 * dsrec.c: Include gdb_bfd.h.
1730 (load_srec): Use gdb_bfd_ref.
1731 * corelow.c: Include gdb_bfd.h.
1732 (core_close): Use gdb_bfd_unref.
1733 (core_open): Use gdb_bfd_ref.
1734 * bfd-target.c: Include gdb_bfd.h.
1735 (target_bfd_xclose): Use gdb_bfd_unref.
1736 (target_bfd_reopen): Use gdb_bfd_ref.
1737 * Makefile.in (SFILES): Add gdb_bfd.c.
1738 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1739 (COMMON_OBS): Add gdb_bfd.o.
1740
ed1d1739
KS
17412012-07-18 Keith Seitz <keiths@redhat.com>
1742
1743 * breakpoint.c (find_condition_and_thread): Initialize
1744 TASK and REST.
1745 (create_breakpiont): find_condition_and_thread will now
1746 initialize COND_STRING, THREAD, and REST (and TASK).
1747 (addr_string_to_sals): Likewise.
1748
eab402df
PA
17492012-07-18 Pedro Alves <palves@redhat.com>
1750
1751 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1752 Pull the single step breakpoints out of the target.
1753
2b963b68
SDJ
17542012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1755
1756 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1757 * stap-probe.c (compile_probe_arg): Likewise.
1758
6bac7473
SDJ
17592012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1760
1761 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1762 (elf_compile_to_ax): Likewise.
1763 * infrun.c (insert_exception_resume_from_probe): Likewise.
1764 (check_exception_resume): Remove `objfile' variable.
1765 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1766 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1767 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1768 (compare_entries): Rename to...
1769 (compare_probes): ...this. Adjust function to work with
1770 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1771 respectively.
1772 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1773 `VEC (probe_p) *'.
1774 (print_ui_out_info): Adjust argument to be `struct probe *'.
1775 (info_probes_for_ops): Adjust internal computations to use
1776 `VEC (probe_p) *'.
1777 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1778 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1779 gen_info_probes_table_values>: Remove `objfile' argument.
1780 (struct probe) <objfile>: New field.
1781 (find_probe_by_pc): Remove `objfile' argument.
1782 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1783 (stap_get_probe_argument_count): Likewise.
1784 (stap_get_arg): Likewise.
1785 (stap_evaluate_probe_argument): Likewise.
1786 (stap_compile_to_ax): Likewise.
1787 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1788 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1789 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1790 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1791 sym_compile_to_ax>: Likewise.
1792
3347eb1a 17932012-07-18 Terry Guo <terry.guo@arm.com>
1794
1795 PR 14329
1796 * defs.h (GDB_MI_MSG_WIDTH): New.
1797 * ser_base (ser_base_read_error_fd): New function.
1798 (do_ser_base_readchar): Poll error file descriptor as well as
1799 standard output.
f782ad9b 1800 (generic_readchar): Refactor error handling.
3347eb1a 1801
80c8d323
JB
18022012-07-18 Joel Brobecker <brobecker@adacore.com>
1803
1804 * NEWS: Create a new section for the next release branch.
1805 Rename the section of the current branch, now that it has
1806 been cut.
1807
b45a0664 18082012-07-18 Joel Brobecker <brobecker@adacore.com>
1809
1810 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1811 * version.in: Bump version to 7.5.50.20120718-cvs.
1812
09cf2b22
KS
18132012-07-17 Keith Seitz <keiths@redhat.com>
1814
1815 * linespec.c (linespec_parse_line_offset): Make parameter
1816 const.
1817
8f043999
JK
18182012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1819
1820 PR 11914
1821 * f-valprint.c (info_common_command): New variable frame_id.
1822 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1823 * printcmd.c (print_variable_and_value): Extend function comment.
1824 Add comment for invalidated FRAME.
1825 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1826 FI form FRAME_ID after each print_frame_local_vars.
1827 (struct print_variable_and_value_data): Change frame to frame_id.
1828 (do_print_variable_and_value): New variable frame, initialize it from
1829 p->frame_id. Add comment for invalidated FRAME.
1830 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1831 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1832 for invalidated FRAME.
1833
ae5e0686
MK
18342012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1835 Pedro Alves <palves@redhat.com>
1836
1837 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1838 loop.
1839
5049c5be
TT
18402012-07-16 Tom Tromey <tromey@redhat.com>
1841
1842 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1843
2908cac6
DE
18442012-07-15 Doug Evans <dje@google.com>
1845
094b34ac
DE
1846 * dwarf2read.c (stmt_list_hash): New struct.
1847 (type_unit_group): Embed "per_cu" member, remove pointer.
1848 New union member "t", move member "tus" into it, all uses updated.
1849 New member "hash", replaces member "line_offset, all uses updated.
1850 (quick_file_names): Replace member "offset" with "hash", all uses
1851 updated.
1852 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1853 (hash_file_name_entry, eq_file_name_entry): Call them.
1854 (hash_type_unit_group, eq_type_unit_group): Ditto.
1855 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1856 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1857 (dw2_get_file_names): Update.
1858 (create_type_unit_group): Replace "per_cu" arg with "cu".
1859 All callers updated. Fix "quick" (.gdb_index) handling.
1860 (get_type_unit_group): Replace "per_cu" arg with "cu".
1861 All callers updated.
1862 (build_type_unit_groups): Don't reset tu_stats.
1863
2908cac6
DE
1864 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1865 "tab_cur_size". Change member "tab" to be a htab_t.
1866 (create_filename_seen_cache): Update.
1867 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1868 (filename_seen): Update.
1869
a2b6eff5
DE
18702012-07-13 Doug Evans <dje@google.com>
1871
1872 * symtab.c (filename_seen): Update comment.
1873
4359dff1
JK
18742012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1875 Doug Evans <dje@google.com>
1876
1877 * buildsym.c (end_symtab_1): Split it to ...
1878 (end_symtab_get_static_block): ... this ...
1879 (end_symtab_from_static_block): ... and this function.
1880 (end_symtab, end_expandable_symtab): Call them.
1881 * buildsym.h (end_symtab_get_static_block)
1882 (end_symtab_from_static_block): New declarations.
1883 * dwarf2read.c (process_full_comp_unit): New variable static_block.
1884 Set its valid CU ranges.
1885
a24f71ab
JK
18862012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1887
1888 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1889 DW_OP_GNU_parameter_ref.
1890
d76b7dbc
JK
18912012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1892
1893 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1894 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1895
9fdc877b
DE
18962012-07-13 Doug Evans <dje@google.com>
1897
1898 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1899 (filename_seen_cache): New struct.
1900 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1901 (create_filename_seen_cache): New function.
1902 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1903 (filename_seen): Delete arg "first". New arg "cache". All callers
1904 updated.
1905 (output_source_filename_data): New struct.
1906 (output_source_filename): Delete arg "first". New arg "data".
1907 All callers updated.
1908 (sources_info): Delete local "first". New locals "data", "cleanups".
1909 Rewrite to use filename_seen_cache.
1910 (add_partial_filename_data): Delete member "first". New member
1911 "filename_seen_cache". All uses updated.
1912 (make_source_files_completion_list): Rewrite to use
1913 filename_seen_cache.
1914
f80c6f3f
DE
19152012-07-12 Doug Evans <dje@google.com>
1916
1917 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1918
0bfa869d
DE
19192012-07-10 Doug Evans <dje@google.com>
1920
f4dc4d17
DE
1921 PR gdb/13498
1922 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1923 all_type_unit_groups, type_unit_groups, tu_stats.
1924 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1925 All uses updated. Add type_unit_group to union "s".
1926 (type_unit_group): New struct.
1927 (IS_TYPE_UNIT_GROUP): New macro.
1928 (abbrev_table): Delete unused member "section".
1929 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1930 (dw2_get_cu): Assert not used with type_unit_group.
1931 (dw2_get_primary_cu): New function.
1932 (dw2_build_type_unit_groups_reader): New function.
1933 (dw2_build_type_unit_groups): New function.
1934 (dw2_get_file_names): Assert not called on type units.
1935 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1936 Redo loop to iterate over type unit groups instead of type units.
1937 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1938 (read_abbrev_offset): New function.
1939 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
1940 updated.
1941 (create_partial_symtab): New function.
1942 (process_psymtab_comp_unit_reader): Assert not used with type units.
1943 Call create_partial_symtab.
1944 (process_psymtab_type_unit): Delete.
1945 (hash_type_unit_group, eq_type_unit_group): New functions.
1946 (allocate_type_unit_groups_table): New function.
1947 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
1948 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
1949 (create_type_unit_group, get_type_unit_group): New functions.
1950 (tu_abbrev_offset): New struct.
1951 (sort_tu_by_abbrev_offset): New function.
1952 (add_type_unit_group_to_table): New function.
1953 (build_type_unit_groups): New function.
1954 (build_type_psymtabs_reader): New function.
1955 (build_type_psymtab_dependencies): New function.
1956 (build_type_psymtabs): Rewrite.
1957 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
1958 is seen in a type unit.
1959 (process_queue): Move symtab expansion debugging printfs here.
1960 Call process_full_type_unit for type units.
1961 (compute_symtab_includes): Assert not called for type units.
1962 (process_cu_includes): Don't call compute_symtab_includes for
1963 type units.
1964 (process_full_type_unit): New function.
1965 (process_imported_unit_die): Flag an error if called for type units.
1966 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
1967 updated. Assert not called for type units.
1968 (read_file_scope): Call dwarf2_start_symtab.
1969 (setup_type_unit_groups): New function.
1970 (read_type_unit_scope): Rewrite.
1971 (abbrev_table_read_table): Initialize abbrev_table->offset.
1972 (abbrev_table_free_cleanup): New function.
1973 (dwarf2_start_symtab): New function.
1974 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
1975 * buildsym.c (finish_block_internal): New arg "expandable".
1976 All callers updated.
1977 (start_symtab): Move most contents to ...
1978 (restart_symtab): ... here. New function.
1979 (reset_symtab_globals): New function.
1980 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
1981 Call reset_symtab_globals.
1982 (end_symtab, end_expandable_symtab): New functions.
1983 (set_missing_symtab, augment_type_symtab): New functions.
1984 * buildsym.h (end_expandable_symtab): Declare.
1985 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
1986 * psympriv.h (struct partial_symtab): New member "anonymous".
1987 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
1988 anonymous psymtabs.
1989 (read_psymtabs_with_filename): Ditto.
1990 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
1991 (expand_symtabs_matching_via_partial): Ditto.
1992 (dump_psymtab): Update.
0bfa869d
DE
1993 * dictionary.c (dict_add_pending): New function.
1994 * dictionary.h (dict_add_pending): Declare.
1995
45e58e77
DE
19962012-07-09 Doug Evans <dje@google.com>
1997
b74db436
DE
1998 * buildsym.c (start_subfile): Remove unnecessary check for
1999 name == NULL.
2000
fd55216c
DE
2001 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2002
6721b2ec
DE
2003 * dwarf2read.c (load_full_type_unit): Simplify.
2004
b4dd5633
DE
2005 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2006 to struct signatured_type **. All uses updated.
2007
45e58e77
DE
2008 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2009 All callers updated.
2010
e314d629
TT
20112012-07-09 Tom Tromey <tromey@redhat.com>
2012
2013 * c-exp.y (check_parameter_typelist): New function.
2014 (parameter_typelist): Call it.
2015 * eval.c (make_params): Handle '(void)' case.
2016 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2017 '(void)' case.
2018
aa7c7447
JK
20192012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2020
2021 * common/linux-ptrace.c: Include gdb_assert.h.
2022 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2023 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2024 stdint.h.
2025 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2026 functions.
2027 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2028 * linux-nat.c (linux_child_post_attach)
2029 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2030
889003ed
JK
20312012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2034 nptl <2.7 bug workaround for core files.
2035
da559b09
JK
20362012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2037
2038 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2039 clearing.
2040 (save_siginfo): Remove.
2041 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2042 call.
2043 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2044 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2045 * linux-nat.h (struct lwp_info): Remove field siginfo.
2046
f865ee35
JK
20472012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2048
2049 Code cleanup for the next patch.
2050 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2051 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2052 call for it.
2053 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2054 (ia64_linux_stopped_data_address):
2055 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2056 the return value.
2057 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2058 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2059 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2060 call for it.
2061
76b83c51
JK
20622012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2063
2064 PR 14321
2065 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2066 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2067
a6fb9c08
TT
20682012-07-06 Tom Tromey <tromey@redhat.com>
2069
2070 * c-exp.y (DOTDOTDOT): New token.
2071 (func_mod, exp): Use parameter_typelist.
2072 (parameter_typelist): New production.
2073 (tokentab3): Add "..." token.
2074 * eval.c (make_params): Handle varargs.
2075 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2076 varargs.
2077
71918a86
TT
20782012-07-06 Tom Tromey <tromey@redhat.com>
2079
2080 PR exp/9608:
2081 * c-exp.y (%union) <tvec>: Change type.
2082 (func_mod): Now uses <tvec> type.
2083 (exp): Update for tvec change.
2084 (direct_abs_decl): Push the typelist.
2085 (func_mod): Return a typelist.
2086 (nonempty_typelist): Update for tvec change.
2087 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2088 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2089 * parse.c (pop_type_list): New function.
2090 (push_typelist): New function.
2091 (follow_types): Handle tp_function_with_arguments.
2092 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2093 (enum type_pieces) <tp_function_with_arguments>: New constant.
2094 (union type_stack_elt) <typelist_val>: New field.
2095 (push_typelist): Declare.
2096
fcde5961
TT
20972012-07-06 Tom Tromey <tromey@redhat.com>
2098
2099 * c-exp.y (%union) <type_stack>: New field.
2100 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2101 (ptr_operator_ts): New production.
2102 (ptype): Update.
2103 * parse.c (type_stack_reserve): New function.
2104 (check_type_stack_depth): Use it.
2105 (pop_type_stack, append_type_stack, push_type_stack)
2106 (get_type_stack, type_stack_cleanup): New functions.
2107 (follow_types): Handle tp_type_stack.
2108 (_initialize_parse): Simplify initialization.
2109 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2110 constant.
2111 (union type_stack_elt) <stack_val>: New field.
2112 (get_type_stack, append_type_stack, push_type_stack)
2113 (type_stack_cleanup): Declare.
2114
1a7d0ce4
TT
21152012-07-06 Tom Tromey <tromey@redhat.com>
2116
2117 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2118 Remove.
2119 (struct type_stack): New.
2120 * parse.c (type_stack, type_stack_size, type_stack_depth):
2121 Remove.
2122 (type_stack): New global.
2123 (parse_exp_in_context, check_type_stack_depth)
2124 (insert_into_type_stack, insert_type, push_type, push_type_int)
2125 (insert_type_address_space, pop_type, pop_type_int)
2126 (_initialize_parse): Update.
2127
16d01384
TT
21282012-07-06 Tom Tromey <tromey@redhat.com>
2129
2130 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2131 Remove %type.
2132
9bfc60bf
SP
21332012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2134
2135 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2136
d5161074
SP
21372012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2138 Jan Kratochvil <jan.kratochvil@redhat.com>
2139
2140 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2141 alloca with xmalloc/xfree.
2142
a74bc576
SP
21432012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2144
2145 * MAINTAINERS (Write After Approval): Add myself to the list.
2146
667e0a4b
DE
21472012-07-05 Doug Evans <dje@google.com>
2148
2149 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2150
34b536a8
HZ
21512012-07-05 Hui Zhu <hui_zhu@mentor.com>
2152
2153 * ax-gdb.c (cli/cli-utils.h): New include.
2154 (linespec.h): Ditto.
2155 (agent_eval_command_one): New function.
2156 (agent_command_1): Ditto.
2157 (agent_command): Call function agent_command_1.
2158 (agent_eval_command): Ditto.
2159 (_initialize_ax_gdb): Change help for "maint agent"
2160 and "maint agent-eval".
2161
e6f0bce7
HZ
21622012-07-05 Hui Zhu <hui_zhu@mentor.com>
2163
2164 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2165 * cli/cli-utils.c (check_for_argument): New function.
2166 * cli/cli-utils.h (check_for_argument): Ditto.
2167
1b3371b1
L
21682012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2169
2170 * NEWS: Mention x32 ABI support.
2171
23e2d720
L
21722012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2173
2174 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2175 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2176
2177 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2178 and pc_regnum_from_eax to -1. Update SP regnum from
2179 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2180 needed.
2181
2182 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2183 pc_regnum_from_eax.
2184
836bf454
JK
21852012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2186
2187 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2188 * dwarf2expr.h: Include gdbtypes.h.
2189 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2190 these forward declarations.
2191 (cu_offset, sect_offset): Move these ...
2192 * gdbtypes.h: Remove include dwarf2expr.h.
2193 (cu_offset, sect_offset): ... here.
2194
1e55e04f
L
21952012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2196
2197 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2198 (amd64_linux_sigtramp_code): This.
2199 (amd64_x32_linux_sigtramp_code): New.
2200 (LINUX_SIGTRAMP_LEN): Updated.
2201 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2202
7d0e21ad
JK
22032012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2204
2205 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2206
8775fd2d
JK
22072012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2208
2209 * config.in: Regenerate.
2210 * configure: Regenerate.
2211 * configure.ac: Remove check for gnu/libc-version.h.
2212 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2213 gnu/libc-version.h.
2214 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2215 variables libc_version, libc_major and libc_minor. Replace sscanf by
2216 inferior_has_bug. Extend the comment.
2217
fcb44371
JK
22182012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2219
2220 * linux-thread-db.c (inferior_has_bug): New function.
2221 (thread_db_find_new_threads_silently): Return boolean as checked by
2222 inferior_has_bug, describe it in the comments.
2223 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2224 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2225 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2226 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2227 if UNTIL_NO_NEW,
2228
09406207
DE
22292012-07-02 Doug Evans <dje@google.com>
2230
0907af0c
DE
2231 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2232 related to queue management.
2233
09406207
DE
2234 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2235 instead of "debug dwarf2-die" in debugging printfs.
2236 (create_debug_info_hash_table_reader): Ditto.
2237 (create_debug_info_hash_table): Ditto.
2238 (init_dwo_file): Ditto.
2239 (init_cutu_and_read_dies): Add debugging printf.
2240 (init_cutu_and_read_dies_no_follow): Ditto.
2241 (process_psymtab_comp_unit_reader): Ditto.
2242
d3ce09f5
SS
22432012-07-02 Stan Shebs <stan@codesourcery.com>
2244
2245 Add target-side support for dynamic printf.
2246 * NEWS: Mention the additional style.
2247 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2248 (struct bp_location): New field cmd_bytecode.
2249 * breakpoint.c: Include format.h.
2250 (disconnected_dprintf): New global.
2251 (parse_cmd_to_aexpr): New function.
2252 (build_target_command_list): New function.
2253 (insert_bp_location): Call it.
2254 (remove_breakpoints_pid): Skip dprintf breakpoints.
2255 (print_one_breakpoint_location): Ditto.
2256 (dprintf_style_agent): New global.
2257 (dprintf_style_enums): Add dprintf_style_agent.
2258 (update_dprintf_command_list): Add agent case.
2259 (agent_printf_command): New function.
2260 (_initialize_breakpoint): Add new commands.
2261 * common/ax.def (printf): New bytecode.
2262 * ax.h (ax_string): Declare.
2263 * ax-gdb.h (gen_printf): Declare.
2264 * ax-gdb.c: Include cli-utils.h, format.h.
2265 (gen_printf): New function.
2266 (maint_agent_print_command): New function.
2267 (_initialize_ax_gdb): Add maint agent-printf command.
2268 * ax-general.c (ax_string): New function.
2269 (ax_print): Add printf disassembly.
2270 * Makefile.in (SFILES): Add format.c
2271 (COMMON_OBS): Add format.o.
2272 * common/format.h: New file.
2273 * common/format.c: New file.
2274 * printcmd.c: Include format.h.
2275 (ui_printf): Call parse_format_string.
2276 * remote.c (remote_state): New field breakpoint_commands.
2277 (PACKET_BreakpointCommands): New enum.
2278 (remote_breakpoint_commands_feature): New function.
2279 (remote_protocol_features): Add new BreakpointCommands entry.
2280 (remote_can_run_breakpoint_commands): New function.
2281 (remote_add_target_side_commands): New function.
2282 (remote_insert_breakpoint): Call it.
2283 (remote_insert_hw_breakpoint): Ditto.
2284 (_initialize_remote): Add new packet configuration for
2285 target-side breakpoint commands.
2286 * target.h (struct target_ops): New field
2287 to_can_run_breakpoint_commands.
2288 (target_can_run_breakpoint_commands): New macro.
2289 * target.c (update_current_target): Handle
2290 to_can_run_breakpoint_commands.
2291
2d7b58e8
JK
22922012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2293
2294 Execute -ix and -iex only after system and user gdbinit files.
2295 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2296 processing down after gdbinit files.
2297
8690e634
JK
22982012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2299
2300 Add fnmatch-gnu module.
2301 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2302 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2303 * gnulib/aclocal.m4: Regenerate.
2304 * gnulib/config.in: Regenerate.
2305 * gnulib/configure: Regenerate.
2306 * gnulib/import/dummy.c: Remove.
2307 * gnulib/import/Makefile.am: Regenerate.
2308 * gnulib/import/Makefile.in: Likewise.
2309 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2310 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2311 * gnulib/import/alloca.c: New file.
2312 * gnulib/import/alloca.in.h: Likewise.
2313 * gnulib/import/config.charset: Likewise.
2314 * gnulib/import/fnmatch.c: Likewise.
2315 * gnulib/import/fnmatch.in.h: Likewise.
2316 * gnulib/import/fnmatch_loop.c: Likewise.
2317 * gnulib/import/localcharset.c: Likewise.
2318 * gnulib/import/localcharset.h: Likewise.
2319 * gnulib/import/m4/alloca.m4: Likewise.
2320 * gnulib/import/m4/codeset.m4: Likewise.
2321 * gnulib/import/m4/configmake.m4: Likewise.
2322 * gnulib/import/m4/fcntl-o.m4: Likewise.
2323 * gnulib/import/m4/fnmatch.m4: Likewise.
2324 * gnulib/import/m4/glibc21.m4: Likewise.
2325 * gnulib/import/m4/localcharset.m4: Likewise.
2326 * gnulib/import/m4/locale-fr.m4: Likewise.
2327 * gnulib/import/m4/locale-ja.m4: Likewise.
2328 * gnulib/import/m4/locale-zh.m4: Likewise.
2329 * gnulib/import/m4/mbrtowc.m4: Likewise.
2330 * gnulib/import/m4/mbsinit.m4: Likewise.
2331 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2332 * gnulib/import/m4/mbstate_t.m4: Likewise.
2333 * gnulib/import/m4/stdbool.m4: Likewise.
2334 * gnulib/import/m4/wchar_h.m4: Likewise.
2335 * gnulib/import/m4/wctype_h.m4: Likewise.
2336 * gnulib/import/m4/wint_t.m4: Likewise.
2337 * gnulib/import/mbrtowc.c: Likewise.
2338 * gnulib/import/mbsinit.c: Likewise.
2339 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2340 * gnulib/import/mbsrtowcs-state.c: Likewise.
2341 * gnulib/import/mbsrtowcs.c: Likewise.
2342 * gnulib/import/ref-add.sin: Likewise.
2343 * gnulib/import/ref-del.sin: Likewise.
2344 * gnulib/import/stdbool.in.h: Likewise.
2345 * gnulib/import/streq.h: Likewise.
2346 * gnulib/import/strnlen1.c: Likewise.
2347 * gnulib/import/strnlen1.h: Likewise.
2348 * gnulib/import/verify.h: Likewise.
2349 * gnulib/import/wchar.in.h: Likewise.
2350 * gnulib/import/wctype.in.h: Likewise.
2351
202cbf1c
JK
23522012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2353
2354 Support shell wildcards for 'set auto-load safe-path'.
2355 * auto-load.c: Include fnmatch.h.
2356 (filename_is_in_dir): Rename to ...
2357 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2358 it. Update function comment. Rename dir_len to pattern_len. New
2359 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2360 messages. Use gdb_filename_fnmatch.
2361 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2362 pattern.
2363 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2364 * defs.h (gdb_filename_fnmatch): New declaration.
2365 * utils.c: Include fnmatch.h.
2366 (gdb_filename_fnmatch): New function.
2367
fb7b5af4
SDJ
23682012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2369
2370 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2371 `-probe' and `-probe-stap' options.
2372
72d0e2c5
YQ
23732012-07-01 Yao Qi <yao@codesourcery.com>
2374
2375 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2376 always_inserted_off, and always_inserted_enums.
2377 Change always_inserted_mode's type to 'enum auto_boolean'.
2378 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2379 callers.
2380 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2381 of add_setshow_enum_cmd.
2382 * infrun.c: Remove can_use_displaced_stepping_auto,
2383 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2384 can_use_displaced_stepping_enum.
2385 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2386 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2387 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2388 add_setshow_enum_cmd.
2389
42e7ad6c
DE
23902012-06-30 Doug Evans <dje@google.com>
2391
2392 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2393 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2394 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2395
39cf75f7
DE
23962012-06-29 Doug Evans <dje@google.com>
2397
2398 * linespec.c: #include "stack.h".
2399 (decode_line_with_current_source): Moved here from symtab.c and
2400 renamed from decode_line_spec. All callers updated.
2401 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2402 renamed from decode_line_spec_1. All callers updated.
2403 * linespec.h (decode_line_with_current_source): Move declaration here
2404 from symtab.h and renamed from decode_line_spec.
2405 (decode_line_with_last_displayed): Move declaration here from symtab.h
2406 and renamed from decode_line_spec_1.
2407 * macrocmd.c: #include "linespec.h".
2408 * symtab.c: Remove #include "linespec.h".
2409
433df2d4
DE
24102012-06-28 Doug Evans <dje@google.com>
2411
1ce1cefd
DE
2412 * dwarf2read.c (get_cu_length): New function.
2413 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2414 (create_debug_types_hash_table): Ditto.
2415 (init_cutu_and_read_dies): Ditto.
2416 (init_cutu_and_read_dies_no_follow): Ditto.
2417
3b80fe9b
DE
2418 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2419
433df2d4
DE
2420 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2421 (struct abbrev_table): Define.
2422 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2423 abbrev_table.
2424 (init_cutu_and_read_dies): Update.
2425 (abbrev_table_alloc_abbrev): New function. Replaces
2426 dwarf_alloc_abbrev. All callers updated.
2427 (abbrev_table_add_abbrev): New function.
2428 (abbrev_table_lookup_abbrev): New function. Replaces
2429 dwarf2_lookup_abbrev. All callers updated.
2430 (abbrev_table_read_table): New function. Contents moved here from
2431 dwarf2_read_abbrevs.
2432 (dwarf2_read_abbrevs): Call it.
2433 (abbrev_table_free): New function.
2434 (dwarf2_free_abbrev_table): Call it.
2435
71caed83
SS
24362012-06-28 Stan Shebs <stan@codesourcery.com>
2437
2438 * osdata.c (info_osdata_command): Filter out "Title" columns
2439 from non-MI uses.
2440 * common/linux-osdata.c (struct osdata_type): Add title field.
2441 (osdata_table): Add titles to each entry.
2442 (linux_command_xfer_osdata): Add a column for title data.
2443
37ce89eb
SS
24442012-06-28 Stan Shebs <stan@codesourcery.com>
2445
2446 Make logging work for MI.
2447 * NEWS: Mention it.
2448 * interps.h (interp_set_logging_ftype): New typedef.
2449 (struct interp_procs): New field set_logging_proc.
2450 (current_interp_set_logging): Declare.
2451 * interps.c (current_interp_set_logging): New function.
2452 * cli/cli-logging.c: Include interps.h.
2453 (set_logging_redirect): Call current_interp_set_logging.
2454 (pop_output_files): Ditto.
2455 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2456 * mi/mi-console.h (mi_console_set_raw): Declare.
2457 * mi/mi-console.c (mi_console_set_raw): New function.
2458 * mi/mi-interp.c (saved_raw_stdout): New global.
2459 (mi_set_logging): New function.
2460 (_initialize_mi_interp): Add it to interp procs.
2461
659c9f3a
DE
24622012-06-28 Doug Evans <dje@google.com>
2463
a743abeb
DE
2464 * symtab.c (lookup_symbol_aux_objfile): Use
2465 ALL_OBJFILE_PRIMARY_SYMTABS.
2466
659c9f3a
DE
2467 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2468
da2d6d3d
JK
24692012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2470
2471 * common/buffer.c: Include inttypes.h and stdint.h.
2472 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2473
e5ef252a
PA
24742012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2475 Pedro Alves <palves@redhat.com>
2476
2477 * gdbthread.h (ALL_THREADS): New macro.
2478 (thread_list): Declare.
2479 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2480 going, but instead fall through to the stepping handling.
2481 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2482 the passed in signal. Adjust debug output.
2483 (resume_callback): Rename to ...
2484 (linux_nat_resume_callback): ... this. Pass the thread's last
2485 stop signal, if in "pass" state.
2486 (linux_nat_resume): Adjust to rename.
2487 (stop_wait_callback): New assertion. Don't respawn signals;
2488 instead let the LWP remain with SIGNALLED set.
2489 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2490 * remote.c (append_pending_thread_resumptions): New.
2491 (remote_vcont_resume): Call it.
2492 * target.h (target_resume): Extend comment.
2493
1d7975eb
IS
24942012-06-28 Iain Sandoe <iain@codesourcery.com>
2495
2496 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2497
2e3cf129
DE
24982012-06-27 Doug Evans <dje@google.com>
2499
2500 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2501 Delete have_addr_base, unused. All uses updated.
2502 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2503 (dwarf2_get_pc_bounds): Add ranges_base.
2504 (dwarf2_record_block_ranges): Ditto.
2505
1bb9788d
TT
25062012-06-27 Tom Tromey <tromey@redhat.com>
2507
2508 PR macros/7961:
2509 * varobj.c (varobj_create): Update.
2510 (varobj_set_value): Update.
2511 * tracepoint.c (validate_actionline): Update.
2512 (encode_actions_1): Update.
2513 * parse.c (parse_exp_1): Add 'pc' argument.
2514 (parse_exp_in_context): Add 'pc' argument. Change how
2515 expression_context_pc is set.
2516 (parse_expression): Update.
2517 (parse_field_expression): Update.
2518 * expression.h (parse_exp_1): Update.
2519 * eval.c (parse_to_comma_and_eval): Update.
2520 * breakpoint.c (set_breakpoint_condition): Update.
2521 (update_watchpoint): Update.
2522 (init_breakpoint_sal): Update
2523 (find_condition_and_thread): Update.
2524 (watch_command_1): Update.
2525 (update_breakpoint_locations): Update.
2526 * ada-lang.c (ada_read_renaming_var_value): Update.
2527 (create_excep_cond_exprs): Update.
2528
0bc3a05c
DE
25292012-06-27 Doug Evans <dje@google.com>
2530
2531 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2532 type units.
2533
4bdcc0c1
DE
25342012-06-26 Doug Evans <dje@google.com>
2535
2536 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2537 prototype.
2538 (error_check_comp_unit_head): New arg abbrev_section. All callers
2539 updated.
2540 (read_and_check_comp_unit_head): Ditto.
2541 (read_and_check_type_unit_head): Ditto.
2542
ee0bf529
SCR
25432012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2544
2545 New attribute 'last' for gdb.Symtab_and_line.
2546 * NEWS (Python Scripting): Add entry about the new attribute.
2547 * python/py-symtab.c (salpy_get_last): New function which
2548 implements the get method for the 'last' attribute of
2549 gdb.Symtab_and_line.
2550 (sal_object_getset): Add entry for the 'last' attribute.
2551
1c658ad5
DE
25522012-06-26 Doug Evans <dje@google.com>
2553
09262596
DE
2554 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2555 (dwo_sections): Add macinfo, macro.
2556 (dwarf2_locate_dwo_sections): Watch for macro sections.
2557 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2558 All callers updated. Handle DWO files.
2559
45cfd468
DE
2560 * NEWS: Mention new options "set debug dwarf2-read" and
2561 "set debug symtab-create".
2562 * dwarf2read.c (dwarf2_read_debug): New static global.
2563 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2564 (process_queue): Ditto.
2565 (process_full_comp_unit): Ditto.
2566 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2567 * elfread.c (elf_symfile_read): Add debugging printf.
2568 * minsyms.c (install_minimal_symbols): Ditto.
2569 * psymtab.c (allocate_psymtab): Ditto.
2570 * symfile.c (allocate_symtab): Ditto.
2571 * symtab.c (symtab_create_debug): New global.
2572 (_initialize_symtab): Add new option "set debug symtab-create".
2573 * symtab.h (symtab_create_debug): Declare.
2574
1c658ad5
DE
2575 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2576 (lookup_dwo_type_unit): Ditto.
2577
6fea9e18
L
25782012-06-26 Roland McGrath <roland@hack.frob.com>
2579 H.J. Lu <hongjiu.lu@intel.com>
2580
2581 * amd64-linux-nat.c: Include <sys/user.h>.
2582 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2583 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2584 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2585
2586 * configure.ac: Check if the fs_base and gs_base members of
2587 `struct user_regs_struct' exist.
2588 * config.in: Regenerated.
2589 * configure: Likewise.
2590
adb4fe3b
ME
25912012-06-25 Michael Eager <eager@eagercon.com>
2592
2593 PR python/14291
f782ad9b 2594 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 2595
fc51cce1
MGD
25962012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2597
2598 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2599 register as a stack alignment in ARM mode.
2600
40a73391
JK
26012012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2602
2603 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2604 * gnulib/config.in: Regenerate.
2605 * gnulib/configure: Likewise.
2606 * gnulib/import/m4/extensions.m4: Update it.
2607 * gnulib/import/m4/gnulib-common.m4: Likewise.
2608 * gnulib/import/m4/memmem.m4: Likewise.
2609 * gnulib/import/m4/mmap-anon.m4: Likewise.
2610 * gnulib/import/m4/multiarch.m4: Likewise.
2611 * gnulib/import/stdint.in.h: Likewise.
2612
972daa01
YQ
26132012-06-24 Yao Qi <yao@codesourcery.com>
2614
2615 * corefile.c (write_memory_with_notification): New.
2616 * gdbcore.h: Declare write_memory_with_notification.
2617 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2618 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2619 * valops.c (value_assign): Likewise.
2620 * python/py-inferior.c (infpy_write_memory): Call
2621 'write_memory_with_notification'.
2622
8d6e0714
JK
26232012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2624
2625 * cc-with-index.sh: Use also -ex "set auto-load no".
2626
156942c7
DE
26272012-06-23 Doug Evans <dje@google.com>
2628
2629 PR 14125
2630 * NEWS: Document additions to .gdb_index.
2631 * dwarf2read.c: #include "gdb/gdb-index.h".
2632 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2633 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2634 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2635 (dwarf2_read_index): Recognize version 7.
2636 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2637 block_kind, domain): All callers updated.
2638 (dw2_find_symbol_file): Handle new index CU values.
2639 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2640 (add_index_entry): New args is_static, kind. All callers updated.
2641 (offset_type_compare, uniquify_cu_indices): New functions
2642 (symbol_kind): New function.
2643 (write_psymtabs_to_index): Remove duplicate CU values.
2644 (write_psymtabs_to_index): Write .gdb_index version 7.
2645
352b3eda
JB
26462012-06-22 Joel Brobecker <brobecker@adacore.com>
2647
2648 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2649 * configure: Regenerate.
2650
2678e2af
YQ
26512012-06-20 Yao Qi <yao@codesourcery.com>
2652
2653 * python/py-inferior.c: Update comments of infpy_read_memory
2654 and infpy_write_memory.
2655
95c391b6
TT
26562012-06-19 Tom Tromey <tromey@redhat.com>
2657
2658 PR exp/9514:
2659 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2660 (push_type_address_space): Remove.
2661 * parse.c (insert_into_type_stack): New function.
2662 (insert_type): Likewise.
2663 (insert_type_address_space): Rename from push_type_address_space.
2664 Insert tp_space_identifier.
2665 * c-exp.y (ptr_operator): New production.
2666 (abs_decl): Use ptr_operator.
2667 (space_identifier): Call insert_type_address_space.
2668 (ptype): Don't use const_or_volatile_or_space_identifier.
2669 (const_or_volatile_noopt): Call insert_type.
2670 (conversion_type_id, conversion_declarator): New productions.
2671 (operator): Use conversion_type_id.
2672
6ac9ef80
DE
26732012-06-18 Doug Evans <dje@google.com>
2674
422d65e7
DE
2675 * symtab.h (minimal_symbol): New member created_by_gdb.
2676 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2677 created by gdb.
2678 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2679 (search_symbols): Call it instead of lookup_symbol.
2680 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2681
49f6c839
DE
2682 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2683 Adjust address for DW_OP_GNU_addr_index.
2684 * dwarf2expr.h (dwarf_expr_context): Update comment.
2685 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2686 all callers updated. Handle TLS vars described with
2687 DW_OP_GNU_const_index.
2688 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2689 and DW_OP_GNU_const_index.
2690 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2691
6ac9ef80
DE
2692 * block.c (find_block_in_blockvector): Make explicit the fact that we
2693 ignore GLOBAL_BLOCK.
2694
4cd18215
TT
26952012-06-18 Tom Tromey <tromey@redhat.com>
2696
2697 * c-exp.y (operator): Remove trailing space after "delete" and
2698 "delete[]".
2699
a9b8d892
JK
27002012-06-18 Mark Kettenis <kettenis@gnu.org>
2701 Jan Kratochvil <jan.kratochvil@redhat.com>
2702
2703 Switch i386 and derived targets to ON_STACK.
2704 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2705 (amd64_dicos_init_abi): Remove its installment.
2706 * dicos-tdep.c (dicos_init_abi): Remove the
2707 set_gdbarch_call_dummy_location call. Update the comment here.
2708 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2709 (i386_dicos_init_abi): Remove its installment.
2710 * i386-tdep.c (i386_push_dummy_code): New function.
2711 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2712 i386_push_dummy_code.
2713
e2e4d78b
JK
27142012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2715
2716 Remove stale dummy frames.
2717 * breakpoint.c: Include dummy-frame.h.
2718 (longjmp_breakpoint_ops): New variable.
2719 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2720 bp_longjmp_call_dummy.
2721 (bpstat_what, bptype_string, print_one_breakpoint_location)
2722 (init_bp_location): Support bp_longjmp_call_dummy.
2723 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2724 (set_longjmp_breakpoint_for_call_dummy)
2725 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2726 functions.
2727 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2728 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2729 FIXME comment and extend the other comment for bp_call_dummy.
2730 (set_longjmp_breakpoint_for_call_dummy)
2731 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2732 * dummy-frame.c: Include gdbthread.h.
2733 (pop_dummy_frame_bpt): New function.
2734 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2735 (dummy_frame_discard): New function.
2736 (cleanup_dummy_frames): Update the comment about longjmps.
2737 * dummy-frame.h (dummy_frame_discard): New declaration.
2738 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2739 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2740 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2741 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2742 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2743 keep_going if IS_LONGJMP and there is no other reason to stop.
2744
09d5912c
TT
27452012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2746
2747 * remote-sim.c (sim_command_completer): Initialize
2748 variable 'result'.
2749
1788b2d3
JK
27502012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2751
2752 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2753 * dwarf2loc.c (call_site_parameter_matches): Support
2754 CALL_SITE_PARAMETER_PARAM_OFFSET.
2755 (needs_dwarf_reg_entry_value): Push stub value.
2756 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2757 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2758 * gdbtypes.h (enum call_site_parameter_kind): New item
2759 CALL_SITE_PARAMETER_PARAM_OFFSET.
2760 (struct call_site.parameter.u): New field param_offset.
2761
24c5c679
JK
27622012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2763
2764 Code cleanup: Generalize call_site.parameter key.
2765 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2766 variable dwarf_reg. New variable kind_u. Update parameters to
2767 push_dwarf_reg_entry_value.
2768 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2769 * dwarf2expr.h (enum call_site_parameter_kind)
2770 (union call_site_parameter_u): Forward declarations.
2771 (struct dwarf_expr_context_funcs): Update parameters and their
2772 description for push_dwarf_reg_entry_value.
2773 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2774 * dwarf2loc.c (call_site_parameter_matches): New function.
2775 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2776 description. Use call_site_parameter_matches.
2777 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2778 Update parameters and their description.
2779 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2780 New variable kind_u. Adjust the caller for updated parameters.
2781 (needs_dwarf_reg_entry_value): Update parameters.
2782 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2783 instead of attr. Update for the changed fields of struct
2784 call_site_parameter.
2785 * gdbtypes.h: Include dwarf2expr.h.
2786 (enum call_site_parameter_kind): New.
2787 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2788 fb_offset into new union u.
2789
ac142d96
L
27902012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2791
2792 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2793 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2794 for x32.
2795
ba224c70
L
27962012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2797
2798 * amd64-linux-nat.c (compat_x32_clock_t): New.
2799 (compat_x32_siginfo_t): Likewise.
2800 (compat_x32_siginfo_from_siginfo): Likewise.
2801 (siginfo_from_compat_x32_siginfo): Likewise.
2802 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2803 and siginfo_from_compat_x32_siginfo for x32.
2804
7ecbc825
HZ
28052012-06-15 Hui Zhu <hui_zhu@mentor.com>
2806
2807 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2808
233dfcf0
L
28092012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2810
2811 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2812 instead of gdbarch_ptr_bit.
2813 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2814 (amd64_supply_native_gregset): Likewise.
2815 (amd64_collect_native_gregset): Likewise.
2816 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2817 (amd64_supply_xsave): Likewise.
2818 (amd64_collect_fxsave): Likewise.
2819 (amd64_collect_xsave): Likewise.
2820
6da38f42
L
28212012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2822
2823 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2824 (amd64_linux_read_description): Check DS segment register for
2825 x32 process.
2826
663b969e
TT
28272012-06-15 Tom Tromey <tromey@redhat.com>
2828
2829 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2830 init_cutu_and_read_dies.
2831
d6f05027
IS
28322012-06-15 Iain Sandoe <iain@codesourcery.com>
2833
2834 * MAINTAINERS (Write After Approval): Add myself to the list.
2835
6598ed07
TT
28362012-06-15 Tom Tromey <tromey@redhat.com>
2837
2838 * valops.c (value_find_oload_method_list): Now static.
2839 * value.h (value_find_oload_method_list): Don't declare.
2840
2b214ea6
TT
28412012-06-15 Tom Tromey <tromey@redhat.com>
2842
2843 * valops.c (find_overload_match): Use value_ind.
2844
a210c238
MR
28452012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2846
2847 * infrun.c (handle_inferior_event): Correct indentation.
2848
3771a44c
DE
28492012-06-14 Doug Evans <dje@google.com>
2850
2851 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2852 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2853 All uses updated.
2854 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2855 updated. Handle DEBUG_LOC_START_LENGTH.
2856 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2857 (loclist_describe_location): Ditto.
2858
1c5a993e
MR
28592012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2860
2861 PR backtrace/13866
2862 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2863 after hiding inline functions.
2864
0b155465
JB
28652012-06-13 Joel Brobecker <brobecker@adacore.com>
2866
2867 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2868 _initialize_inf_ttrace.
2869
45717bac
JB
28702012-06-13 Joel Brobecker <brobecker@adacore.com>
2871
2872 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2873 _initialize_hppa_hpux_nat.
2874
34370865
JB
28752012-06-13 Joel Brobecker <brobecker@adacore.com>
2876
2877 * remote-sim.c (sim_command_completer): Change type of return
2878 value to "VEC (char_ptr) *". Adjust implementation accordingly.
2879
284c5a60
MK
28802012-06-13 Mark Kettenis <kettenis@gnu.org>
2881 Jan Kratochvil <jan.kratochvil@redhat.com>
2882
2883 PR tdep/14222
2884 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
2885 stack on a 16-byte boundary.
2886
2535757a
TT
28872012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2888
2889 * jit.c (finalize_symtab): Set function's return type to 'void' by
2890 default.
2891
fff4548b
MK
28922012-06-13 Mark Kettenis <kettenis@gnu.org>
2893 H.J. Lu <hongjiu.lu@intel.com>
2894
5a83521a
MK
2895 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2896 Move bits common to both the classic LP64 and the new x32 ILP32
2897 ABI here.
2898 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2899 (amd64_x32_linux_init_abi): New function.
2900 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2901 subtype.
2902
fff4548b
MK
2903 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2904 * i386-tdep.c (i386_pseudo_register_name): Make public.
2905 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2906 * amd64-tdep.c (amd64_dword_names): Add "eip".
2907 (amd64_x32_pseudo_register_type): New function
2908 (amd64_x32_init_abi): New function.
2909
dd80ea3c
JK
29102012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2911
2912 PR build/14003
2913 * inferior.h (struct inferior_suspend_state): Comment out.
2914 (struct inferior): Comment out the field suspend.
2915 * infrun.c (struct infcall_suspend_state): Comment out the field
2916 inferior_suspend.
2917 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2918 out its assignment.
2919
50af5481
JK
29202012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2921
2922 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2923 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2924 function comment. Return ERROR for unresolved cases. Implement
2925 returning proper NAME.
2926 (yylex): Accept also NAME from classify_inner_name.
2927 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2928 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2929 LOC_TYPEDEF type.
2930 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2931
d55637df
TT
29322012-06-13 Tom Tromey <tromey@redhat.com>
2933
2934 * breakpoint.c (condition_completer): New function.
2935 (_initialize_breakpoint): Use it.
2936 * value.c (complete_internalvar): New function.
2937 * value.h (complete_internalvar): Declare.
2938
49c4e619
TT
29392012-06-13 Tom Tromey <tromey@redhat.com>
2940
2941 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
2942 * breakpoint.c (catch_syscall_completer): Return a VEC.
2943 * cli/cli-cmds.c (complete_command): Update.
2944 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
2945 (complete_on_enum): Likewise.
2946 * command.h: Include gdb_vecs.h.
2947 (completer_ftype): Change return type.
2948 (complete_on_cmdlist, complete_on_enum): Likewise.
2949 * completer.c (noop_completer, filename_completer)
2950 (location_completer): Return a VEC.
2951 (add_struct_fields): Remove 'nextp' argument. Change 'output'
2952 to a VEC.
2953 (expression_completer, complete_line_internal, complete_line)
2954 (command_completer): Return a VEC.
2955 (gdb_completion_word_break_characters, line_completion_function):
2956 Update.
2957 * completer.h: Include gdb_vecs.h.
2958 (complete_line, noop_completer, filename_completer)
2959 (expression_completer, location_completer, command_completer):
2960 Update.
2961 * f-lang.c (f_word_break_characters): Return a VEC.
2962 * interps.c (interpreter_completer): Return a VEC.
2963 * language.h (struct language_defn)
2964 <la_make_symbol_completion_list>: Return a VEC.
2965 * python/py-cmd.c (cmdpy_completer): Return a VEC.
2966 * symtab.c (free_completion_list): Take a VEC.
2967 (return_val_size, return_val_index): Remove.
2968 (return_val): Now a VEC.
2969 (completion_list_add_name): Update.
2970 (default_make_symbol_completion_list_break_on)
2971 (default_make_symbol_completion_list, make_symbol_completion_list)
2972 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
2973 Return a VEC.
2974 (add_filename_to_list): Update.
2975 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
2976 <list>: Now a VEC.
2977 (maybe_add_partial_symtab_filename): Update.
2978 (make_source_files_completion_list): Return a VEC.
2979 * symtab.h (default_make_symbol_completion_list_break_on)
2980 (default_make_symbol_completion_list, make_symbol_completion_list)
2981 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
2982 (make_source_files_completion_list): Update.
2983
625e8578
TT
29842012-06-13 Tom Tromey <tromey@redhat.com>
2985
2986 * breakpoint.c (add_catch_command): Use completer_ftype.
2987 * breakpoint.h: Include command.h.
2988 (add_catch_command): Use completer_ftype.
2989 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
2990 * cli/cli-decode.h (struct cmd_list_element) <completer>:
2991 Use completer_ftype.
2992 * command.h (completer_ftype): New typedef.
2993 (set_cmd_completer): Use it.
2994 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
2995 completer_ftype.
2996
5eb3b062
PA
29972012-06-13 Pedro Alves <palves@redhat.com>
2998
2999 Partial revert of previous change.
3000
3001 * serial.c (scb_base): New global.
3002 (serial_for_fd): New.
3003 (serial_open, serial_fdopen_ops): Link new serial in open serials
3004 chain.
3005 (do_serial_close): Unlink serial from the open serials chain.
3006
8b3ee56d
PA
30072012-06-12 Pedro Alves <palves@redhat.com>
3008
3009 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3010 threads here.
3011 (prepare_for_detach): No longer context switch here in non-stop
3012 mode.
3013 (fetch_inferior_event): Ditto.
3014 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3015 to the event thread before removing breakpoints. Switch to the
3016 event thread before inserting breakpoints and resuming.
3017 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3018 event thread before resuming.
3019 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3020 Switch to the event thread before removing breakpoints.
3021
5d60742e
EZ
30222012-06-12 Eli Zaretskii <eliz@gnu.org>
3023
3024 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3025 special characters correctly for the Windows shells. See
3026 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3027 report.
3028 [!__MINGW32__]: Remove extra double quote character from special
3029 characters.
3030
a6feecf7
SS
30312012-06-11 Stan Shebs <stan@codesourcery.com>
3032
3033 * ui-out.h: Remove #if 0 declarations.
3034 * ui-out.c: Remove #if 0 functions.
3035
ddefb60f
PA
30362012-06-11 Pedro Alves <palves@redhat.com>
3037
3038 * ser-base.c (run_async_handler_and_reschedule): New.
3039 (fd_event, push_event): Use it.
3040 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3041 reference count to 1.
3042 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3043 instead of xfree.
3044 (serial_is_open, serial_ref, serial_unref): New.
3045 * serial.h (serial_open): Adjust comment.
3046 (serial_is_open): Declare.
3047 (serial_close): Adjust comment.
3048 (serial_ref, serial_unref) Declare.
3049 (struct serial): New field 'refcnt'.
3050
d5ad6aa5
PA
30512012-06-11 Pedro Alves <palves@redhat.com>
3052
3053 Remove #if 0'd "connect" command, and unnecessary associated
3054 refcounting and serial reuse bits.
3055
3056 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3057 * serial.c (last_serial_opened): Delete.
3058 (scb_base): Delete.
3059 (serial_open): Adjust.
3060 (serial_for_fd): Delete.
3061 (serial_fdopen_ops, do_serial_close): Adjust.
3062 (serial_fdopen_ops): Adjust.
3063
318aa544
PA
30642012-06-11 Pedro Alves <palves@redhat.com>
3065
3066 * serial.c (do_serial_close): Remove early return when SCB is
3067 null.
3068
07261596
TT
30692012-06-11 Tom Tromey <tromey@redhat.com>
3070
3071 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3072
cc80f267
JK
30732012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3074
3075 Fix regression by the "ambiguous linespec" series.
3076 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3077 get_last_displayed_symtab and get_last_displayed_line and depending
3078 on CURSAL.
3079
356d9f9d
TT
30802012-06-11 Tom Tromey <tromey@redhat.com>
3081
3082 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3083 (dw2_find_symbol_file): Use it.
3084
232b8704
ME
30852012-06-11 Michael Eager <eager@eagercon.com>
3086
3087 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3088 * mips-linux-tdep.h (mips_signals): New
3089
e81a37f7
TT
30902012-06-11 Tom Tromey <tromey@redhat.com>
3091
3092 * infrun.c (handle_inferior_event)
3093 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3094 breakpoint.
3095 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3096 exception logic in all cases. Update comments.
3097 (insert_longjmp_resume_breakpoint): Set the exception resume
3098 breakpoint.
3099
2e81047f
MR
31002012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3101
3102 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3103
4e32eda7
SCR
31042012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3105
3106 * valarith.c (binop_types_user_defined_p): Fix a typo.
3107
18648a37 31082012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3109 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3110
3111 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3112 * arch-utils.h: Declare.
3113 * gdbarch.sh: Add return_in_first_hidden_param_p.
3114 * gdbarch.c, gdbarch.h: Regenerated.
3115 * infcall.c (call_function_by_hand): Call
3116 gdbarch_return_in_first_hidden_param_p instead of
3117 language_pass_by_reference.
3118
3119 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3120 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3121 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3122 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3123 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3124 `cplus_return_struct_by_reference'.
3125 (tic6x_return_value): Handle language cplusplus.
3126 (tic6x_return_in_first_hidden_param_p): New.
3127 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3128
034e5797
DE
31292012-06-07 Doug Evans <dje@google.com>
3130
3131 * dwarf2read.c (dwarf2_cu): Add comment.
3132
6a00aa1e
MR
31332012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3134
3135 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3136 variable.
3137 (mips_eabi_push_dummy_call): Likewise.
3138 (mips_n32n64_push_dummy_call): Likewise.
3139 (mips_o32_push_dummy_call): Likewise.
3140 (mips_o64_push_dummy_call): Likewise.
3141
eaa05d59
MR
31422012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3143
3144 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3145
de13fcf2
MR
31462012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3147
3148 * mips-tdep.c (mips_pseudo_register_type): Use
3149 mips_float_register_p.
3150
c3a01a22
PA
31512012-06-06 Pedro Alves <palves@redhat.com>
3152
3153 * infrun.c (handle_inferior_event): Remove calls to
3154 reinit_frame_cache that follow a context_switch call.
3155
d25f45d9
PA
31562012-06-06 Pedro Alves <palves@redhat.com>
3157
3158 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3159 context_switch and remove stale comment.
3160
359f5fe6
PA
31612012-06-06 Pedro Alves <palves@redhat.com>
3162
3163 * infrun.c (struct execution_control_state): Remove
3164 `new_thread_event' field.
3165 (handle_inferior_event): Simplify new threads handling; don't
3166 resume the inferior if we find a new thread.
3167
2d4c29c5
TS
31682012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3169
3170 * NEWS: Document the deprecation of SH's 'regs' command.
3171 * inferior.h (all_registers_info): Add function declaration.
3172 * sh-tdep.c (sh_show_regs): Remove variable.
3173 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3174 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3175 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3176 (sh_show_regs_command): Remove functions.
3177 (sh_gdbarch_init): Don't set sh_show_regs.
3178 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3179 'info all-registers'.
3180 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3181 (sh64_show_regs): Remove functions.
3182 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3183
f5f1cdb6
JK
31842012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3185
3186 * configure.ac: Move development=true below AC_INIT.
3187 * configure: Regenerate.
3188
bf6309af
SS
31892012-06-05 Stan Shebs <stan@codesourcery.com>
3190
3191 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3192 gdb_stdout.
3193
45aa4659
JK
31942012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3195
3196 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3197 argument as ssize_t.
3198 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3199 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3200 * target.c (target_read_stack, target_write_memory)
3201 (target_write_raw_memory): Likewise.
3202 * target.h (target_read_stack, target_write_memory)
3203 (target_write_raw_memory): Likewise.
3204
1b162304
JK
32052012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3206
3207 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3208 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3209 * target.c (target_read_memory): Change LEN to ssize_t.
3210 * target.h (target_read_memory): Change LEN to ssize_t.
3211
8556afb4
PA
32122012-06-05 Pedro Alves <palves@redhat.com>
3213
3214 PR backtrace/13866
3215
3216 * breakpoint.c (until_break_command): Only fetch the selected
3217 frame after decode_line_1.
3218
fb139f32
PA
32192012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3220
3221 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3222 event breakpoint at _start, __start or main if a program
3223 interpreter is not found.
3224
a8e1bb34
JB
32252012-06-05 Joel Brobecker <brobecker@adacore.com>
3226
3227 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3228 Add declaration.
3229 * windows-tdep.c: #include "objfiles.h".
3230 (windows_iterate_over_objfiles_in_search_order): New function.
3231 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3232 iterate_over_objfiles_in_search_order gdbarch method to
3233 windows_iterate_over_objfiles_in_search_order.
3234 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3235
19630284
JB
32362012-06-05 Joel Brobecker <brobecker@adacore.com>
3237
3238 * gdbarch.sh: Add generation of
3239 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3240 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3241 (iterate_over_objfiles_in_search_order): New gdbarch method.
3242 * gdbarch.h, gdbarch.c: Regenerate.
3243 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3244 Add declaration.
3245 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3246 New function.
3247 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3248 out of lookup_symbol_aux_symtabs.
3249 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3250 call to lookup_symbol_aux_objfile.
3251 (struct global_sym_lookup_data): New type.
3252 (lookup_symbol_global_iterator_cb): New function.
3253 (lookup_symbol_global): Search for symbol using
3254 gdbarch_iterate_over_objfiles_in_search_order and
3255 lookup_symbol_global_iterator_cb.
3256 * findvar.c (struct minsym_lookup_data): New type.
3257 (minsym_lookup_iterator_cb): New function.
3258 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3259 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3260 and minsym_lookup_iterator_cb.
3261
67ff19f7
JB
32622012-06-05 Joel Brobecker <brobecker@adacore.com>
3263
3264 Revert the following patch:
3265 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3266 try locating the symbol in the symbol's own objfile first, before
3267 extending the search to all objfiles.
3268 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3269 out of lookup_symbol_aux_symtabs.
3270 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3271 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3272 Do not search EXCLUDE_OBJFILE.
3273 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3274 (lookup_symbol_global): Search for matches in the block's objfile
3275 first, before searching all other objfiles.
3276
ccab2054
JB
32772012-06-05 Joel Brobecker <brobecker@adacore.com>
3278
3279 * breakpoint.c (find_condition_and_thread): Stop parsing
3280 as soon as the first invalid keyword is found.
3281
e23d4a9c
JB
32822012-06-05 Joel Brobecker <brobecker@adacore.com>
3283
3284 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3285
70160166
JB
32862012-06-05 Joel Brobecker <brobecker@adacore.com>
3287
3288 * config/djgpp/djcheck.sh: Add copyright header.
3289
399501a5
JB
32902012-06-05 Joel Brobecker <brobecker@adacore.com>
3291
3292 * copyright.py (update_files, main): Fix path to update-copyright
3293 script.
3294
3770a159
JB
32952012-06-05 Joel Brobecker <brobecker@adacore.com>
3296
3297 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3298 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3299 for which a reminder to update by hand is printed.
3300
4aad0dfc
DE
33012012-06-04 Doug Evans <dje@google.com>
3302
3303 * buildsym.c (make_blockvector): Add comment.
3304
1f8cf220
PA
33052012-06-04 Pedro Alves <palves@redhat.com>
3306
3307 * arch-utils.c (default_gdb_signal_from_target): Delete.
3308 * arch-utils.h (default_gdb_signal_from_target): Delete.
3309 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3310 gdbarch_gdb_signal_from_target_p.
3311 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3312 predicate).
3313 * gdbarch.h: Regenerate.
3314 * gdbarch.c: Regenerate.
3315
86b49880
PA
33162012-06-04 Pedro Alves <palves@redhat.com>
3317
3318 * gdbarch.sh (gdb_signal_from_target): Mention that the
3319 implementation of the method must be host independent.
3320 * gdbarch.h: Regenerate.
3321
fe78531d
JK
33222012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3323
3324 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3325 parameters.
3326 (target_read_memory_bfd): New function.
3327 (symbol_file_add_from_memory): Use it.
3328
d790cf0a
DE
33292012-06-03 Doug Evans <dje@google.com>
3330
78e5175a
DE
3331 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3332 of primary symtab.
3333 (basic_lookup_transparent_type): Ditto.
3334
d790cf0a
DE
3335 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3336 (ALL_PRIMARY_SYMTABS): Use it.
3337 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3338 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3339 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3340 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3341 (basic_lookup_transparent_type): Ditto.
3342
c6e5ee5e
SDJ
33432012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3344
3345 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3346 it to optimize resolution of demangled name.
3347
a68ffae9
JK
33482012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3349
3350 * configure.ac (development): Define new variable.
3351 Call AC_CHECK_LIB for mcheck if $development.
3352 (ERROR_ON_WARNING): Enable it by default only if $development.
3353 * config.in: Regenerate.
3354 * configure: Regenerate.
3355
5299c1c4
JK
33562012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3357
3358 * target.c (target_read_memory): Make LEN argument as size_t.
3359 * target.h (target_read_memory): Likewise.
3360
33612012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
3362
3363 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3364
0c56f59b
EBM
33652012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3366
3367 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3368 BookE interface for PowerPC server processors if not available
3369 in the Linux Kernel.
3370
71bdabee
KS
33712012-05-31 Keith Seitz <keiths@redhat.com>
3372
3373 * linespec.c (decode_objc): Add cleanup to free
3374 INFO.FILE_SYMTABS.
3375 (find_linespec_symbols): Add cleanup to free CLASSES.
3376 * symfile.c (find_separate_debug_file_by_debuglink): Add
3377 cleanup to free DEBUGLINK.
3378 * ui-out.c (clear_header_list): No need to check if
3379 HEADER_NEXT.COLHDR is NULL.
3380 Free HEADER_NEXT.COL_NAME.
3381
acbd605d
MGD
33822012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3383
3384 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3385 warning.
3386
65662cde
PA
33872012-05-30 Jeff Kenton <jkenton@tilera.com>
3388
3389 * configure.host (gdb_host_cpu): Handle tilegx*.
3390 (gdb_host): Handle tilegx-*-linux*.
3391 * tilegx-linux-nat.c: New file.
3392 * config/tilegx/linux.mh: New file.
3393
ade64f0e
PA
33942012-05-30 Jeff Kenton <jkenton@tilera.com>
3395
3396 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3397 tilegx-linux-tdep.o.
3398 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3399 tilegx-linux-tdep.c.
3400 * configure.tgt: Handle tilegx-*-linux*.
3401 * tilegx-tdep.h: New file.
3402 * tilegx-tdep.c: New file.
3403 * tilegx-linux-tdep.c: New file.
3404 * regformats/reg-tilegx.dat: New file.
3405
bb08bdbd
EBM
34062012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3407
3408 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3409 accounting of hw watchpoints on ppc.
3410
ebd86fb5
TJB
34112012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3412
3413 * source.c (openp): Expand tilde in path entries.
3414
0a0edcd5
DE
34152012-05-29 Doug Evans <dje@google.com>
3416
98cc87bd
DE
3417 * buildsym.c (block_compar): Fix comment.
3418 (end_symtab): Fix and clarify some comments.
3419
0a0edcd5
DE
3420 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3421 cleanup_undefined_types.
3422 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3423 All callers updated.
3424
6f0c7050
TT
34252012-05-29 Tom Tromey <tromey@redhat.com>
3426
3427 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3428 fails.
3429 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3430 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3431 fails.
3432 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3433 fails.
3434
ec95993c
TG
34352012-05-29 Tristan Gingold <gingold@adacore.com>
3436
3437 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3438 (struct darwin_info): ... New struct.
3439 (solib_darwin_pspace_data): New variable.
3440 (darwin_pspace_data_cleanup): New function.
3441 (get_darwin_info): Likewise.
3442 (darwin_dyld_version_ok, darwin_load_image_infos)
3443 (darwin_solib_get_all_image_info_addr_at_init)
3444 (darwin_solib_read_all_image_info_addr): Add info argument.
3445 Adjust code.
3446 (darwin_current_sos): Use per pspace structure.
3447 (darwin_solib_create_inferior_hook): Likewise.
3448 (darwin_clear_solib): Likewise.
3449 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3450
ae25568b
PA
34512012-05-28 Pedro Alves <palves@redhat.com>
3452
3453 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3454 block that uses them. Clear ecss before handling each event.
3455
0c5bf5a9
JK
34562012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3457
3458 * solib-svr4.c (svr4_current_sos): New comment on
3459 svr4_current_sos_via_xfer_libraries fall back.
3460
bfb05775
JK
34612012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3462
3463 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3464 it as a fallback for TYPE_IS_OPAQUE.
3465 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3466 symbols for lookup_symbol.
3467
685b1105
JK
34682012-05-24 John Steele Scott <toojays@toojays.net>
3469
3470 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3471 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3472 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3473 (check_producer): ... this new function, which also checks for ICC
3474 and caches the result.
3475 (producer_is_icc): New function.
3476 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3477 producer was ICC.
3478
22203bbf
PA
34792012-05-24 Pedro Alves <palves@redhat.com>
3480
3481 PR gdb/7205
3482
3483 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3484 (default_gdb_signal_to_target): ... this. Add comment.
3485 (default_gdb_signal_from_host): Rename to ...
3486 (default_gdb_signal_from_target): ... this. Add comment.
3487 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3488 (default_gdb_signal_to_target): ... this.
3489 (default_gdb_signal_from_host): Rename to ...
3490 (default_gdb_signal_from_target): ... this.
3491 * corelow.c (core_open): Adjust to naming change. Replace comment.
3492 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3493 (gdb_signal_from_target): ... this. Adjust to
3494 default_gdb_signal_from_host naming change. Extend comment.
3495 (gdb_signal_to_host): Rename to ...
3496 (gdb_signal_to_target): ... this. Adjust to
3497 default_gdb_signal_to_host naming change.
3498 * gdbarch.h, gdbarch.c: Renegerate.
3499
a493e3e2
PA
35002012-05-24 Pedro Alves <palves@redhat.com>
3501
3502 PR gdb/7205
3503
f782ad9b 3504 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 3505
2ea28649
PA
35062012-05-24 Pedro Alves <palves@redhat.com>
3507
3508 PR gdb/7205
3509
3510 Replace target_signal with gdb_signal throughout.
3511
b09846a9
PA
35122012-05-24 Pedro Alves <palves@redhat.com>
3513
3514 PR tui/14159
3515
3516 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3517 string, instead of reusing the va_list argument.
3518
e77c107e
TT
35192012-05-24 Tom Tromey <tromey@redhat.com>
3520
3521 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3522 Remove.
3523
9fccedf7
DE
35242012-05-23 Doug Evans <dje@google.com>
3525
d50bd42b
DE
3526 * symtab.c (search_symbols): Formatting fixes.
3527 (print_symbol_info): Formatting fixes.
3528
9fccedf7
DE
3529 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3530 int64_t change to leb128 API.
3531 (read_encoded_value, decode_frame_entry_1): Ditto.
3532 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3533 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3534 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3535 (execute_stack_op): Ditto.
3536 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3537 (safe_read_uleb128, safe_read_sleb128): Ditto.
3538 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3539 (dwarf2_compile_expr_to_ax): Ditto.
3540 (locexpr_describe_location_piece): Ditto.
3541 (disassemble_dwarf_expression): Ditto.
3542 (locexpr_describe_location_1): Ditto.
3543
f3e0e960
SS
35442012-05-23 Stan Shebs <stan@codesourcery.com>
3545 Kwok Cheung Yeung <kcy@codesourcery.com>
3546
3547 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3548 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3549 (mi-cmd-info.o): New rule.
3550 * osdata.h (info_osdata_command): New declaration.
3551 * osdata.c (info_osdata_command): Change to non-static.
3552 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3553 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3554 * mi/mi-cmd-info.c: New file.
3555
c51fe631
DE
35562012-05-23 Doug Evans <dje@google.com>
3557
71cddcc1
DE
3558 * symtab.c (search_symbols): Pass NULL for file_matcher to
3559 expand_symtabs_matching if there are no files to match.
3560
c51fe631
DE
3561 * gdbtypes.c (lookup_typename): Simplify.
3562
a79378d4
PA
35632012-05-23 Pedro Alves <palves@redhat.com>
3564
3565 * arch-utils.h (default_target_signal_to_host): Delete.
3566 * arch-utils.c (default_target_signal_to_host): Delete.
3567 * gdbarch.sh (target_signal_to_host): Remove.
3568 * gdbarch.h, gdbarch.c: Regenerate.
3569
f664829e
DE
35702012-05-22 Doug Evans <dje@google.com>
3571
3572 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3573 "const gdb_byte *".
3574 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3575 (execute_cfa_program): Update to match API of leb128 functions.
3576 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3577 "const gdb_byte *".
3578 (read_unsigned_leb128, read_signed_leb128): Delete.
3579 (read_initial_length): Change type of buf argument to
3580 "const gdb_byte *".
3581 (read_encoded_value): Update to match API of leb128 functions.
3582 (decode_frame_entry): Change result to "const gdb_byte *", and
3583 similarly for "start" parameter.
3584 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3585 (dwarf2_build_frame_info): Change local frame_ptr to
3586 "const gdb_byte *".
3587 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3588 read_uleb128, read_sleb128. All callers updated.
3589 (safe_skip_leb128): New function.
3590 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3591 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3592 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3593 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3594 read_uleb128, read_sleb128.
3595 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3596 (execute_stack_op): Update to match API of leb128 functions.
3597 * dwarf2expr.h: #include "leb128.h".
3598 (read_uleb128, read_sleb128): Delete.
3599 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3600 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3601 * dwarf2loc.c (debug_loc_kind): New enum.
3602 (decode_debug_loc_addresses): New function.
3603 (decode_debug_loc_dwo_addresses): New function.
3604 (dwarf2_find_location_expression): Rewrite.
3605 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3606 (locexpr_describe_location_piece): Ditto.
3607 (disassemble_dwarf_expression): Ditto.
3608 (locexpr_describe_location_1): Ditto.
3609 (loclist_describe_location): Rewrite.
3610 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3611 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3612 (dwarf2_section_buffer_overflow_complaint): Renamed from
3613 dwarf2_macros_too_long_complaint. All callers updated.
3614 (skip_leb128): Delete.
3615 (init_cu_die_reader): Initialize reader->buffer_end.
3616 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3617 (skip_form_bytes): New arg buffer_end. All callers updated.
3618 Replace call to skip_leb128 with gdb_skip_leb128.
3619 (skip_unknown_opcode): New arg mac_end. All callers updated.
3620 (fill_in_loclist_baton): Initialize baton->from_dwo.
3621
837a1b32
MR
36222012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3623
3624 * mips-linux-nat.c (mips_linux_read_description): Use a more
3625 verbose error message.
3626
d0e64392
MR
36272012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3628
3629 * NEWS: Add MIPS/Linux DSP support.
3630 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3631 (SIGCONTEXT_DSPCTL): New macro.
3632 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3633 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3634 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3635 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3636 (N64_SIGCONTEXT_HI3): Likewise.
3637 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3638 (N64_SIGCONTEXT_LO3): Likewise.
3639 (N64_SIGCONTEXT_DSPCTL): Likewise.
3640 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3641 (mips_linux_o32_sigframe_init): Handle DSP registers.
3642 (mips_linux_n32n64_sigframe_init): Likewise.
3643
8bea7ed1
PM
36442012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3645
3646 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3647 call to abort.
3648
dab06dbe
PA
36492012-05-22 Pedro Alves <palves@redhat.com>
3650
3651 * target.h (store_waitstatus): Move declaration ...
3652 * inf-child.h (store_waitstatus): ... here.
3653 * target.c: Move inclusion of gdb_wait.h, and ...
3654 (store_waitstatus): ... this ...
3655 * inf-child.c: ... here.
3656 * linux-nat.c: Include inf-child.h.
3657 * rs6000-nat.c: Include inf-child.h.
3658 * spu-linux-nat.c: Include inf-child.h.
3659
43011e52
PM
36602012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3661
3662 * tracepoint.c (start_tracing): Add missing i18n markup.
3663 (stop_tracing, set_trace_user): Ditto.
3664 (set_trace_notes, set_trace_stop_notes): Ditto.
3665
b1af9e97
TT
36662012-05-21 Tom Tromey <tromey@redhat.com>
3667
3668 PR c++/7173:
3669 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3670 types.
3671 * value.h (value_cast_pointers): Update.
3672 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3673 (value_cast): Update.
3674 (update_search_result): New function.
3675 (do_search_struct_field): New, from search_struct_field. Check
3676 for ambiguous results.
3677 (search_struct_field): Rewrite.
3678 * infcall.c (value_arg_coerce): Update.
3679 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3680 value_cast_pointers.
3681 * ada-lang.c (ada_convert_actual): Update.
3682
e9e5e6b3
TT
36832012-05-21 Tom Tromey <tromey@redhat.com>
3684
3685 * macroexp.c (macro_stringify): Terminate the string.
3686
1564a261
JK
36872012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3688
3689 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3690 Describe it.
3691 * auto-load.c (auto_load_expand_dir_vars): New function.
3692 (auto_load_safe_path_vec_update): Use it, remove the
3693 substitute_path_component call thanks to it.
3694 (auto_load_objfile_script): Remove the debug_file_directory processing.
3695 Use auto_load_expand_dir_vars, remove the substitute_path_component
3696 call thanks to it.
3697 * configure: Regenerate.
3698 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3699 path. Escape $ also for $debugdir.
3700 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3701 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3702
a3ec0bb1
DE
37032012-05-20 Doug Evans <dje@google.com>
3704
3705 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3706 before use. Check for symtab->includes == NULL before scanning it.
3707
d467df4e
MR
37082012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3709
3710 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3711
4cc0665f
MR
37122012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3713
3714 * NEWS: Add microMIPS support and "set mips compression",
3715 "show mips compression" commands.
3716 * mips-tdep.h (mips_isa): New enum.
3717 (gdbarch_tdep): Add mips_isa.
3718 (mips_pc_is_mips16): Update prototype.
3719 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3720 * mips-tdep.c (mips_compression_mips16): New variable.
3721 (mips_compression_micromips): Likewise.
3722 (mips_compression_strings): Likewise.
3723 (mips_compression_string): Likewise.
3724 (is_mips16_isa, is_micromips_isa): New functions.
3725 (is_mips16_addr): Rename to...
3726 (is_compact_addr): ... this.
3727 (unmake_mips16_addr): Likewise to...
3728 (unmake_compact_addr): ... this.
3729 (make_mips16_addr): Likewise to...
3730 (make_compact_addr): ... this.
3731 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3732 functions.
3733 (mips_elf_make_msymbol_special): Handle microMIPS code.
3734 (msymbol_is_special): Rename to...
3735 (msymbol_is_mips16): ... this.
3736 (mips_make_symbol_special, mips_pc_is_mips16): Update
3737 accordingly.
3738 (msymbol_is_mips, msymbol_is_micromips): New functions.
3739 (mips16_to_32_reg): Rename to...
3740 (mips_reg3_to_reg): ... this.
3741 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3742 (mips_pc_isa): Likewise.
3743 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3744 code.
3745 (mips_fetch_instruction): Pass return status instead of printing
3746 an error message if requested. Handle microMIPS code. Bail out
3747 on an invalid ISA.
3748 (micromips_op): New macro.
3749 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3750 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3751 (b6s4_op, b7s3_reg): Likewise.
3752 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3753 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3754 (mips_insn_size): New function.
3755 (mips32_next_pc): Update mips_fetch_instruction call.
3756 (micromips_relative_offset7): New function.
3757 (micromips_relative_offset10): Likewise.
3758 (micromips_relative_offset16): Likewise.
3759 (micromips_pc_insn_size): Likewise.
3760 (micromips_bc1_pc): Likewise.
3761 (micromips_next_pc): Likewise.
3762 (unpack_mips16): Update mips_fetch_instruction call.
3763 (extended_mips16_next_pc): Update according to change to
3764 mips16_to_32_reg.
3765 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3766 code.
3767 (mips16_scan_prologue): Update mips_fetch_instruction call.
3768 Update according to change to mips16_to_32_reg.
3769 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3770 (mips_insn16_frame_base_sniffer): Likewise.
3771 (micromips_decode_imm9): New function.
3772 (micromips_scan_prologue): Likewise.
3773 (mips_micro_frame_cache): Likewise.
3774 (mips_micro_frame_this_id): Likewise.
3775 (mips_micro_frame_prev_register): Likewise.
3776 (mips_micro_frame_sniffer): Likewise.
3777 (mips_micro_frame_unwind): New variable.
3778 (mips_micro_frame_base_address): New function.
3779 (mips_micro_frame_base): New variable.
3780 (mips_micro_frame_base_sniffer): New function.
3781 (mips32_scan_prologue): Update mips_fetch_instruction call.
3782 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3783 rather than for MIPS16.
3784 (mips_insn32_frame_base_sniffer): Likewise.
3785 (mips_addr_bits_remove): Handle microMIPS code.
3786 (deal_with_atomic_sequence): Rename to...
3787 (mips_deal_with_atomic_sequence): ... this. Update the type
3788 of the variable used to hold an instruction. Remove the ISA bit
3789 check. Update mips_fetch_instruction call.
3790 (micromips_deal_with_atomic_sequence): New function.
3791 (deal_with_atomic_sequence): Likewise.
3792 (mips_about_to_return): Handle microMIPS code. Update
3793 mips_fetch_instruction call.
3794 (heuristic_proc_start): Check for the standard MIPS ISA rather
3795 than for MIPS16. Update mips_pc_is_mips16 and
3796 mips_fetch_instruction calls. Handle microMIPS code.
3797 (mips_push_dummy_code): Handle microMIPS code.
3798 (mips_eabi_push_dummy_call): Likewise.
3799 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3800 (mips_o64_push_dummy_call): Handle microMIPS code.
3801 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3802 (is_delayed): Remove function.
3803 (mips_single_step_through_delay): Replace the call to is_delayed
3804 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3805 Handle microMIPS code.
3806 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3807 microMIPS code.
3808 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3809 call.
3810 (micromips_in_function_epilogue_p): New function.
3811 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3812 call.
3813 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3814 Handle microMIPS.
3815 (gdb_print_insn_mips): Likewise.
3816 (mips_breakpoint_from_pc): Likewise.
3817 (mips_remote_breakpoint_from_pc): New function.
3818 (mips32_instruction_has_delay_slot): Simplify making use of the
3819 updated mips_fetch_instruction interface.
3820 (micromips_instruction_has_delay_slot): New function.
3821 (mips16_instruction_has_delay_slot): Simplify making use of the
3822 updated mips_fetch_instruction interface.
3823 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 3824 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
3825 calls. Handle microMIPS code.
3826 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3827 (mips_skip_trampoline_code): Handle microMIPS code.
3828 (global_mips_compression): New function.
3829 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3830 file flags. Register the microMIPS remote breakpoint handler
3831 and heuristic frame unwinder.
3832 (show_mips_compression): New function.
3833 (_initialize_mips_tdep): Add the "set mips compression" and
3834 "show mips compression" commands.
3835
22e048c9
SDJ
38362012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3837
3838 * ada-lang.c:
3839 * ada-tasks.c:
3840 * ada-varobj.c:
3841 * amd64-darwin-tdep.c:
3842 * arm-symbian-tdep.c:
3843 * arm-tdep.c:
3844 * avr-tdep.c:
3845 * ax-gdb.c:
3846 * bfin-linux-tdep.c:
3847 * breakpoint.c:
3848 * c-valprint.c:
3849 * cli/cli-cmds.c:
3850 * coffread.c:
3851 * cp-support.c:
3852 * cris-tdep.c:
3853 * dwarf2-frame-tailcall.c:
3854 * dwarf2-frame.c:
3855 * dwarf2expr.c:
3856 * dwarf2loc.c:
3857 * dwarf2read.c:
3858 * elfread.c:
3859 * eval.c:
3860 * expprint.c:
3861 * f-valprint.c:
3862 * frv-tdep.c:
3863 * h8300-tdep.c:
3864 * hppa-hpux-tdep.c:
3865 * hppa-tdep.c:
3866 * hppanbsd-tdep.c:
3867 * i386-nto-tdep.c:
3868 * i386-tdep.c:
3869 * i387-tdep.c:
3870 * ia64-tdep.c:
3871 * jit.c:
3872 * linespec.c:
3873 * linux-tdep.c:
3874 * lm32-tdep.c:
3875 * m2-valprint.c:
3876 * m32c-tdep.c:
3877 * m32r-rom.c:
3878 * m32r-tdep.c:
3879 * m68k-tdep.c:
3880 * m68klinux-tdep.c:
3881 * mi/mi-main.c:
3882 * microblaze-tdep.c:
3883 * mips-linux-tdep.c:
3884 * mips-tdep.c:
3885 * mn10300-tdep.c:
3886 * p-valprint.c:
3887 * parse.c:
3888 * ppc-linux-tdep.c:
3889 * ppc-sysv-tdep.c:
3890 * printcmd.c:
3891 * python/py-finishbreakpoint.c:
3892 * python/py-inferior.c:
3893 * python/py-infthread.c:
3894 * python/py-type.c:
3895 * python/python.c:
3896 * remote-fileio.c:
3897 * remote-m32r-sdi.c:
3898 * remote-mips.c:
3899 * reverse.c:
3900 * rl78-tdep.c:
3901 * rs6000-aix-tdep.c:
3902 * rs6000-tdep.c:
3903 * s390-tdep.c:
3904 * score-tdep.c:
3905 * sh64-tdep.c:
3906 * skip.c:
3907 * solib-darwin.c:
3908 * solib-dsbt.c:
3909 * solib-frv.c:
3910 * sparc-tdep.c:
3911 * spu-multiarch.c:
3912 * spu-tdep.c:
3913 * stack.c:
3914 * symfile.c:
3915 * symtab.c:
3916 * tic6x-tdep.c:
3917 * tracepoint.c:
3918 * v850-tdep.c:
3919 * valarith.c:
3920 * valprint.c:
3921 * value.c:
3922 * xcoffread.c:
3923 * xtensa-tdep.c:
3924 * ada-lang.c:
3925 * ada-tasks.c:
3926 * ada-varobj.c:
3927 * amd64-darwin-tdep.c:
3928 * arm-symbian-tdep.c:
3929 * arm-tdep.c: Delete unused variables.
3930
aff139ff
JK
39312012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3932
3933 Rename $ddir to $datadir.
3934 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3935 * auto-load.c (auto_load_safe_path_vec_update)
3936 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3937 * configure: Regenerate.
3938 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
3939 Likewise. Remove the 'use $ddir' help string.
3940
f7bfa992
JK
39412012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3942
3943 * auto-load.c (show_auto_load_safe_path): Accept any combination of
3944 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
3945
9cb709b6
TT
39462012-05-18 Tom Tromey <tromey@redhat.com>
3947
3948 PR exp/13907:
3949 * valprint.h (struct value_print_options) <symbol_print>: New
3950 field.
3951 * valprint.c (user_print_options): Add default for symbol_print.
3952 (show_symbol_print): New function.
3953 (generic_val_print): Respect symbol_print.
3954 (_initialize_valprint): Add "print symbol" setting.
3955 * f-valprint.c (f_val_print): Respect symbol_print.
3956 * c-valprint.c (c_val_print): Respect symbol_print.
3957 * NEWS: Update.
3958 * printcmd.c (print_address_symbolic): Return int. Ignore some
3959 zero-size symbols.
3960 (print_address_demangle): Return int.
3961 * defs.h: (print_address_symbolic): Return int.
3962 * value.h (print_address_demangle): Return int.
3963
b012acdd
TT
39642012-05-18 Tom Tromey <tromey@redhat.com>
3965
3966 * valprint.c (val_print_string): Don't print leading space.
3967 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
3968 print space before string or vtbl.
3969 * m2-valprint.c (print_unpacked_pointer): Optionally print space
3970 before string.
3971 * jv-valprint.c (java_value_print): Print space before string.
3972 * go-valprint.c (print_go_string): Print space before string.
3973 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
3974 space before string.
3975 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
3976 space before string or vtbl.
3977 * auxv.c (fprint_target_auxv): Print space after address.
3978
1d51a733
TT
39792012-05-18 Tom Tromey <tromey@redhat.com>
3980
3981 * printcmd.c (print_address_demangle): Remove special case for 0.
3982
edf0c1b7
TT
39832012-05-18 Tom Tromey <tromey@redhat.com>
3984
3985 * printcmd.c (print_address_demangle): Add 'opts' argument.
3986 * p-valprint.c (pascal_val_print): Update.
3987 * jv-valprint.c (java_val_print): Update.
3988 * value.h: Update.
3989 * valprint.c (generic_val_print): Update.
3990 (print_function_pointer_address): Add 'options' argument. Remove
3991 'addressprint' argument. Update.
3992 * m2-valprint.c (print_unpacked_pointer): Update.
3993 * gnu-v3-abi.c (print_one_vtable): Update.
3994 (gnuv3_print_method_ptr): Update.
3995 * f-valprint.c (f_val_print): Update.
3996 * cp-valprint.c (cp_print_value_fields): Update.
3997 * valprint.h (print_function_pointer_address): Update.
3998 * c-valprint.c (c_val_print): Update.
3999
9703b513
TT
40002012-05-18 Tom Tromey <tromey@redhat.com>
4001
4002 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4003 directly corresponding to the found psymtab.
4004 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4005 (dw2_find_pc_sect_symtab): Use it.
4006 * block.h (blockvector_contains_pc): Declare.
4007 * block.c (find_block_in_blockvector): New function.
4008 (blockvector_for_pc_sect): Use it.
4009 (blockvector_contains_pc): New function.
4010
5a439849
MR
40112012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4012
4013 * mips-tdep.h (mips_write_pc): New prototype.
4014 * mips-tdep.c (mips_write_pc): Make external, add description.
4015 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4016 add description.
4017
8376de04
MR
40182012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4019
4020 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4021 mips_regnum->pc.
4022 (mips_unwind_pc, mips_write_pc): Likewise.
4023 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4024 gdbarch_read_pc.
4025
d3581e61
JB
40262012-05-17 Joel Brobecker <brobecker@adacore.com>
4027
4028 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4029 proc_warn, proc_error, proc_get_status, proc_flags,
4030 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4031 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4032 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4033 proc_stop_process, proc_wait_for_stop, proc_run_process,
4034 proc_set_traced_signals, proc_set_traced_faults,
4035 proc_set_traced_sysentry, proc_set_traced_sysexit,
4036 proc_set_held_signals, proc_get_held_signals,
4037 proc_get_traced_signals, proc_get_traced_faults,
4038 proc_get_traced_sysentry, proc_get_traced_sysexit,
4039 proc_clear_current_fault, proc_set_current_signal,
4040 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4041 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4042 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4043 proc_get_current_thread, proc_get_current_thread,
4044 proc_get_current_thread, proc_update_threads,
4045 proc_update_threads, proc_update_threads, proc_update_threads,
4046 proc_iterate_over_threads, procfs_find_new_threads,
4047 procfs_pid_to_str): Make static. Remove advance declaration.
4048 (proc_cursig): Make static. Conditionalized defintion on
4049 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4050 (proc_syscall, proc_set_kill_on_last_close,
4051 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4052 proc_get_pending_signals, proc_get_signal_actions,
4053 proc_trace_signal, proc_ignore_signal): Delete.
4054
81b9b86e
SDJ
40552012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4056
4057 * coffread.c (cs_section_address): Passing proper argument for
4058 `bfd_get_section_vma'.
4059 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4060 `bfd_get_section_flags'.
4061 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4062 `bfd_get_section_vma'.
4063
abc9d0dc
TT
40642012-05-16 Tom Tromey <tromey@redhat.com>
4065
4066 PR macros/13205:
4067 * macrotab.h: (macro_define_special): Declare.
4068 (enum macro_special_kind): New.
4069 (struct macro_definition) <argc, replacement>: Update comments.
4070 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4071 (macro_define_object_internal): New function.
4072 (macro_define_object): Use it.
4073 (macro_define_special): New function.
4074 (fixup_definition): New function.
4075 (macro_lookup_definition, foreach_macro_in_scope)
4076 (foreach_macro): Use fixup_definition.
4077 * macroexp.h (macro_stringify): Declare.
4078 * macroexp.c (free_buffer_return_text): New function.
4079 (stringify): Constify "arg".
4080 (macro_stringify): New function.
4081 * dwarf2read.c (macro_start_file): Call macro_define_special.
4082
6a3a010b 40832012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4084 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4085
4086 * breakpoint.h (bp_location): Add related_address member.
4087 * inferior.h (get_return_value): Take a pointer to struct value
4088 instead of struct type for the function requested.
4089 * value.h (using_struct_return): Likewise.
4090 * gdbarch.sh (return_value): Take a pointer to struct value
4091 instead of struct type for the function requested.
4092 * breakpoint.c (set_breakpoint_location_function): Initialize
4093 related_address for bp_gnu_ifunc_resolver breakpoints.
4094 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4095 requested function's address to gdbarch_return_value.
4096 * eval.c (evaluate_subexp_standard): Pass the requested
4097 function's address to using_struct_return.
4098 * infcall.c (call_function_by_hand): Pass the requested
4099 function's address to using_struct_return and
4100 gdbarch_return_value.
4101 * infcmd.c (get_return_value): Take a pointer to struct value
4102 instead of struct type for the function requested.
4103 (print_return_value): Update accordingly.
4104 (finish_command_continuation): Likewise.
4105 * stack.c (return_command): Pass the requested function's
4106 address to using_struct_return and gdbarch_return_value.
4107 * value.c (using_struct_return): Take a pointer to struct value
4108 instead of struct type for the function requested. Pass the
4109 requested function's address to gdbarch_return_value.
4110 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4111 New function_value member, replacing function_type.
4112 (bpfinishpy_dealloc): Update accordingly.
4113 (bpfinishpy_pre_stop_hook): Likewise.
4114 (bpfinishpy_init): Likewise. Record the requested function's
4115 address.
4116 * mips-tdep.c (mips_fval_reg): New enum.
4117 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4118 words put in GP registers.
4119 (mips_o64_push_dummy_call): Update a comment.
4120 (mips_o32_return_value): Take a pointer to struct value instead
4121 of struct type for the function requested and use it to check if
4122 using the MIPS16 calling convention. Return the designated
4123 general purpose registers for floating-point values returned in
4124 MIPS16 mode.
4125 (mips_o64_return_value): Likewise.
4126 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4127 (ppc_sysv_abi_broken_return_value): Likewise.
4128 (ppc64_sysv_abi_return_value): Likewise.
4129 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4130 value instead of struct type for the function requested.
4131 * amd64-tdep.c (amd64_return_value): Likewise.
4132 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4133 * arm-tdep.c (arm_return_value): Likewise.
4134 * avr-tdep.c (avr_return_value): Likewise.
4135 * bfin-tdep.c (bfin_return_value): Likewise.
4136 * cris-tdep.c (cris_return_value): Likewise.
4137 * frv-tdep.c (frv_return_value): Likewise.
4138 * h8300-tdep.c (h8300_return_value): Likewise.
4139 (h8300h_return_value): Likewise.
4140 * hppa-tdep.c (hppa32_return_value): Likewise.
4141 (hppa64_return_value): Likewise.
4142 * i386-tdep.c (i386_return_value): Likewise.
4143 * ia64-tdep.c (ia64_return_value): Likewise.
4144 * iq2000-tdep.c (iq2000_return_value): Likewise.
4145 * lm32-tdep.c (lm32_return_value): Likewise.
4146 * m32c-tdep.c (m32c_return_value): Likewise.
4147 * m32r-tdep.c (m32r_return_value): Likewise.
4148 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4149 * m68k-tdep.c (m68k_return_value): Likewise.
4150 (m68k_svr4_return_value): Likewise.
4151 * m88k-tdep.c (m88k_return_value): Likewise.
4152 * mep-tdep.c (mep_return_value): Likewise.
4153 * microblaze-tdep.c (microblaze_return_value): Likewise.
4154 * mn10300-tdep.c (mn10300_return_value): Likewise.
4155 * moxie-tdep.c (moxie_return_value): Likewise.
4156 * mt-tdep.c (mt_return_value): Likewise.
4157 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4158 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4159 (ppc_sysv_abi_broken_return_value): Likewise.
4160 (ppc64_sysv_abi_return_value): Likewise.
4161 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4162 * rl78-tdep.c (rl78_return_value): Likewise.
4163 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4164 * rx-tdep.c (rx_return_value): Likewise.
4165 * s390-tdep.c (s390_return_value): Likewise.
4166 * score-tdep.c (score_return_value): Likewise.
4167 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4168 (sh_return_value_fpu): Likewise.
4169 * sh64-tdep.c (sh64_return_value): Likewise.
4170 * sparc-tdep.c (sparc32_return_value): Likewise.
4171 * sparc64-tdep.c (sparc64_return_value): Likewise.
4172 * spu-tdep.c (spu_return_value): Likewise.
4173 * tic6x-tdep.c (tic6x_return_value): Likewise.
4174 * v850-tdep.c (v850_return_value): Likewise.
4175 * vax-tdep.c (vax_return_value): Likewise.
4176 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4177 * xtensa-tdep.c (xtensa_return_value): Likewise.
4178 * gdbarch.c: Regenerate.
4179 * gdbarch.h: Regenerate.
4180
29ca12b3
TT
41812012-05-15 Tom Tromey <tromey@redhat.com>
4182
4183 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4184
588ae58c
JB
41852012-05-15 Joel Brobecker <brobecker@adacore.com>
4186
4187 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4188 of command in two error message.
4189
855a6e68
JB
41902012-05-15 Joel Brobecker <brobecker@adacore.com>
4191
4192 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4193
d634f2de
JB
41942012-05-15 Joel Brobecker <brobecker@adacore.com>
4195
4196 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4197
9cc815f5
JK
41982012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4199
4200 * NEWS (show auto-load scripts-directory): Add forgotten command.
4201
6a609e58
JK
42022012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4203
4204 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4205 parameters.
4206
ac1438b5
L
42072012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4208
4209 * amd64-tdep.c: Include features/i386/x32.c and
4210 features/i386/x32-avx.c.
4211 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4212 initialize_tdesc_x32_avx.
4213
e7e0cddf
SS
42142012-05-14 Stan Shebs <stan@codesourcery.com>
4215
4216 Add dynamic printf.
4217 * breakpoint.h (enum bptype): New type bp_dprintf.
4218 (struct breakpoint): New field extra_string.
4219 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4220 (create_breakpoint): Add extra_string arg.
4221 * breakpoint.c (dprintf_breakpoint_ops): New.
4222 (is_breakpoint): Add bp_dprintf.
4223 (bpstat_what): Add dprintf case.
4224 (bptype_string): Ditto.
4225 (print_one_breakpoint_location): Ditto.
4226 (init_bp_location): Ditto.
4227 (bkpt_print_mention): Ditto.
4228 (dprintf_style_enums): New array.
4229 (dprintf_style): New global.
4230 (dprintf_function): New global.
4231 (dprintf_channel): New global.
4232 (update_dprintf_command_list): New function.
4233 (update_dprintf_commands): New function.
4234 (init_breakpoint_sal): Add extra_string argument, handle it.
4235 (create_breakpoint_sal): Add extra_string argument.
4236 (create_breakpoints_sal): Add extra_string argument, update callers.
4237 (find_condition_and_thread): Add extra argument.
4238 (create_breakpoint): Add extra_string argument, record it.
4239 (dprintf_command): New function.
4240 (break_command_1): Add arg to create_breakpoint call.
4241 (handle_gnu_v3_exceptions): Ditto.
4242 (trace_command): Ditto.
4243 (ftrace_command): Ditto.
4244 (strace_command): Ditto.
4245 (bkpt_print_mention): Add dprintf case.
4246 (create_breakpoint_sal_default): Add extra_string argument.
4247 (_initialize_breakpoint): Add new commands.
4248 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4249 * python/py-breakpoint.c (bppy_init): Ditto.
4250 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4251
8ae38c14
MR
42522012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4253
4254 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4255
9f676e66
SCR
42562012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4257
4258 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4259 unsigned long long.
4260
7efc75aa
SCR
42612012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4262
4263 Add a new function gdb.find_pc_line to the Python API.
4264 * NEWS (Python Scripting): Add entry about the new function.
4265 * python/python.c (gdbpy_find_pc_line): New function which
4266 implements gdb.find_pc_line.
4267 (GdbMethods): Add entry for the new function.
4268
70af3797
PA
42692012-05-12 Pedro Alves <palves@redhat.com>
4270
4271 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4272 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4273
06da564e
EZ
42742012-05-12 Eli Zaretskii <eliz@gnu.org>
4275
4276 * inferior.c: Include completer.h
4277 (initialize_inferiors): Set completer of add-inferior to
4278 filename_completer.
4279
0288cee2
L
42802012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4281
4282 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4283 gdbarch_ptr_bit for x32 core dump.
4284
f6537a2c
L
42852012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4286
4287 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4288 and features/i386/x32-avx-linux.c.
4289
85d4a676
SS
42902012-05-11 Stan Shebs <stan@codesourcery.com>
4291 Kwok Cheung Yeung <kcy@codesourcery.com>
4292
4293 * NEWS: Describe new info os commands.
4294 * common/linux-osdata.c (PID_T, TIME_T): Define.
4295 (MAX_PID_T_STRLEN): New.
4296 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4297 MAX_PID_T_STRLEN.
4298 (command_from_pid): Add comment. Change to use PID_T.
4299 (commandline_from_pid): Change to use PID_T.
4300 (user_from_pid): Add comment.
4301 (get_process_owner): Add comment. Change to use PID_T and
4302 MAX_PID_T_STRLEN.
4303 (get_number_of_cpu_cores): Add comment.
4304 (get_cores_used_by_process): Add comment. Change to use PID_T and
4305 MAX_PID_T_STRLEN.
4306 (linux_xfer_osdata_processes): Change to use PID_T and
4307 MAX_PID_T_STRLEN.
4308 (compare_processes): New function.
4309 (linux_xfer_osdata_processgroups): New function.
4310 (linux_xfer_osdata_threads): Change to use PID_T.
4311 (linux_xfer_osdata_fds): New function.
4312 (format_socket_state, print_sockets): New functions.
4313 (union socket_addr): New union.
4314 (linux_xfer_osdata_isockets): New function.
4315 (time_from_time_t, group_from_gid): New functions.
4316 (linux_xfer_osdata_shm): New function.
4317 (linux_xfer_osdata_sem): New function.
4318 (linux_xfer_osdata_msg): New function.
4319 (linux_xfer_osdata_modules): New function.
4320 (osdata_table): Add new entries.
4321 * common/buffer.c (buffer_xml_printf): Add support for long and
4322 long long format specifiers.
4323
f24afd6d
L
43242012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4325
4326 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4327 (tdesc_x32_avx_linux): Likewise.
4328
7349ff92
JK
43292012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4330
4331 Implement multi-component --with-auto-load-dir.
4332 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4333 entries.
4334 (--with-auto-load-safe-path): Update the default value description.
4335 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4336 New.
4337 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4338 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4339 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4340 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4341 "set auto-load scripts-directory".
4342 * config.in: Regenerate.
4343 * configure: Regenerate.
4344 * configure.ac (--with-auto-load-dir): New configure option.
4345 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4346
6dea1fbd
JK
43472012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4348
4349 Provide $ddir substitution for --with-auto-load-safe-path.
4350 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4351 entries.
4352 * auto-load.c: Include observer.h.
4353 (auto_load_safe_path_vec_update): Call substitute_path_component for
4354 each component. New variable ddir_subst.
4355 (auto_load_gdb_datadir_changed): New function.
4356 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4357 AUTO_LOAD_SAFE_PATH. New comment.
4358 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4359 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4360 * config.in: Regenerate.
4361 * configure: Regenerate.
4362 * configure.ac (--auto-load-safe-path): Rename
4363 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4364 GDB_DATADIR/auto-load.
4365 * defs.h (substitute_path_component): New declaration.
4366 * top.c: Include observer.h.
4367 (set_gdb_datadir): New function.
4368 (init_main): Install it for "set data-directory".
4369 * utils.c (substitute_path_component): New function.
4370
b09aca3a
JK
43712012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4372
4373 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4374 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4375 DEBUG_FILE_DIRECTORY. Handle multiple components of
4376 DEBUG_FILE_DIRECTORY.
4377
95554aad
TT
43782012-05-10 Tom Tromey <tromey@redhat.com>
4379
4380 * dwarf2read.c (recursively_write_psymbols): New function.
4381 (write_psymtabs_to_index): Use it.
4382
4383 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4384 field.
4385 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4386 (load_partial_comp_unit): Update.
4387 (queue_comp_unit): Add argument 'pretend_language'.
4388 (process_queue): Update.
4389 (psymtab_to_symtab_1): Skip dependencies that have a user.
4390 (load_partial_comp_unit_reader): Give meaning to the 'data'
4391 argument.
4392 (load_full_comp_unit): Add 'pretend_language' argument.
4393 (process_full_comp_unit): Add 'pretend_language' argument. Set
4394 language on CU.
4395 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4396 Update.
4397 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4398 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4399 Update.
4400 (prepare_one_comp_unit): Add 'pretend_language' argument.
4401
4402 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4403 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4404 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4405 (dw2_do_instantiate_symtab): Check whether symtab was read in
4406 before queueing.
4407 (dw2_instantiate_symtab): Add assertion. Call
4408 process_cu_includes.
4409 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4410 (partial_symtab_p): New typedef.
4411 (set_partial_user): New function.
4412 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4413 (scan_partial_symbols): Add imported CU to imported_symtabs.
4414 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4415 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4416 (get_symtab, recursively_compute_inclusions)
4417 (compute_symtab_includes, process_cu_includes)
4418 (process_imported_unit_die): New functions.
4419 (process_die) <DW_TAG_imported_unit>: New case.
4420 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4421
4422 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4423 comment.
4424 (struct partial_die_info) <locdesc>: Remove.
4425 <d>: New field.
4426 (process_psymtab_comp_unit): Add 'read_partial' argument.
4427 Update.
4428 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4429 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4430 (add_partial_symbol): Update.
4431 (process_die): Handle DW_TAG_partial_unit.
4432 (read_file_scope): Update comment.
4433 (load_partial_dies): Handle DW_TAG_imported_unit.
4434 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4435 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4436
e871fbb9
TT
44372012-05-10 Tom Tromey <tromey@redhat.com>
4438
4439 * cc-with-dwz.sh: New file.
4440
b5b04b5b
TT
44412012-05-10 Tom Tromey <tromey@redhat.com>
4442
4443 * symtab.h (struct symtab) <includes, user>: New fields.
4444 * block.h (struct block_iterator) <d, idx, which>: New fields.
4445 * block.c (initialize_block_iterator, find_iterator_symtab)
4446 (block_iterator_step, block_iter_name_step)
4447 (block_iter_match_step): New functions.
4448 (block_iterator_first, block_iterator_next)
4449 (block_iter_name_first, block_iter_name_next)
4450 (block_iter_match_first, block_iter_match_next): Rewrite.
4451 (get_block_symtab): New function.
4452
84a146c9
TT
44532012-05-10 Tom Tromey <tromey@redhat.com>
4454
4455 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4456 set_block_symtab.
4457 * jit.c (finalize_symtab): Use allocate_global_block,
4458 set_block_symtab.
4459 * buildsym.c (finish_block_internal): New function, from old
4460 finish_block.
4461 (finish_block): Rewrite.
4462 (end_symtab): Use finish_block_internal, set_block_symtab.
4463 * block.h (struct global_block): New.
4464 (allocate_global_block, set_block_symtab): Declare.
4465 * block.c (allocate_global_block, set_block_symtab): New
4466 functions.
4467
9439a077
TT
44682012-05-10 Tom Tromey <tromey@redhat.com>
4469
4470 * psymtab.c (partial_map_expand_apply): Add assertion.
4471 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4472 (psymtab_to_symtab): Find unshared psymtab.
4473 (dump_psymtab): Print including psymtabs.
4474 (recursively_search_psymtabs): New function.
4475 (expand_symtabs_matching_via_partial): Use it.
4476 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4477 fields.
4478 (enum psymtab_search_status): New.
4479
8157b174
TT
44802012-05-10 Tom Tromey <tromey@redhat.com>
4481
4482 * tracepoint.c (scope_info): Update.
4483 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4484 (find_pc_sect_symtab, search_symbols)
4485 (default_make_symbol_completion_list_break_on)
4486 (make_file_symbol_completion_list): Update.
4487 * symmisc.c (dump_symtab_1): Update.
4488 * stack.c (print_frame_args, iterate_over_block_locals)
4489 (print_frame_labels, iterate_over_block_arg_vars): Update.
4490 * python/py-block.c (block_object) <dict>: Remove.
4491 <block>: New field.
4492 <iter>: Change type.
4493 (blpy_iter): Update.
4494 (blpy_block_syms_iternext): Update.
4495 * psymtab.c (map_block): Use block iterators.
4496 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4497 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4498 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4499 * infrun.c (check_exception_resume): Update.
4500 * cp-support.c (make_symbol_overload_list_block): Update.
4501 * coffread.c (patch_opaque_types): Update.
4502 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4503 * block.h (struct block_iterator): New.
4504 (block_iterator_first, block_iterator_next, block_iter_name_first)
4505 (block_iter_name_next, block_iter_match_first)
4506 (block_iter_match_next): Declare.
4507 (ALL_BLOCK_SYMBOLS): Redefine.
4508 * block.c (block_iterator_first, block_iterator_next)
4509 (block_iter_name_first, block_iter_name_next)
4510 (block_iter_match_first, block_iter_match_next): New functions.
4511 * ada-lang.c (ada_add_block_symbols)
4512 (ada_make_symbol_completion_list): Use block iterator.
4513
a2ca7a52
TT
45142012-05-10 Tom Tromey <tromey@redhat.com>
4515
4516 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4517 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4518 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4519 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4520 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4521 Update.
4522
64ea88dc
JB
45232012-05-10 Joel Brobecker <brobecker@adacore.com>
4524
4525 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4526 print-file-var-lib2.c, print-file-var-main.c and
4527 print-file-var.exp (located in gdb/testsuite/gdb.base).
4528
99a547d6
JB
45292012-05-10 Joel Brobecker <brobecker@adacore.com>
4530
4531 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4532 try locating the symbol in the symbol's own objfile first, before
4533 extending the search to all objfiles.
4534 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4535 out of lookup_symbol_aux_symtabs.
4536 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4537 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4538 Do not search EXCLUDE_OBJFILE.
4539 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4540 (lookup_symbol_global): Search for matches in the block's objfile
4541 first, before searching all other objfiles.
4542
0ece64fd
TG
45432012-05-10 Tristan Gingold <gingold@adacore.com>
4544
4545 * printcmd.c (set_command): Add pre/post inc/dec.
4546
3d16a105
FCE
45472012-05-09 Frank Ch. Eigler <fche@redhat.com>
4548
4549 * gdb.1: Document -ex option.
4550
2efbc0f7
JB
45512012-05-09 Joel Brobecker <brobecker@adacore.com>
4552
4553 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4554 * inferior.h (AT_SYMBOL): Delete.
4555
2c76a0c7
JB
45562012-05-09 Joel Brobecker <brobecker@adacore.com>
4557
4558 * mips-tdep.c (mips_push_dummy_code): New function.
4559 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4560 ON_STACK and install mips_push_dummy_code as our gdbarch
4561 push_dummy_code routine.
4562
9401a810
PA
45632012-05-09 Pedro Alves <palves@redhat.com>
4564
4565 * target.c (set_maintenance_target_async_permitted): Rename to ...
4566 (set_target_async_command): ... this.
4567 (show_maintenance_target_async_permitted): Rename to ...
4568 (show_target_async_command): ... this.
4569 (initialize_targets): Adjust.
4570
3929b321
DE
45712012-05-08 Doug Evans <dje@google.com>
4572
4573 * go-exp.y (classify_name): Add missing assignment of fields of
4574 yylval.ssym.
4575
c41535fd
EZ
45762012-05-08 Eli Zaretskii <eliz@gnu.org>
4577
4578 Display the ">" prompt in interactive mode while reading canned
4579 commands, even when the current interpreter is MI.
4580
4581 * interps.c (interp_set_temp): New function.
4582
4583 * interps.h (interp_set_temp): Add prototype.
4584
4585 * cli/cli-script.c (restore_interp): New cleanup function.
4586 (read_command_lines): Temporarily override the current interpreter
4587 with CLI and arrange for restoring the original one.
4588
c0749c4d
JS
45892012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4590
4591 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4592
d7333987
SDJ
45932012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4594
4595 * probe.c (parse_probes): Move conditional to check for
4596 debuginfo files from here...
4597 * stap-probe.c (stap_get_probes): ... to here.
4598
649e6d92
MK
45992012-05-07 Mark Kettenis <kettenis@gnu.org>
4600 H.J. Lu <hongjiu.lu@intel.com>
4601
4602 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4603 `movl %esp, %ebp' for the X32 ABI.
4604
f39c6ffd
TT
46052012-05-07 Tom Tromey <tromey@redhat.com>
4606
4607 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4608 get_DW_TAG_name.
4609 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4610 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4611 (dwarf_stack_op_name): Remove.
4612 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4613 (decode_locdesc): Use get_DW_OP_name.
4614 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4615 (dwarf2_compile_expr_to_ax): Likewise.
4616 (disassemble_dwarf_expression): Likewise.
4617 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4618
1e1f6591
CLT
46192012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4620
4621 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4622 (sh_linux_sigtramp_cache): New function.
4623 (sh_linux_sigreturn_init): New function.
4624 (sh_linux_rt_sigreturn_init): New function.
4625 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4626 patterns.
4627 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4628 syscall codes.
4629 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4630 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4631 (sh_linux_init_abi): Add init calls to register new tramp_frame
4632 definitions under 32-bit SH, update comments.
4633
545c08b4
PA
46342012-05-07 Pedro Alves <palves@redhat.com>
4635
daac165e
PA
4636 PR gdb/10952
4637
545c08b4
PA
4638 * amd64-linux-tdep.c: Include glibc-tdep.h.
4639 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4640 gdbarch_skip_solib_resolver callback.
4641
af2c1515
JK
46422012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4643
4644 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4645 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4646 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4647 (add_auto_load_safe_path): Change the error message.
4648 (_initialize_auto_load): Change the "safe-path" help text.
4649 * configure: Regenerate
4650 * configure.ac (--without-auto-load-safe-path): Set
4651 WITH_AUTO_LOAD_SAFE_PATH to /.
4652
1067f998
SDJ
46532012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4654
4655 * stap-probe.h: Do not include unecessary `probe.h'.
4656
45dfa85a
AM
46572012-05-05 Alan Modra <amodra@gmail.com>
4658
4659 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4660 bfd_und_section_ptr.
4661 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4662 and bfd_com_section_ptr.
4663
cf093994
JB
46642012-05-04 Joel Brobecker <brobecker@adacore.com>
4665
762ebb75 4666 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 4667
d40dc7a8
JB
46682012-05-04 Joel Brobecker <brobecker@adacore.com>
4669
4670 * windows-nat.h (segment_register_p_ftype): New typedef.
4671 (windows_set_segment_register_p): Add declaration.
4672 * windows-nat.c (segment_register_p): New static global.
4673 (windows_set_segment_register_p): New function.
4674 (do_windows_fetch_inferior_registers): Add special handling
4675 for segment registers.
4676 * amd64-windows-nat.c: #include "amd64-tdep.h".
4677 (amd64_windows_segment_register_p): New function.
4678 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4679 * i386-windows-nat.c: #include "i386-tdep.h".
4680 (i386_windows_segment_register_p): New function.
4681 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4682
52b3699b
TG
46832012-05-04 Tristan Gingold <gingold@adacore.com>
4684
4685 * printcmd.c (set_command): Emit a warning if the expression is not
4686 an assignment.
4687
94c74239
JB
46882012-05-03 Joel Brobecker <brobecker@adacore.com>
4689
4690 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4691 Make static.
4692
fcf57f19
SDJ
46932012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4694
4695 * stap-probe.c (stap_is_operator): Change declaration.
4696 (stap_get_opcode): Change return value.
4697 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4698 `stap_parse_argument_1'.
4699
27d2932e
PA
47002012-05-03 Pedro Alves <pedro@codesourcery.com>
4701
4702 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4703 debug log.
4704
a20ee7a4
SCR
47052012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4706
4707 Add two new methods global_block and static_block to gdb.Symtab
4708 objects.
4709 * NEWS (Python scripting): Add entry about the new methods.
4710 * python/py-symtab.c (stpy_global_block): New function which
4711 implements the gdb.Symtab.global_block() method.
4712 (stpy_static_block): New function which implements the
4713 gdb.Symtab.static_block() method.
4714 (symtab_object_methods): Add entries for the two new methods.
4715
943cb756
DE
47162012-05-03 Doug Evans <dje@google.com>
4717
4718 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4719 files.
4720
f4644a3f
YQ
47212012-05-03 Yao Qi <yao@codesourcery.com>
4722
4723 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4724 space.
4725 (i386_process_record): Ditto.
4726
ef61f180
JB
47272012-05-02 Joel Brobecker <brobecker@adacore.com>
4728
4729 * infcall.c (unwind_on_signal_p): Make static.
4730
02f1df11
JB
47312012-05-02 Joel Brobecker <brobecker@adacore.com>
4732
4733 * sol-thread.c (solaris_pid_to_str): Make static.
4734 (_initialize_sol_thread): Add prototype.
4735
39023530
JB
47362012-05-02 Joel Brobecker <brobecker@adacore.com>
4737
4738 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4739
c6b0c501
CF
47402012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4741
4742 * MAINTAINERS: Remove myself.
4743
1ef71717
JK
47442012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4745
4746 Fix --without-auto-load-safe-path for MS-Windows host platform.
4747 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4748
b31b86a7
EZ
47492012-05-02 Eli Zaretskii <eliz@gnu.org>
4750
4751 * gdb_curses.h: Undefine KEY_EVENT before including curses
4752 headers. Move "#undef MOUSE_MOVED" before any curses header
4753 inclusion.
4754
777532fc
SDJ
47552012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4756
4757 * features/i386/i386-mmx-linux.c: Regenerate.
4758 * features/rs6000/powerpc-32.c: Likewise.
4759 * features/rs6000/powerpc-32l.c: Likewise.
4760 * features/rs6000/powerpc-403.c: Likewise.
4761 * features/rs6000/powerpc-403gc.c: Likewise.
4762 * features/rs6000/powerpc-405.c: Likewise.
4763 * features/rs6000/powerpc-505.c: Likewise.
4764 * features/rs6000/powerpc-601.c: Likewise.
4765 * features/rs6000/powerpc-602.c: Likewise.
4766 * features/rs6000/powerpc-603.c: Likewise.
4767 * features/rs6000/powerpc-604.c: Likewise.
4768 * features/rs6000/powerpc-64.c: Likewise.
4769 * features/rs6000/powerpc-64l.c: Likewise.
4770 * features/rs6000/powerpc-750.c: Likewise.
4771 * features/rs6000/powerpc-860.c: Likewise.
4772 * features/rs6000/powerpc-e500.c: Likewise.
4773 * features/rs6000/powerpc-e500l.c: Likewise.
4774 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4775 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4776 * features/rs6000/rs6000.c: Likewise.
4777
d71871bc
SDJ
47782012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4779
4780 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4781 variable.
4782 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4783 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4784 (stap_parse_argument) <e>: Likewise.
4785 (handle_stap_probe) <byte_order>: Likewise.
4786
fd820528
DE
47872012-04-30 Doug Evans <dje@google.com>
4788
4789 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4790 init_and_read_dies_worker. All callers updated.
4791 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4792 replaced with init_cutu_and_read_dies.
4793 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4794 (find_partial_die): Remove FIXME. Don't free current CU.
4795
ec3f619d 47962012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
4797
4798 * contrib: New directory.
4799 * contrib/test_pubnames_and_indexes.py: New file.
4800
fceca515
DE
48012012-04-30 Doug Evans <dje@google.com>
4802
4803 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4804 All callers updated.
4805 (init_cu_die_reader): Verify the section is non-empty.
4806 (dwarf_decode_line_header): Don't dereference section->asection
4807 until we know the section is present.
4808
311fe7e1
SDJ
48092012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4810
4811 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4812 probes.
4813
5977971a
YQ
48142012-04-29 Yao Qi <yao@codesourcery.com>
4815
4816 * gdb-code-style.el: New hook gdb-markup-hook
4817 and gdb-comment-hook.
4818
dee91e82
DE
48192012-04-28 Doug Evans <dje@google.com>
4820
3019eac3
DE
4821 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4822 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4823 objfile->obfd.
4824 * symfile.h (dwarf2_debug_sections): New member addr.
4825 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4826 (ctx_no_get_addr_index): New function.
4827 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4828 (ctx_no_get_addr_index): Declare.
4829 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4830 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4831 (dwarf_expr_ctx_funcs): Update.
4832 (needs_get_addr_index): New function.
4833 (needs_frame_ctx_funcs): Update.
4834 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4835 * dwarf2read.c: #include "gdbcore.h".
4836 (dwarf2_per_objfile): New members addr, dwo_files.
4837 (dwarf2_elf_names): Add entry for addr.
4838 (struct dwo_section_names): New type.
4839 (dwo_section_names): New static global.
4840 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4841 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4842 old debug_types_section member updated to use this.
4843 Rename member debug_types_section to info_or_types_section,
4844 all uses updated.
4845 (signatured_type): Rename member type_offset to type_offset_in_tu,
4846 all uses updated. New member type_offset_in_section.
4847 (struct dwo_sections): New type.
4848 (struct dwo_unit): New type.
4849 (struct dwo_file): New type.
4850 (die_reader_specs): New member dwo_file.
4851 (dwarf2_locate_sections): Watch for .debug_addr.
4852 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4853 (dwarf2_read_section): Get bfd of section from bfd's asection,
4854 instead of objfile.
4855 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4856 (create_signatured_type_table_from_index): Initialize
4857 sig_type->info_or_types_section.
4858 (dw2_get_file_names): Statement lists for type units with DWO files
4859 live in the DWO file.
4860 (create_debug_types_hash_table): New function.
4861 (create_all_type_units): Rewrite.
4862 (init_cu_die_reader): New arg dwo_file, all callers updated.
4863 (init_and_read_dies_worker): Get section from
4864 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4865 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4866 continue reading the CU/TU from there.
4867 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4868 updated. Get section from this_cu->info_or_types_section.
4869 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4870 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4871 DW_FORM_GNU_str_index.
4872 (hash_dwo_file, eq_dwo_file): New functions.
4873 (allocate_dwo_file_hash_table): New function.
4874 (hash_dwo_unit, eq_dwo_unit): New functions.
4875 (allocate_dwo_unit_table): New function.
4876 (dwarf2_locate_dwo_sections): New function.
4877 (struct create_dwo_info_table_data): New type.
4878 (create_debug_info_hash_table_reader): New function.
4879 (create_debug_info_hash_table): New function.
4880 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
4881 (lookup_dwo_file): New function.
4882 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
4883 (free_dwo_file, free_dwo_file_cleanup): New functions.
4884 (free_dwo_file_from_slot, free_dwo_files): New functions.
4885 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
4886 (dwarf2_record_block_ranges): Ditto.
4887 (read_partial_die): Ditto.
4888 (process_enumeration_scope): Update to use type_offset_in_section.
4889 (read_full_die_1): New function.
4890 (read_full_die): Rewrite.
4891 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4892 DW_FORM_GNU_str_index.
4893 (read_addr_index_1, read_addr_index): New functions.
4894 (read_addr_index_from_leb128): New function.
4895 (struct dwarf2_read_addr_index_data): New type.
4896 (dwarf2_read_addr_index_reader): New function.
4897 (dwarf2_read_addr_index): New function.
4898 (read_str_index): New function.
4899 (leb128_size): New function.
4900 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4901 If processing a type unit from a DWO file, get the line section
4902 from the DWO file.
4903 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4904 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4905 DW_FORM_GNU_str_index.
4906 (lookup_die_type): Check whether section offset of type's die is
4907 known before looking it up. Remove assert. Condition can
4908 legimately happen for inter-cu type references.
4909 (dwarf_attr_name): Handle Fission attributes.
4910 (dwarf_form_name): Handle Fission forms.
4911 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4912 DW_FORM_GNU_str_index.
4913 (follow_die_sig): Update to use type_offset_in_section.
4914 (decode_locdesc): New case DW_OP_GNU_addr_index.
4915 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4916 DW_FORM_GNU_str_index.
4917 (cu_debug_loc_section): New function.
4918 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4919 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4920 Free DWO files if present.
4921 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4922
dee91e82
DE
4923 Refactor DIE reading.
4924 * dwarf2read.c (dwarf2_per_objfile): Replace members
4925 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4926 (die_reader_specs): New member "die_section". Temporarily make
4927 member "buffer" non-const, pending constifying all info_ptr uses.
4928 (die_reader_func_ftype): New typedef.
4929 (dw2_get_file_names_reader): New function.
4930 (dw2_get_file_names): Rewrite.
4931 (read_and_check_type_unit_head): Rename arg type_offset to
4932 type_offset_in_tu.
4933 (create_all_type_units): Improve debugging message.
4934 Improve dummy type unit check.
4935 (init_cu_die_reader): New arg "section". All callers updated.
4936 (init_and_read_dies_worker): New function.
4937 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4938 (init_cutu_and_read_dies_no_follow): New function.
4939 (init_cutu_and_read_dies_simple): New function.
4940 (process_psymtab_comp_unit_reader): New function.
4941 (process_psymtab_comp_unit): Delete args section,
4942 is_debug_types_section. Rewrite. All callers updated.
4943 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
4944 All callers updated. Rewrite.
4945 (load_partial_comp_unit_reader): New function.
4946 (load_partial_comp_unit): Rewrite.
4947 (skip_children): New arg reader. Delete args buffer, cu.
4948 All callers updated.
4949 (skip_one_die): New arg reader. Delete args buffer, cu.
4950 All callers updated.
4951 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
4952 All callers updated.
4953 (load_full_comp_unit_reader): New function.
4954 (load_full_comp_unit): Rewrite.
4955 (read_comp_unit): Delete.
4956 (read_die_and_children_1): Delete, contents moved ...
4957 (read_die_and_children): ... here.
4958 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
4959 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
4960 All callers updated.
4961 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
4962 All callers updated.
4963 (find_partial_die): Rewrite load_all_dies support.
4964 (read_attribute_value): New arg reader. Delete args abfd, cu.
4965 All callers updated.
4966 (read_attribute): New arg reader. Delete args abfd, cu.
4967 All callers updated.
4968 (load_full_type_unit): Add assert.
4969 (read_signatured_type_reader): New function.
4970 (read_signatured_type): Rewrite.
4971 (free_stack_comp_unit): Remove call to age_cached_comp_units.
4972 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
4973 All callers updated. Set per_cu->cu = NULL after freeing it.
4974 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
4975 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
4976 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
4977 (set_die_type): Update.
4978 (get_die_type_at_offset): Update.
4979 (read_file_scope): Call prepare_one_comp_unit.
4980 (read_type_unit_scope): Ditto.
4981 (prepare_one_comp_unit): Set producer if present.
4982
72d59e0d
SDJ
49832012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
4984
4985 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4986 gettext function on `error'.
4987
0fefef59
DE
49882012-04-27 Doug Evans <dje@google.com>
4989
4990 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
4991 is empty.
4992
28106bc2
SDJ
49932012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4994 Tom Tromey <tromey@redhat.com>
4995
4996 * breakpoint.c (struct breakpoint_objfile_data)
4997 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
4998 <exception_probes>: New fields.
4999 (free_breakpoint_probes): New function.
5000 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5001 `_Unwind_DebugHook'.
5002 (create_exception_master_breakpoint): Likewise.
5003 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5004 * infrun.c: Including necessary header files for handling SystemTap
5005 probes.
5006 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5007 via SystemTap probes.
5008 (check_exception_resume): Remove `func' argument. Handle exception
5009 unwinding breakpoint set via a SystemTap probe.
5010 (insert_exception_resume_from_probe): New function.
5011
55aa24fb
SDJ
50122012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5013 Tom Tromey <tromey@redhat.com>
5014 Jan Kratochvil <jan.kratochvil@redhat.com>
5015
5016 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5017 (COMMON_OBS): Likewise.
5018 (HFILES_NO_SRCDIR): Add `probe'.
5019 * NEWS: Mention support for static and SystemTap probes.
5020 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5021 SystemTap probes' arguments parser.
5022 * arm-linux-tdep.c: Including headers needed to perform the parsing
5023 of SystemTap probes' arguments.
5024 (arm_stap_is_single_operand): New function.
5025 (arm_stap_parse_special_token): Likewise.
5026 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5027 probes' arguments parser.
5028 * ax-gdb.c (require_rvalue): Removing static declaration.
5029 (gen_expr): Likewise.
5030 * ax-gdb.h (gen_expr): Declaring function.
5031 (require_rvalue): Likewise.
5032 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5033 (bkpt_probe_breakpoint_ops): New variable.
5034 (momentary_breakpoint_from_master): Set the `probe' value.
5035 (add_location_to_breakpoint): Likewise.
5036 (break_command_1): Using proper breakpoint_ops according to the
5037 argument passed by the user in the command line.
5038 (bkpt_probe_insert_location): New function.
5039 (bkpt_probe_remove_location): Likewise.
5040 (bkpt_probe_create_sals_from_address): Likewise.
5041 (bkpt_probe_decode_linespec): Likewise.
5042 (tracepoint_probe_create_sals_from_address): Likewise.
5043 (tracepoint_probe_decode_linespec): Likewise.
5044 (tracepoint_probe_breakpoint_ops): New variable.
5045 (trace_command): Using proper breakpoint_ops according to the
5046 argument passed by the user in the command line.
5047 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5048 static probes on breakpoints and tracepoints.
5049 * breakpoint.h (struct bp_location) <probe>: New field.
5050 * cli-utils.c (skip_spaces_const): New function.
5051 (extract_arg): Likewise.
5052 * cli-utils.h (skip_spaces_const): Likewise.
5053 (extract_arg): Likewise.
5054 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5055 * configure.ac: Append `stap-probe.o' to be generated when ELF
5056 support is present.
5057 * configure: Regenerate.
5058 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5059 * elfread.c: Include `probe.h' and `arch-utils.h'.
5060 (probe_key): New variable.
5061 (elf_get_probes): New function.
5062 (elf_get_probe_argument_count): Likewise.
5063 (elf_evaluate_probe_argument): Likewise.
5064 (elf_compile_to_ax): Likewise.
5065 (elf_symfile_relocate_probe): Likewise.
5066 (stap_probe_key_free): Likewise.
5067 (elf_probe_fns): New variable.
5068 (elf_sym_fns): Add `sym_probe_fns' value.
5069 (elf_sym_fns_lazy_psyms): Likewise.
5070 (elf_sym_fns_gdb_index): Likewise.
5071 (_initialize_elfread): Initialize objfile cache for static
5072 probes.
5073 * gdb_vecs.h (struct probe): New forward declaration.
5074 (probe_p): New VEC declaration.
5075 * gdbarch.c: Regenerate.
5076 * gdbarch.h: Regenerate.
5077 * gdbarch.sh (stap_integer_prefix): New variable.
5078 (stap_integer_suffix): Likewise.
5079 (stap_register_prefix): Likewise.
5080 (stap_register_suffix): Likewise.
5081 (stap_register_indirection_prefix): Likewise.
5082 (stap_register_indirection_suffix): Likewise.
5083 (stap_gdb_register_prefix): Likewise.
5084 (stap_gdb_register_suffix): Likewise.
5085 (stap_is_single_operand): New function.
5086 (stap_parse_special_token): Likewise.
5087 (struct stap_parse_info): Forward declaration.
5088 * i386-tdep.c: Including headers needed to perform the parsing
5089 of SystemTap probes' arguments.
5090 (i386_stap_is_single_operand): New function.
5091 (i386_stap_parse_special_token): Likewise.
5092 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5093 probes' arguments parser.
5094 * i386-tdep.h (i386_stap_is_single_operand): New function.
5095 (i386_stap_parse_special_token): Likewise.
5096 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5097 * mipsread.c (ecoff_sym_fns): Likewise.
5098 * objfiles.c (objfile_relocate1): Support relocation for static
5099 probes.
5100 * parse.c (prefixify_expression): Remove static declaration.
5101 (initialize_expout): Likewise.
5102 (reallocate_expout): Likewise.
5103 * parser-defs.h (initialize_expout): Declare function.
5104 (reallocate_expout): Likewise.
5105 (prefixify_expression): Likewise.
5106 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5107 of SystemTap probes' arguments.
5108 (ppc_stap_is_single_operand): New function.
5109 (ppc_stap_parse_special_token): Likewise.
5110 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5111 probes' arguments parser.
5112 * probe.c: New file, for generic statically defined probe support.
5113 * probe.h: Likewise.
5114 * s390-tdep.c: Including headers needed to perform the parsing of
5115 SystemTap probes' arguments.
5116 (s390_stap_is_single_operand): New function.
5117 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5118 probes' arguments parser.
5119 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5120 * stap-probe.c: New file, for SystemTap probe support.
5121 * stap-probe.h: Likewise.
5122 * symfile.h: Include `gdb_vecs.h'.
5123 (struct sym_probe_fns): New struct.
5124 (struct sym_fns) <sym_probe_fns>: New field.
5125 * symtab.c (init_sal): Initialize `probe' field.
5126 * symtab.h (struct probe): Forward declaration.
5127 (struct symtab_and_line) <probe>: New field.
5128 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5129 locations.
5130 (stop_tracing): Likewise.
5131 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5132
22d2b532
SDJ
51332012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5134 Tom Tromey <tromey@redhat.com>
5135
5136 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5137 and to compile agent expressions.
5138 * infrun.c (siginfo_make_value): New argument `ignore'.
5139 (siginfo_funcs): New struct.
5140 (_initialize_infrun): New argument when calling
5141 `create_internalvar_type_lazy'.
5142 * thread.c (thread_id_make_value): New argument `ignore'.
5143 (thread_funcs): New struct.
5144 (_initialize_thread): New argument when calling
5145 `create_internalvar_type_lazy'.
5146 * tracepoint.c (sdata_make_value): New argument `ignore'.
5147 (sdata_funcs): New struct.
5148 (_initialize_tracepoint): New argument when calling
5149 `create_internalvar_type_lazy'.
5150 * value.c (make_value): New struct.
5151 (create_internalvar_type_lazy): New argument `data'.
5152 (compile_internalvar_to_ax): New function.
5153 (value_of_internalvar): Properly handling `make_value' case.
5154 (clear_internalvar): Likewise.
5155 (show_convenience): Adding `TRY_CATCH' block.
5156 * value.h (internalvar_make_value): Delete, replace by...
5157 (struct internalvar_funcs): ... this.
5158 (create_internalvar_type_lazy) <fun>: Delete argument.
5159 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5160 (compile_internalvar_to_ax): New function.
5161 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5162 (tlb_funcs): New struct.
5163 (_initialize_windows_tdep): New argument when calling
5164 `create_internalvar_type_lazy'.
5165
91da1414
MW
51662012-04-27 Mark Wielaard <mjw@redhat.com>
5167
5168 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5169 see whether it is an address or a constant offset from DW_AT_low_pc.
5170 (dwarf2_record_block_ranges): Likewise.
5171 (read_partial_die): Likewise.
5172
4ab9d8ec
MW
51732012-04-26 Mark Wielaard <mjw@redhat.com>
5174
5175 * MAINTAINERS (Write After Approval): Add myself to the list.
5176
a0911fd0
MR
51772012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5178
5179 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5180 (proc_prettyprint_signal): Likewise.
5181 (proc_prettyprint_faultset): Likewise.
5182 (proc_prettyprint_fault): Likewise.
5183 (proc_prettyprint_actionset): Likewise.
5184 (proc_prettyprint_flags): Move to new proc-flags.c section.
5185 (proc_prettyfprint_flags): New prototype.
5186 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5187 (proc_syscall, proc_cursig): Likewise.
5188 (proc_set_kill_on_last_close): Likewise.
5189 (proc_unset_kill_on_last_close): Likewise.
5190 (proc_set_watchpoint): Make static.
5191 (proc_delete_dead_threads): Likewise.
5192 (procfs_set_watchpoint): Likewise.
5193 (_initialize_procfs): Add prototype.
5194 * proc-events.c: Include proc-utils.h.
5195 (init_syscall_table): Make static.
5196 * proc-api.c (_initialize_proc_api): Add prototype.
5197 * proc-flags.c: Include proc-utils.h.
5198
9009e1ae
MR
51992012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5200
5201 * configure.ac: Add AC_ARG_PROGRAM.
5202 * configure: Regenerate.
5203
4fae6e18
JK
52042012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5205
5206 Fix DW_AT_lower_bound defaults for DWARF-4+.
5207 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5208 high. New variable low_default_is_valid. Implement DWARF-4+
5209 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5210 no default by the DWARF standard.
5211
14132e89 52122012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5213 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5214
5215 * infrun.c (handle_inferior_event): Move the check for return
5216 trampolines ahead of the check for function trampolines.
5217 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5218 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5219 (mips_str_mips16_ret_stub): Likewise.
5220 (mips_str_call_fp_stub): Likewise.
5221 (mips_str_call_stub): Likewise.
5222 (mips_str_fn_stub): Likewise.
5223 (mips_str_pic): Likewise.
5224 (mips_in_frame_stub): New function.
5225 (mips_unwind_pc): Return the return address rather than the PC
5226 if the PC of an intermediate frame is inside a call thunk.
5227 (mips_is_stub_suffix): New function.
5228 (mips_is_stub_mode): Likewise.
5229 (mips_get_mips16_fn_stub_pc): Likewise.
5230 (mips_skip_mips16_trampoline_code): Update to handle all the
5231 currently generated stub types. Don't recurse into __fn_stub
5232 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5233 Use cooked register accesses.
5234 (mips_in_return_stub): Reintroduce function.
5235 (mips_skip_trampoline_code): Traverse trampolines recursively.
5236 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5237
518f0db5 52382012-04-26 Joel Brobecker <brobecker@adacore.com>
5239
5240 GDB 7.4.1 released.
5241
3184d3f9
JL
52422012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5243
5244 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5245 * features/arm-with-m-vfp-d16.xml: New file. Describes
5246 Cortex-M with VFPv4-sp-d16 FPU register layout.
5247 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5248 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5249 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5250 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5251 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5252
b6201d44
DE
52532012-04-25 Doug Evans <dje@google.com>
5254
5255 * cli/cli-decode.c (print_doc_line): Use stream instead of
5256 current_uiout.
5257
4e2f8df6
SDJ
52582012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5259
5260 * features/arm-with-iwmmxt.c: Regenerate.
5261 * features/arm-with-m-fpa-layout.c: Likewise.
5262 * features/arm-with-m.c: Likewise.
5263 * features/arm-with-neon.c: Likewise.
5264 * features/arm-with-vfpv2.c: Likewise.
5265 * features/arm-with-vfpv3.c: Likewise.
5266 * features/mips-dsp-linux.c: Likewise.
5267 * features/mips-linux.c: Likewise.
5268 * features/mips64-dsp-linux.c: Likewise.
5269 * features/mips64-linux.c: Likewise.
5270 * features/s390-linux32.c: Likewise.
5271 * features/s390-linux32v1.c: Likewise.
5272 * features/s390-linux32v2.c: Likewise.
5273 * features/s390-linux64.c: Likewise.
5274 * features/s390-linux64v1.c: Likewise.
5275 * features/s390-linux64v2.c: Likewise.
5276 * features/s390x-linux64.c: Likewise.
5277 * features/s390x-linux64v1.c: Likewise.
5278 * features/s390x-linux64v2.c: Likewise.
5279 * features/tic6x-c62x-linux.c: Likewise.
5280 * features/tic6x-c62x.c: Likewise.
5281 * features/tic6x-c64x-linux.c: Likewise.
5282 * features/tic6x-c64x.c: Likewise.
5283 * features/tic6x-c64xp-linux.c: Likewise.
5284 * features/tic6x-c64xp.c: Likewise.
5285 * target-descriptions.c: Only generate `field_type' and `type'
5286 variables when needed.
5287
2def3e66
JB
52882012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5289
5290 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5291
a766d390
DE
52922012-04-25 Doug Evans <dje@google.com>
5293
5294 Initial pass at Go language support.
5295 * NEWS: Mention Go.
5296 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5297 go-valprint.c.
5298 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5299 (YYFILES): Add go-exp.c.
5300 (YYOBJ): Add go-exp.o.
5301 (local-maintainer-clean): Delete go-exp.c.
5302 * defs.h (enum language): Add language_go.
5303 * dwarf2read.c: #include "go-lang.h".
5304 (fixup_go_packaging): New function.
5305 (process_full_comp_unit): Call it when processing Go CUs.
5306 (dwarf2_physname): Add Go support.
5307 (read_file_scope): Handle missing language spec for GNU Go.
5308 (set_cu_language): Handle DW_LANG_Go.
5309 * go-exp.y: New file.
5310 * go-lang.h: New file.
5311 * go-lang.c: New file.
5312 * go-typeprint.c: New file.
5313 * go-valprint.c: New file.
5314 * symtab.c: #include "go-lang.h".
5315 (symbol_set_language): Handle language_go.
5316 (symbol_find_demangled_name, symbol_set_names): Ditto.
5317 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5318
4e2af517
JM
53192012-04-24 Jim Meyering <meyering@redhat.com>
5320
5321 avoid a few strncpy-induced buffer overruns
5322 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5323 fname and psargs before trying to concatenate.
5324 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5325 "name" before applying strchr.
5326
b77b7f52
SCR
53272012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5328
5329 * CONTRIBUTE: Use unified diff instead of context diff when
5330 generating patches.
5331
6321c22a
MR
53322012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5333
5334 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5335 code. Handle JR.HB correctly.
5336
742c84f6
MR
53372012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5338
5339 * mips-tdep.c
5340 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5341 with the other MIPS16 helpers.
5342
7fc7e0c3
SDJ
53432012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5344
5345 * observer.sh: Conditionally declare `args', thus cleaning up
5346 unused instances of this variable.
5347
20388dd6
YQ
53482012-04-24 Yao Qi <yao@codesourcery.com>
5349
5350 Revert this patch to allow breakpoint always-inserted
5351 in record target.
5352 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
5353 * breakpoint.c: Include record.h.
5354 (breakpoints_always_inserted_mode): Return false when the record
5355 target is in use.
20388dd6
YQ
5356
5357 * breakpoint.c (iterate_over_bp_locations): New.
5358 * breakpoint.h: Declare.
5359 New typedef walk_bp_location_callback.
5360 * record.c (record_open): Call record_init_record_breakpoints.
5361 (record_sync_record_breakpoints): New.
5362 (record_init_record_breakpoints): New.
5363 * NEWS: Mention supporting breakpoint always-inserted mode in
5364 record target.
5365
4734f50e
MK
53662012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5367
5368 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5369 any thread.
5370
c326b90e
YQ
53712012-04-24 Yao Qi <yao@codesourcery.com>
5372
5373 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5374 (is_catchpoint): ... it.
5375 (print_one_breakpoint_location): Caller update.
5376 * breakpoint.h: Update declaration.
5377
d8fb5a1e
DM
53782012-04-23 David S. Miller <davem@davemloft.net>
5379
5380 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5381
34431a2a
TT
53822012-04-23 Tom Tromey <tromey@redhat.com>
5383
5384 * buildsym.c (add_free_pendings): Remove.
5385 * buildsym.h (add_free_pendings): Remove.
5386
4568ecf9
DE
53872012-04-23 Doug Evans <dje@google.com>
5388
5389 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5390 attr.u.unsnd instead of attr.u.addr.
5391 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5392 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5393 DW_FORM_ref_udata.
5394 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5395 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5396 DW_FORM_ref_udata.
5397 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5398
dca9aa3a
MR
53992012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5400
5401 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5402 (mips_o32_return_value): Likewise.
5403 (mips_o64_return_value): Likewise.
5404
c8ea1972
PH
54052012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5406
5407 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
5408 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5409 their treatment in eval.c.
c8ea1972 5410
8d1b3521
DM
54112012-04-21 David S. Miller <davem@davemloft.net>
5412
5413 * sparc-tdep.c (X_DISP10): Define.
5414 (sparc_analyze_control_transfer): Handle compare-and-branch.
5415
03145bf4
JL
54162012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5417
5418 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5419 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5420
004159a2 54212012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 5422 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
5423
5424 * mips-tdep.c (mips_float_register_p): New function.
5425 (mips_convert_register_float_case_p): Use mips_float_register_p.
5426 (mips_register_type): Likewise.
5427 (mips_print_register): Likewise.
5428 (print_gp_register_row): Likewise.
5429 (mips_print_registers_info): Likewise.
5430
7f0e6aae
MR
54312012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5432
5433 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5434 of mips16 symbols.
5435
bc17beea
AP
54362012-04-20 Andrew Pinski <apinski@cavium.com>
5437
5438 * MAINTAINERS (Write After Approval): Add myself to the list.
5439
1730a5a5
SDJ
54402012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5441
5442 * MAINTAINERS: Update my e-mail address.
5443
38ea300a
PA
54442012-04-20 Pedro Alves <palves@redhat.com>
5445
5446 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5447 $srcdir.
5448 * configure: Regenerate.
5449
111dfaae
SDJ
54502012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5451
5452 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5453 declaration.
5454 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5455
4fb2c64a
JK
54562012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5457
5458 Fix compilation compatibility with python-2.4
5459 * python/py-type.c (convert_field): Cast ADDRSTRING for
5460 PyObject_SetAttrString as non-const. New comment.
5461
6328eb38
TT
54622012-04-19 Tom Tromey <tromey@redhat.com>
5463
5464 * top.c (quit_target): Use all_cleanups.
5465 * main.c (captured_command_loop): Use all_cleanups.
5466 * exceptions.c (throw_exception): Use all_cleanups.
5467
c971b7fa
PA
54682012-04-19 Pedro Alves <palves@redhat.com>
5469
5470 * Makefile.in (GNULIB_BUILDDIR): New.
5471 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5472 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5473 (CLEANDIRS). Remove gnulib/import.
5474 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5475 (all-lib): Ditto.
5476 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5477 (gnulib/import/Makefile): Replace gnulib/import with
5478 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5479 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5480 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5481 acx_configure_dir.m4.
5482 * acinclude.m4: Include acx_configure_dir.m4.
5483 * acx_configure_dir.m4: New file.
5484 * aclocal.m4: Regenerate.
a09130f9
PA
5485 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5486 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5487 (GNULIB): New variable.
5488 (GNULIB_STDINT_H): Adjust.
5489 (AC_OUTPUT): Don't output gnulib/Makefile.
5490 * gdb/defs.h: Include build-gnulib/config.h.
5491 * aclocal.m4: Regenerate.
5492 * config.in: Regenerate.
5493 * configure: Regenerate.
5494
5495 * gnulib/Makefile.in: New file.
5496 * gnulib/configure.ac: New file.
5497 * gnulib/aclocal.m4: New file.
5498 * gnulib/config.in: New file.
5499 * gnulib/configure: New file.
c971b7fa
PA
5500 * gnulib/: Re-run gnulib-tool to adjust.
5501
b10faa68
DE
55022012-04-19 Doug Evans <dje@google.com>
5503
5504 * cleanups.h (struct cleanup): Move to cleanups.c.
5505 (make_cleanup_dtor_ftype): New typedef.
5506 (make_cleanup_dtor): Use it.
5507 (ALL_CLEANUPS): Replace with ...
5508 (all_cleanups): ... this. Declare. All uses updated.
5509 * cleanups.c: #include "gdb_assert.h".
5510 (sentinel_cleanup): New static global.
5511 (SENTINEL_CLEANUP): Define.
5512 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5513 (make_my_cleanup2): Assert result is non-NULL.
5514 (all_cleanups): New function.
5515 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5516 of NULL.
5517
d8c267cc
PA
55182012-04-19 Pedro Alves <palves@redhat.com>
5519
5520 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5521 Adjust paths to gnulib imported files.
5522
809277f8
PA
55232012-04-19 Pedro Alves <palves@redhat.com>
5524
5525 * gnulib/: Move whole directory ...
5526 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5527 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5528 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5529 (aclocal_m4_deps): Adjust.
5530 * aclocal.m4: Regenerate.
5531 * configure: Regenerate.
5532 * configure.ac: Adjust AC_OUTPUT output.
5533
aad9eab9
YQ
55342012-04-19 Yao Qi <yao@codesourcery.com>
5535
5536 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5537 (vec.o): New rule.
5538 * vec.c: Move it ...
5539 * common/vec.c: ... here.
5540 * vec.h: Move it ...
5541 * common/vec.h: ... here.
5542
48fe4669
YQ
55432012-04-19 Yao Qi <yao@codesourcery.com>
5544
5545 * gdb-code-style.el: New.
5546
770d76d7
PA
55472012-04-18 Pedro Alves <palves@redhat.com>
5548
5549 Update gnulib from latest git.
5550 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5551
5552 * gnulib/Makefile.am: Update.
5553 * gnulib/dummy.c: Update.
5554 * gnulib/extra/arg-nonnull.h: Update.
5555 * gnulib/extra/c++defs.h: Update.
5556 * gnulib/extra/update-copyright: Update.
5557 * gnulib/extra/warn-on-use.h: Update.
5558 * gnulib/inttypes.in.h: Update.
5559 * gnulib/m4/00gnulib.m4: Update.
5560 * gnulib/m4/extensions.m4: Update.
5561 * gnulib/m4/gnulib-cache.m4: Update.
5562 * gnulib/m4/gnulib-common.m4: Update.
5563 * gnulib/m4/gnulib-comp.m4: Update.
5564 * gnulib/m4/gnulib-tool.m4: Update.
5565 * gnulib/m4/include_next.m4: Update.
5566 * gnulib/m4/inttypes-pri.m4: Update.
5567 * gnulib/m4/inttypes.m4: Update.
5568 * gnulib/m4/longlong.m4: Update.
5569 * gnulib/m4/memchr.m4: Update.
5570 * gnulib/m4/memmem.m4: Update.
5571 * gnulib/m4/mmap-anon.m4: Update.
5572 * gnulib/m4/multiarch.m4: Update.
5573 * gnulib/m4/onceonly.m4: Update.
5574 * gnulib/m4/stddef_h.m4: Update.
5575 * gnulib/m4/stdint.m4: Update.
5576 * gnulib/m4/string_h.m4: Update.
5577 * gnulib/m4/warn-on-use.m4: Update.
5578 * gnulib/m4/wchar_h.m4: Update.
5579 * gnulib/m4/wchar_t.m4: Update.
5580 * gnulib/m4/wint_t.m4: Update.
5581 * gnulib/memchr.c: Update.
5582 * gnulib/memmem.c: Update.
5583 * gnulib/stddef.in.h: Update.
5584 * gnulib/stdint.in.h: Update.
5585 * gnulib/str-two-way.h: Update.
5586 * gnulib/string.in.h: Update.
5587 * gnulib/wchar.in.h: Update.
5588
5589 * gnulib/extra/arg-nonnull.h: Delete.
5590 * gnulib/extra/c++defs.h: Delete.
5591 * gnulib/extra/warn-on-use.h: Delete.
5592 * gnulib/m4/wchar_h.m4: Delete.
5593 * gnulib/m4/wint_t.m4: Delete.
5594 * gnulib/wchar.in.h: Delete.
5595
5596 * gnulib/extra/snippets/arg-nonnull.h: New.
5597 * gnulib/extra/snippets/c++defs.h: New.
5598 * gnulib/extra/snippets/warn-on-use.h: New.
5599
5600 * aclocal.m4: Regenerate.
5601 * config.in: Regenerate.
5602 * configure: Regenerate.
5603 * gnulib/Makefile.in: Regenerate.
5604
174e088e
PA
56052012-04-18 Pedro Alves <palves@redhat.com>
5606
5607 Reimport the update-copyright module from gnulib
5608 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5609
5610 * configure: Regenerate.
5611 * gnulib/Makefile.am: Update.
5612 * gnulib/Makefile.in: Regenerate.
5613 * gnulib/extra/update-copyright: Update.
5614 * gnulib/m4/gnulib-cache.m4: Update.
5615 * gnulib/m4/gnulib-comp.m4: Update.
5616
7f533142
JB
56172012-04-18 Tristan Gingold <gingold@adacore.com>
5618
5619 * configure.ac (aix): Put -lpthread into libs.
5620 * configure: Regenerate.
5621
001822aa
TT
56222012-04-18 Tom Tromey <tromey@redhat.com>
5623
5624 * linespec.c (convert_linespec_to_sals): Don't use
5625 SYMBOL_OBJ_SECTION.
5626 (compare_msymbols): Arguments are minsym_and_objfile, not
5627 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5628
db026a31
PA
56292012-04-18 Pedro Alves <palves@redhat.com>
5630
5631 Revert gnulib/ part of:
5632 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5633 Copyright year update in most files (performed by copyright.sh).
5634
12df843f
JK
56352012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5636
5637 Fix 64-bit constants on 32-bit hosts.
5638 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5639 from unsigned long to ULONGEST.
5640 (read_signed_leb128): Change declaration return type from long to
5641 LONGEST.
5642 (dwarf2_const_value_attr): Change declaration parameter value from long
5643 to LONGEST.
5644 (dwarf2_compute_name): Change variable value from long to LONGEST.
5645 (read_unsigned_leb128): Change return type, variable result and some
5646 casts from unsigned long to ULONGEST.
5647 (read_signed_leb128): Change return type, variable result and some
5648 casts from long to LONGEST.
5649 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5650 value from long to LONGEST.
5651 (dwarf2_const_value): Change variable value from long to LONGEST.
5652 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5653 plongest and hex_string.
5654 * symtab.h (struct general_symbol_info): Change ivalue from long to
5655 LONGEST, remove the comment.
5656 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5657 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5658
14e75d8e
JK
56592012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5660
5661 PR symtab/7259:
5662 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5663 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
5664 (ada_discrete_type_low_bound): Fix function comment. Use
5665 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
5666 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5667 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5668 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5669 Use TYPE_FIELD_ENUMVAL.
5670 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5671 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5672 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5673 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5674 TYPE_CODE_ENUM.
5675 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5676 * dwarf2read.c (process_enumeration_scope): Likewise.
5677 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5678 field.bitpos.
5679 (class StructMainTypePrettyPrinter): Support also
5680 FIELD_LOC_KIND_ENUMVAL.
5681 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5682 TYPE_CODE_ENUM.
5683 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5684 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5685 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5686 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5687 field enumval.
5688 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5689 accommodate enumval.
5690 (struct call_site): Adjust loc_kind to accommodate enumval.
5691 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5692 (TYPE_FIELD_ENUMVAL): New macros.
5693 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5694 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5695 TYPE_CODE_ENUM.
5696 * p-typeprint.c (pascal_type_print_base): Likewise.
5697 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5698 enumval.
5699 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5700 * python/py-type.c (convert_field): New variable addrstring. Use
5701 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5702 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5703 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5704 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5705 TYPE_CODE_ENUM.
5706 * valprint.c (generic_val_print): Likewise.
5707
380bca97
DE
57082012-04-17 Doug Evans <dje@google.com>
5709
dcc07052
DE
5710 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5711
380bca97
DE
5712 * dwarf2read.c: Whitespace fixes.
5713 (lookup_signatured_type): Tweak comment.
5714 (get_die_type_at_offset): Fix comment.
5715
ec92004f
JB
57162012-04-17 Joel Brobecker <brobecker@adacore.com>
5717
5718 * xcoffread.c (xcoff_secnum_to_sections): New function.
5719 (secnum_to_section, secnum_to_bfd_section): Reimplement
5720 using xcoff_secnum_to_sections. Rename "secnum" parameter
5721 into "n_scnum".
5722 (RECORD_MINIMAL_SYMBOL): Delete.
5723 (record_minimal_symbol): New function.
5724 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5725 by call to record_minimal_symbol and set misc_func_recorded
5726 to 1. Set last_csect_sec to the XCOFF section index instead
5727 of GDB's section_offset index. Update calls to
5728 prim_record_minimal_symbol_and_info to pass the BFD section
5729 as well.
5730
40301fb7
JB
57312012-04-17 Joel Brobecker <brobecker@adacore.com>
5732
5733 * xcoffread.c (read_xcoff_symtab): Delete variables
5734 last_csect_val and last_csect_sec and associated code.
5735
e0088cfd
DE
57362012-04-17 Doug Evans <dje@google.com>
5737
58d5e2c3
DE
5738 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5739 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5740 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5741 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5742
c27f5738
DE
5743 * cleanups.h: New file.
5744 * cleanups.c: New file.
5745 * Makefile.in (SFILES): Add cleanups.c.
5746 (HFILES_NO_SRCDIR): Add cleanups.h.
5747 (COMMON_OBS): Add cleanups.o.
5748 * defs.h (struct cleanup): Moved to cleanups.h.
5749 (do_cleanups,do_final_cleanups): Ditto.
5750 (discard_cleanups,discard_final_cleanups): Ditto
5751 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5752 (save_cleanups,save_final_cleanups): Ditto.
5753 (restore_cleanups,restore_final_cleanups): Ditto.
5754 (null_cleanup): Ditto.
5755 (make_my_cleanup,make_my_cleanup2): Ditto.
5756 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5757 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5758 (do_cleanups,do_final_cleanups): Ditto.
5759 (discard_cleanups,discard_final_cleanups): Ditto
5760 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5761 (save_cleanups,save_final_cleanups): Ditto.
5762 (restore_cleanups,restore_final_cleanups): Ditto.
5763 (null_cleanup): Ditto.
5764 (make_my_cleanup,make_my_cleanup2): Ditto.
5765 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5766
e0088cfd
DE
5767 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5768 make_my_cleanup.
5769 (make_cleanup_dyn_string_delete): Ditto.
5770 (make_cleanup_ui_file_delete): Ditto.
5771 (make_cleanup_ui_out_redirect_pop): Ditto.
5772 (make_cleanup_free_section_addr_info): Ditto.
5773 (make_cleanup_restore_integer): Ditto.
5774 (make_cleanup_unpush_target): Ditto.
5775 (make_cleanup_value_free_to_mark): Ditto.
5776 (make_cleanup_value_free): Ditto.
5777 (make_cleanup_free_so): Ditto.
5778
4dc84fd1
JK
57792012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5780
5781 New option "set debug auto-load".
5782 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5783 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5784 (auto_load_safe_path_vec_update)
5785 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5786 if DEBUG_AUTO_LOAD.
5787 (file_is_auto_load_safe): New parameters debug_fmt and ....
5788 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5789 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5790 caller by explanatory string.
5791 (_initialize_auto_load): Register "set debug auto-load".
5792 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5793 and ....
5794 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5795 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5796 by explanatory string.
5797 * main.c (captured_main): Likewise.
5798 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5799 (source_section_scripts): Likewise.
5800
bccbefd2
JK
58012012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5802
5803 New option "set auto-load safe-path".
5804 * NEWS: New commands "set auto-load safe-path"
5805 and "show auto-load safe-path".
5806 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5807 (auto_load_safe_path, auto_load_safe_path_vec)
5808 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5809 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5810 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5811 (source_gdb_script_for_objfile): New variable is_safe. Call
5812 file_is_auto_load_safe. Return if it is not.
5813 (struct loaded_script): New field loaded.
5814 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5815 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5816 output "Missing" to "No".
5817 (_initialize_auto_load): New variable cmd. Initialize
5818 auto_load_safe_path. Register "set auto-load safe-path",
5819 "show auto-load safe-path" and "add-auto-load-safe-path".
5820 * auto-load.h (maybe_add_script): Add parameter loaded.
5821 (file_is_auto_load_safe): New declaration.
5822 * config.in: Regenerate.
5823 * configure: Regenerate.
5824 * configure.ac: New parameters --with-auto-load-safe-path
5825 and --without-auto-load-safe-path.
5826 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5827 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5828 * main.c (captured_main): Check file_is_auto_load_safe for
5829 LOCAL_GDBINIT.
5830 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5831 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5832 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5833 not.
5834
bf88dd68
JK
58352012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5836
5837 auto-load: Implementation.
5838 * NEWS: New descriptions for "info auto-load",
5839 "info auto-load gdb-scripts", "info auto-load python-scripts",
5840 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5841 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5842 and "show auto-load-scripts". New description for "set auto-load",
5843 "show auto-load", "set auto-load gdb-scripts",
5844 "show auto-load gdb-scripts", "set auto-load python-scripts",
5845 "show auto-load python-scripts", "set auto-load local-gdbinit",
5846 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5847 "show auto-load libthread-db".
5848 * auto-load.c: Remove include python/python-internal.h. Add includes
5849 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5850 cli/cli-setshow.h.
5851 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5852 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5853 (gdbpy_global_auto_load): Rename to ...
5854 (global_auto_load): ... here.
5855 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5856 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5857 (script_language_gdb, source_gdb_script_for_objfile): New.
5858 (struct loaded_script): New field language.
5859 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5860 LANGUAGE.
5861 (maybe_add_script): Add parameter language. Drop redundant
5862 entry.full_path initialization. Initialize entry.language and
5863 (*slot)->language.
5864 (auto_load_objfile_script): Change parameter suffix to language.
5865 Remove the call of maybe_add_script.
5866 Call language->source_script_for_objfile.
5867 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5868 New.
5869 (collect_matching_scripts): Adjust it for
5870 struct collect_matching_scripts_data.
5871 (auto_load_info_scripts_pattern_nl): New variable.
5872 (info_auto_load_scripts): Rename to ...
5873 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5874 for struct collect_matching_scripts_data.
5875 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5876 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5877 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5878 (auto_load_info_cmdlist_get): New.
5879 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
5880 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
5881 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
5882 "info auto-load local-gdbinit".
5883 * auto-load.h (struct script_language): New.
5884 (gdbpy_global_auto_load): Rename to ...
5885 (global_auto_load): ... here.
5886 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5887 (auto_load_local_gdbinit_loaded): New declarations.
5888 (maybe_add_script): New parameter language.
5889 (auto_load_objfile_script): Change parameter suffix to language.
5890 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5891 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5892 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5893 declarations.
5894 * linux-thread-db.c: Include auto-load.h and ctype.h.
5895 (auto_load_thread_db, show_auto_load_thread_db): New.
5896 (struct thread_db_info): New field filename.
5897 (delete_thread_db_info): Call xfree for FILENAME.
5898 (try_thread_db_load): Initialize FILENAME.
5899 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5900 if !AUTO_LOAD_THREAD_DB.
5901 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5902 (_initialize_thread_db): Install auto_load_thread_db
5903 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5904 as "info auto-load libthread-db".
5905 * main.c (captured_main): Rename gdbpy_global_auto_load to
5906 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5907 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5908 (print_gdb_help): Extend the help for 'local init file'.
5909 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5910 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5911 (auto_load_scripts): Rename to ...
5912 (auto_load_python_scripts): ... here, update the comment.
5913 (gdbpy_load_auto_script_for_objfile): New declaration.
5914 (show_auto_load_python_scripts, script_language_python)
5915 (gdbpy_load_auto_script_for_objfile): New.
5916 (source_section_scripts): Refactor the code.
5917 (load_auto_scripts_for_objfile): Rename to ...
5918 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5919 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5920 (info_auto_load_python_scripts): New.
5921 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5922 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5923 Register "set auto-load-scripts" as its deprecated alias. Register
5924 "info auto-load python-scripts". Register "info auto-load-scripts" as
5925 its deprecated alias.
5926 (load_auto_scripts_for_objfile): Rename to ...
5927 (gdbpy_load_auto_scripts_for_objfile): ... here.
5928 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5929 (gdbpy_load_auto_scripts_for_objfile): ... here.
5930
e2207b9a
JK
59312012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5932
5933 auto-load: Move files.
5934 * Makefile.in (SFILES): Add auto-load.c.
5935 (HFILES_NO_SRCDIR): Add auto-load.h.
5936 (COMMON_OBS): Add auto-load.o.
5937 (distclean): Change .gdbinit for gdb-gdb.gdb.
5938 * auto-load.c: New file, with parts from python/py-auto-load.c.
5939 * auto-load.h: New file, with parts from python/python.h.
5940 * configure: Regenerate.
5941 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
5942 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
5943 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
5944 * main.c: Include auto-load.h.
5945 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
5946 command.h, observer.h and progspace.h to auto-load.c. Add include
5947 auto-load.h.
5948 (gdbpy_global_auto_load, struct auto_load_pspace_info)
5949 (struct loaded_script, auto_load_pspace_data)
5950 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
5951 (hash_loaded_script_entry, eq_loaded_script_entry)
5952 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
5953 (maybe_add_script): Move to auto-load.c.
5954 (source_section_scripts): Change maybe_add_script parameters passing,
5955 use script_not_found_warning_print.
5956 (clear_section_scripts, auto_load_objfile_script)
5957 (auto_load_new_objfile, loaded_script_ptr)
5958 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
5959 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
5960 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
5961 auto_load_new_objfile and info_auto_load_scripts initizations to
5962 auto-load.c.
5963 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
5964
e4ab2fad
JK
59652012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5966
5967 Code cleanup.
5968 * charset.c (find_charset_names): Remove variables ix and elt.
5969 Use free_char_ptr_vec.
5970 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
5971 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5972 debugdir_end. New variable debugdir_len.
5973 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
5974 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
5975 declarations.
5976 * progspace.c (clear_program_space_solib_cache): Remove variables ix
5977 and elt. Use free_char_ptr_vec.
5978 * source.c (add_path): Remove variables argv, arg and argv_index.
5979 New variables dir_vec, back_to, ix and name.
5980 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
5981 make_cleanup_freeargv. Remove variable separator. Simplify the code
5982 no longer expecting DIRNAME_SEPARATOR.
5983 (openp): Remove variable p, p1 and len. New variables dir_vec,
5984 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
5985 no longer expecting DIRNAME_SEPARATOR.
5986 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
5987 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5988 debugdir_end.
5989 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
5990 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
5991 (dirnames_to_char_ptr_vec): New functions.
5992
5ee4ed9f
JK
59932012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5994
5995 Code cleanup.
5996 * source.c (add_path): Remove always true conditional 'p == 0' and
5997 unindent its code block.
5998
f41f5e61
PA
59992012-04-17 Pedro Alves <palves@redhat.com>
6000
6001 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6002 (FIELD_BITPOS_LVAL): ... this.
6003 (FIELD_BITPOS): New.
6004 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6005 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6006 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6007 SET_FIELD_BITPOS.
6008 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6009 SET_FIELD_BITPOS.
6010 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6011 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6012 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6013 SET_FIELD_BITPOS.
6014
945b3a32
JK
60152012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6016
6017 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6018 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6019 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6020 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6021 * jv-lang.c (java_link_class_type): Likewise, once.
6022 * stabsread.c (read_enum_type): Likewise.
6023
42476b70
YQ
60242012-04-16 Yao Qi <yao@codesourcery.com>
6025
6026 * common/agent.c (agent_run_command): Add one more parameter `len'.
6027 Update callers.
6028 * common/agent.h: Update declaration.
6029 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6030 Update.
6031 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6032
8264ba82
AG
60332012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6034
6035 PR mi/13393
6036 * value.c (value_actual_type): New function.
6037 * value.h (value_actual_type): New declaration.
6038 * varobj.c (update_type_if_necessary): New function.
6039 (varobj_create): Call value_actual_type instead of
6040 value_type.
6041 (install_dynamic_child): distinct changed and type changed MI variable
6042 objects.
6043 (update_dynamic_varobj_children): Updated for install_dynamic_child
6044 change. All callers updated.
a09130f9 6045 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6046 the value changed and RTTI is used to determine the type.
6047 (create_child_with_value): Call value_actual_type instead of
6048 value_type.
a09130f9 6049 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6050 specify whether the given value should be casted to enclosing type.
6051 All callers updated.
6052
55a8c076
YQ
60532012-04-14 Yao Qi <yao@codesourcery.com>
6054
6055 Import gnulib module inttypes from git
6056 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6057 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6058 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6059 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6060 * aclocal.m4, config.in, configure: Regenerated.
6061 * gnulib/Makefile.am: Update.
6062 * gnulib/Makefile.in: Update.
6063 * gnulib/m4/gnulib-cache.m4: Update.
6064 * gnulib/m4/gnulib-comp.m4: Update.
6065 * gnulib/inttypes.in.h: New.
6066 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6067 * gnulib/m4/inttypes.m4: New.
55a8c076 6068
ca7781d2
LM
60692012-04-13 Luis Machado <lgustavo@codesourcery.com>
6070
6071 * infrun.c (resume): Update PC address to the real PC after
6072 preparing to do displaced stepping.
6073
e319fa28
DE
60742012-04-12 Doug Evans <dje@google.com>
6075
6076 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6077 All callers updated.
6078
15add3f5
MK
60792012-04-12 Mark Kettenis <kettenis@gnu.org>
6080
6081 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6082
52dc124a
DE
60832012-04-12 Doug Evans <dje@google.com>
6084
0e50663e
DE
6085 * dwarf2read.c (create_all_type_units): Renamed from
6086 create_debug_types_hash_table. All callers updated.
6087
52dc124a
DE
6088 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6089 local type_sig to sig_type, type_offset to type_offset_in_tu.
6090 (hash_signatured_type): Renamed from hash_type_signature,
6091 all callers updated.
6092 (eq_signatured_type): Renamed from eq_type_signature,
6093 all callers updated.
6094 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6095 (process_enumeration_scope): Ditto.
6096 (lookup_signatured_type_at_offset): Ditto.
6097 (load_full_type_unit, read_signatured_type): Ditto.
6098
248fd3bf
YQ
60992012-04-12 Yao Qi <yao@codesourcery.com>
6100
6101 * remote.c (async_remote_interrupt): Correct function name in
6102 debug message.
6103 (async_remote_interrupt_twice): Ditto.
6104
bc3aa6c3
DE
61052012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6106
6107 * source.c (find_and_open_source): Consistently pass resulting
6108 full path through xfullpath.
6109
9e529e1d
JK
61102012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6111
6112 Provide more specific displaced-stepping memory error message.
6113 * infrun.c (displaced_step_prepare): New variable status. Call
6114 target_read_memory instead of read_memory, provide more specific
6115 error message.
6116
82e0cec1
TG
61172012-04-11 Tristan Gingold <gingold@adacore.com>
6118
6119 PR gdb/13901
6120 * darwin-nat.c (darwin_execvp): Revert previous patch.
6121
d987a266
TG
61222012-04-11 Tristan Gingold <gingold@adacore.com>
6123
6124 PR gdb/13901
6125 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6126 in case of change.
6127
016b7430
TG
61282012-04-11 Tristan Gingold <gingold@adacore.com>
6129
6130 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6131 warning.
6132
06fc020f
SCR
61332012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6134
6135 New command 'explore' which helps explore values and types in
6136 scope.
6137 * NEWS: Add an entry about the new 'explore' command.
6138 * data-directory/Makefile.in: Add gdb/command/explore.py
6139 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6140 command using the GDB Python API.
06fc020f 6141
de0919f8 61422012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6143
6144 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6145 extension in jump target calculation.
6146
de0919f8 61472012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6148
6149 * mips-tdep.c (mips32_next_pc): Handle JALX.
6150
2f26ef89
YQ
61512012-04-10 Yao Qi <yao@codesourcery.com>
6152
6153 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6154
2e505b66
YQ
61552012-04-10 Yao Qi <yao@codesourcery.com>
6156
6157 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6158 and gnulib/m4/gnulib-tool.m4.
6159
0d99eb77
DE
61602012-04-10 Doug Evans <dje@google.com>
6161
6162 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6163 (load_partial_dies): Clarify comment.
6164 (find_partial_die): Support rereading type units.
6165 Clarify CU handling, if we know offset is in CU, don't search for the
6166 containing CU. Add comment regarding memory waste.
6167
9a82b8ff
L
61682012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6169
6170 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6171 i386/x32-avx and i386/x32-avx-linux.
6172 (i386/x32-expedite): New.
6173 (i386/x32-linux-expedite): Likewise.
6174 (i386/x32-avx-expedite): Likewise.
6175 (i386/x32-avx-linux-expedite): Likewise.
6176 ($(outdir)/i386/x32.dat): Likewise.
6177 ($(outdir)/i386/x32-linux.dat): Likewise.
6178 ($(outdir)/i386/x32-avx.dat): Likewise.
6179 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6180
6181 * features/i386/x32-avx-linux.xml: New file.
6182 * features/i386/x32-avx.xml: Likewise.
6183 * features/i386/x32-core.xml: Likewise.
6184 * features/i386/x32-linux.xml: Likewise.
6185 * features/i386/x32.xml: Likewise.
6186
6187 * features/i386/x32-avx-linux.c: New. Generated.
6188 * features/i386/x32-avx.c: Likewise.
6189 * features/i386/x32-linux.c: Likewise.
6190 * features/i386/x32.c: Likewise.
6191 * regformats/i386/x32-avx-linux.dat: Likewise.
6192 * regformats/i386/x32-avx.dat: Likewise.
6193 * regformats/i386/x32-linux.dat: Likewise.
6194 * regformats/i386/x32.dat: Likewise.
6195
ee41036f
TG
61962012-04-10 Tristan Gingold <gingold@adacore.com>
6197
6198 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6199 code to kill the inferior.
6200
a7aa5b8a
MK
62012012-04-09 Mark Kettenis <kettenis@gnu.org>
6202
6203 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6204 defines.
6205 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6206 defines.
a09130f9 6207 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6208 (yyvsp): New defines.
6209 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6210 defines.
6211 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6212 defines.
6213 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6214 defines.
6215 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6216 defines.
6217 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6218 defines.
6219
fb57d452
MK
62202012-04-09 Mark Kettenis <kettenis@gnu.org>
6221
a09130f9 6222 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6223 (sparc64_store_arguments): Fix coding style.
6224
cdc7b32f
MK
62252012-04-07 Mark Kettenis <kettenis@gnu.org>
6226
6227 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6228 complex floats, adjust some related comments and tighten a related
6229 assertion.
6230 (sparc64_extract_return_value): Handle complex floats.
6231
7adf1e79
DE
62322012-04-07 Doug Evans <dje@google.com>
6233
6234 * dwarf2read.c (load_partial_dies): Change condition to assert.
6235
50f1ae7b
DE
62362012-04-06 Doug Evans <dje@google.com>
6237
6238 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6239 "mov %rsp,%rbp".
6240
55fa75c3
KB
62412012-04-05 Kevin Buettner <kevinb@redhat.com>
6242
6243 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6244 fencepost error.
6245 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6246 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6247 architecture.
6248
40e084e1
KS
62492012-04-05 Keith Seitz <keiths@redhat.com>
6250
6251 * linespec.c (decode_compound): Remove.
6252 (enum offset_relative_sign): New enum.
6253 (struct line_offset): New struct.
6254 (struct linespec): New struct.
6255 (struct linespec_state): Move file_symtabs,
6256 user_filename, and user_function into struct linespec.
6257 Make result an anonymous struct holding vectors of
6258 symbolp and minsym_and_objfile_d.
6259 Add language member.
6260 (enum ls_token_type): New enum.
6261 (linespec_keywords): New array.
6262 (struct ls_token): New struct.
6263 (struct ls_parser): New struct.
6264 (linespec_lexer_lex_number): New function.
6265 (linespec_lexer_lex_keyword): New function.
6266 (is_ada_operator): New function.
6267 (skip_quote_char): New function.
6268 (copy_token_string): New function.
6269 (is_closing_quote_enclosed): New function.
6270 (find_parameter_list_end): New function.
6271 (linespec_lexer_lex_string): New function.
6272 (linespec_lexer_lex_one): New function.
6273 (linespec_lexer_consume_token): New function.
6274 (linespec_lexer_peek_token): New function.
6275 (cplusplus_error): Remove unused function.
6276 (find_methods): Update comment.
6277 (find_toplevel_char): Return const.
6278 (is_objc_method_format): Remove unused function.
6279 (find_toplevel_string): New function.
6280 (is_linespec_boundary): Remove.
6281 (symbol_not_found_error): New function.
6282 (find_method_overload_end): Remove function.
6283 (unexpected_linespec_error): New function.
6284 (keep_name_info): Remove.
6285 (linespec_parse_line_offset): New function.
6286 (linespec_parse_basic): New function.
6287 (canonicalize_linespec): New function.
6288 (decode_line_internal): Remove.
6289 (create_sals_line_offset): New function adapted from
6290 decode_all_digits.
6291 (convert_linespec_to_sals): New function.
6292 (parse_linespec): New function.
6293 (linespec_parser_new): New function.
6294 (linespec_state_destructor): Change parameter type to
6295 struct linespec_state *.
6296 Add language parameter.
6297 Remove freeing of moved members.
6298 (linespec_parser_delete): New function.
6299 (decode_line_full): Use parse_linespec and linespec_parser_new.
6300 (decode_line_1): Likewise.
6301 (decode_indirect): Rename to ...
6302 (linespec_expression_to_pc): ... this and rewrite
6303 to simply find CORE_ADDR, storing this result for later
6304 conversion to SALs.
6305 (locate_first_half): Remove.
6306 (deocde_objc): Add parameter LS.
6307 Initialize new struct collect_info members.
6308 Handle minimal symbols, too.
6309 (decode_compound): Delete.
6310 (lookup_prefix_sym): Rewrite.
6311 (compare_msymbols): New function.
6312 (find_method): Rewrite.
6313 Do not call cplusplus_error.
6314 (symtabs_from_filename): Rewrite.
6315 (collect_function_symbols): Delete.
6316 (find_function_symbols): Rewrite without ARGPTR-style
6317 processing.
6318 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6319 (decode_dollar): Adapted and renamed to ...
6320 (linespec_parse_variable): ... this.
6321 (find_linespec_symbols): New function.
6322 (decode_label): Adapted and renamed to ...
6323 (find_label_symbols): ... this.
6324 (decode_digits_list_mode): Add and use LS argument.
6325 (decode_digits_ordinary): Likewise.
6326 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6327 If in list mode, allow any symbol class. Otherwise, only
6328 permit LOC_BLOCK symbols.
6329 (minsym_found): Update comments.
6330 (search_minsyms_for_name): Do not convert the matching symbol
6331 into a SAL. Simply push the symbol and objfile into the
6332 result vector.
6333 (decode_variable): Delete. Contents adapted into
6334 find_linespec_symbols.
6335
6336 * cp-support.c (SKIP_SPACE): Remove.
6337 (operator_tokens): Remove unused global.
6338 (cp_validate_operator): Remove.
6339 * cp-support.h (cp_validate_operator): Remove declaration.
6340
a72c8f6a
JK
63412012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6342
6343 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6344 for TYPE_VPTR_FIELDNO.
6345 * valprint.c (valprint_check_validity): Make it global, move the
6346 function comment ...
6347 * value.h (valprint_check_validity): ... to this new declaration.
6348
cf9bb588
TG
63492012-04-02 Tristan Gingold <gingold@adacore.com>
6350
6351 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6352 the STATE32 api for i386 state.
6353 (i386_darwin_store_inferior_registers): Likewise.
6354
17092398
TG
63552012-04-02 Tristan Gingold <gingold@adacore.com>
6356
6357 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6358 SS offset.
6359 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6360 format_string.
6361
ece0061f
TG
63622012-04-02 Tristan Gingold <gingold@adacore.com>
6363
6364 PR gdb/13901
d987a266 6365 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 6366
cf65ecd3
JK
63672012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6368
6369 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6370
9bc3523d
TT
63712012-03-30 Tom Tromey <tromey@redhat.com>
6372
6373 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6374 of TRY_CATCH. Fix error handling.
6375 * python/py-value.c (convert_value_from_python): Move 'old'
6376 declaration to innermost scope.
6377
b1ed564a
JB
63782012-03-29 Joel Brobecker <brobecker@adacore.com>
6379 Andrey Smirnov <andrew.smirnov@gmail.com>
6380
6381 -Wshadow warning fix.
6382 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6383 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6384 Adjust code accordingly.
6385
cb8e9b97
JB
63862012-03-29 Joel Brobecker <brobecker@adacore.com>
6387
6388 * ada-lang.c (symbol_completion_add): Rename parameter
6389 "encoded" into "encoded_p". Ajust code and documentation
6390 accordingly.
6391
c0af1706
JB
63922012-03-29 Joel Brobecker <brobecker@adacore.com>
6393 Andrey Smirnov <andrew.smirnov@gmail.com>
6394
6395 -Wshadow warning fix.
6396 * ada-lang.c (symbol_completion_add): Rename parameter
6397 "wild_match" into wild_match_p. Update code and documentation
6398 accordingly.
6399
6ea35997
JB
64002012-03-29 Joel Brobecker <brobecker@adacore.com>
6401
6402 * ada-lang.c (symbol_completion_match): Rename parameter
6403 "encoded" into "encoded_p". Ajust code and documentation
6404 accordingly.
6405
e701b3c0
JB
64062012-03-29 Joel Brobecker <brobecker@adacore.com>
6407 Andrey Smirnov <andrew.smirnov@gmail.com>
6408
6409 -Wshadow warning fix.
6410 * ada-lang.c (symbol_completion_match): Rename parameter
6411 "wild_match" into "wild_match_p". Adjust code and function
6412 documentation accordingly.
6413
5e2336be
JB
64142012-03-29 Joel Brobecker <brobecker@adacore.com>
6415 Andrey Smirnov <andrew.smirnov@gmail.com>
6416
6417 -Wshadow warning fix.
6418 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6419 "symbol_info" into "info". Adjust code accordingly.
6420 (ada_lookup_symbol): Likewise.
6421
9f88c959
JB
64222012-03-29 Joel Brobecker <brobecker@adacore.com>
6423
6424 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6425 of this function's documentation.
6426
82ccd55e
JB
64272012-03-29 Joel Brobecker <brobecker@adacore.com>
6428 Andrey Smirnov <andrew.smirnov@gmail.com>
6429
6430 -Wshadow warning fix.
6431 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6432 variable into "wild_match_p". Adjust code accordingly.
6433
d0a8ab18
JB
64342012-03-29 Joel Brobecker <brobecker@adacore.com>
6435 Andrey Smirnov <andrew.smirnov@gmail.com>
6436
6437 -Wshadow warning fix.
6438 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6439 parameter into "wild_match_p". Adjust code accordingly.
6440 Document this parameter in the function description.
6441
48b78332
JB
64422012-03-29 Joel Brobecker <brobecker@adacore.com>
6443 Andrey Smirnov <andrew.smirnov@gmail.com>
6444
6445 -Wshadow warning fix.
6446 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6447 "wild_match" parameter to "wild_match_p" (-Wshadow).
6448
2e6e0353
JB
64492012-03-29 Joel Brobecker <brobecker@adacore.com>
6450
6451 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6452 in function documentation.
6453
dc4024cd
JB
64542012-03-29 Joel Brobecker <brobecker@adacore.com>
6455 Andrey Smirnov <andrew.smirnov@gmail.com>
6456
6457 -Wshadow warning fix.
6458 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6459 variable into wild_match_p. Adjust code accordingly.
6460
6c88661c
JB
64612012-03-29 Joel Brobecker <brobecker@adacore.com>
6462 Andrey Smirnov <andrew.smirnov@gmail.com>
6463
6464 * ada-valprint.c (ada_val_print_1): Move the code handling
6465 TYPE_CODE_ENUM inside its own lexical block. Declare
6466 variables len and val there, instead of in the function's
6467 top level block. Avoid declaring deref_val again in a way
6468 that shadows another variable of the same name declared
6469 in one of the up-level blocks. Just re-use the up-level
6470 variable instead.
6471
4e5c77fe
JB
64722012-03-29 Joel Brobecker <brobecker@adacore.com>
6473
6474 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6475 Replace block_found argument by symbol_info. Adjust
6476 implementation accordingly. Add function documentation.
6477 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6478 Fix documentation.
6479 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6480 * ada-exp.y (write_object_renaming): Adjust to new
6481 ada_lookup_encoded_symbol API.
6482
1c0ac8c7
JB
64832012-03-29 Joel Brobecker <brobecker@adacore.com>
6484
6485 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6486 documentation.
6487
2aaed979
KB
64882012-03-28 Rathish C <rathish.c@kpitcummins.com>
6489
6490 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6491 (v850_register_name): Add the mpu and fpu register names.
6492 (v850e_register_name): Add the mpu and fpu register names.
6493 (v850e2_register_name): New function.
a09130f9 6494 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
6495 bfd_mach_v850e2v3.
6496
927fbba6
JB
64972012-03-28 Joel Brobecker <brobecker@adacore.com>
6498
6499 * NEWS: Add entry for Ada varobj support.
6500
d32cafc7
JB
65012012-03-28 Joel Brobecker <brobecker@adacore.com>
6502
6503 * varobj.c (default_value_is_changeable_p): New function,
6504 extracted from varobj_value_is_changeable_p. Add declaration.
6505 (ada_value_is_changeable_p): New function, extracted from
6506 varobj_value_is_changeable_p. Add declaration.
6507 (struct language_specific): New field "value_is_changeable_p".
6508 (languages): Add entries for new field.
6509 (varobj_create): Set language before calling install_new_value.
6510 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6511 "value_is_changeable_p" language callback.
6512
181875a4
JB
65132012-03-28 Joel Brobecker <brobecker@adacore.com>
6514
6515 * ada-varobj.h, ada-varobj.c: New files.
6516 * Makefile.in (SFILES): Add ada-varobj.c.
6517 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6518 (COMMON_OBS): Add ada-varobj.o.
6519
7a290c40
JB
65202012-03-28 Joel Brobecker <brobecker@adacore.com>
6521
6522 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6523 (struct language_specific): New field "value_has_mutated".
6524 (languages): Set field "value_has_mutated" in each entry of array.
6525 (varobj_value_has_mutated): New function.
6526 (varobj_udpdate): Add handling of type mutation.
6527 (value_of_root): Add handling of type mutation.
6528 (ada_value_has_mutated): New function.
6529
ca9b8b9c
PA
65302012-03-28 Pedro Alves <palves@redhat.com>
6531
6532 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6533 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6534
cc0265cd
TT
65352012-03-28 Tom Tromey <tromey@redhat.com>
6536
6537 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6538 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6539 before returning.
6540
3ad2ec6f
TT
65412012-03-28 Tom Tromey <tromey@redhat.com>
6542
6543 * .dir-locals.el: New file.
6544
4a6510ba
PA
65452012-03-28 Pedro Alves <palves@redhat.com>
6546
6547 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6548
5a75128f
JB
65492012-03-28 Joel Brobecker <brobecker@adacore.com>
6550
6551 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6552 handling for r0.
6553
f99d8bf4
PA
65542012-03-27 Pedro Alves <palves@redhat.com>
6555
6556 Eliminate struct ui_stream.
6557
6558 * ui-out.h (struct ui_stream): Delete.
6559 (ui_out_field_stream): Adjust prototype.
6560 (ui_out_stream_new, ui_out_stream_delete)
6561 (make_cleanup_ui_out_stream_delete): Delete declarations.
6562 * ui-out.c (ui_out_field_stream): Change prototype to take a
6563 ui_file instead of a ui_stream. Adjust.
6564 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6565 (make_cleanup_ui_out_stream_delete): Delete.
6566 * breakpoint.c (print_breakpoint_location)
6567 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6568 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6569 * disasm.c (dump_insns): Ditto.
6570 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6571 prototype.
6572 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6573 ui_stream/ui_out_stream_new.
6574 * infcmd.c (print_return_value): Ditto.
6575 * osdata.c (info_osdata_command): Don't allocate a local
6576 ui_stream.
6577 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6578 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6579 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6580 allocate a local ui_stream.
6581 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6582 instead of ui_stream/ui_out_stream_new.
6583 (list_args_or_locals): Don't allocate a local ui_stream.
6584 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6585 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6586 ui_stream/ui_out_stream_new.
6587 * cli/cli-setshow.c (do_setshow_command): Ditto.
6588
6350a066 65892012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 6590
6350a066
PA
6591 * arm-linux-tdep.c (arm_linux_init_abi): Call
6592 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6593 * arm-tdep.c (arm_process_record): New function.
6594 (deallocate_reg_mem): New function.
6595 (decode_insn): New function.
6596 (thumb_record_branch): New function.
6597 (thumb_record_ldm_stm_swi(): New function.
6598 (thumb_record_misc): New function.
6599 (thumb_record_ld_st_stack): New function.
6600 (thumb_record_ld_st_imm_offset): New function.
6601 (thumb_record_ld_st_reg_offset(): New function.
6602 (thumb_record_add_sub_cmp_mov): New function.
6603 (thumb_record_shift_add_sub): New function.
6604 (arm_record_coproc_data_proc): New function.
6605 (arm_record_coproc): New function.
6606 (arm_record_b_bl): New function.
6607 (arm_record_ld_st_multiple): New function.
6608 (arm_record_ld_st_reg_offset): New function.
6609 (arm_record_ld_st_imm_offset): New function.
6610 (arm_record_data_proc_imm): New function.
6611 (arm_record_data_proc_misc_ld_str): New function.
6612 (arm_record_extension_space): New function.
6613 (arm_record_strx): New function.
6614 (sbo_sbz): New function.
6615 (struct insn_decode_record): New structure for arm insn record.
6616 (REG_ALLOC): New macro for reg allocations.
6617 (MEM_ALLOC): New macro for memory allocations.
6618 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 6619
89e028e2
AS
66202012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6621
6622 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6623 (store_register): Likewise.
6624
6350a066 66252012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 6626
6350a066 6627 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 6628
5b43fab2
JK
66292012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6630
6631 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6632 Describe also the option "auto".
6633
b5453b95
RH
66342012-03-22 Richard Henderson <rth@redhat.com>
6635
6636 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6637 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6638
227ee7fc
RH
66392012-03-22 Richard Henderson <rth@redhat.com>
6640
6641 * jit.c (jit_read_code_entry): Compute alignment and offset of
6642 int64_t member before computing entry_size.
6643
7b282c5a
SCR
66442012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6645
6646 Python scripting: Add new method Value.referenced_value to
6647 gdb.Value which can dereference pointer as well as reference
6648 values.
6649 * NEWS: Add entry under 'Python scripting' about the new method
6650 Value.referenced_value on gdb.Value objects.
6651 * python/py-value.c (valpy_referenced_value): New function
6652 defining a new method on gdb.Value objects which can dereference
6653 pointer and reference values.
6654
0c83539f
SCR
66552012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6656
6657 * MAINTAINERS (Write After Approval): Add myself to the list.
6658
7ccffd7c
KB
66592012-03-21 Kevin Buettner <kevinb@redhat.com>
6660
6661 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6662 in addition to "main".
6663
bd0b9f9e
JB
66642012-03-21 Joel Brobecker <brobecker@adacore.com>
6665
6666 * expression.h (op_name): Add declaration.
6667 * expprint.c (op_name): Remove declaration. Make non-static.
6668 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6669
a5362b9a
TS
66702012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6671
6672 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6673 of struct siginfo.
6674 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6675 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6676 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6677 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6678 (linux_nat_get_siginfo): Likewise.
6679 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6680 (linux_nat_get_siginfo): Likewise.
6681 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6682 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6683 * procfs.c (gdb_siginfo_t): Likewise.
6684
adcadaab
MF
66852012-03-21 Mike Frysinger <vapier@gentoo.org>
6686
6687 * .gitignore: Ignore more files.
6688
e278ad5b
PA
66892012-03-20 Pedro Alves <palves@redhat.com>
6690
6691 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6692 returns.
6693
741e63d7
YQ
66942012-03-20 Yao Qi <yao@codesourcery.com>
6695
6696 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6697 comment.
6698
b64f50a1
JK
66992012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6700
6701 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6702 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6703 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6704 sect_offset.
6705 * dwarf2expr.h (cu_offset, sect_offset): New types.
6706 (struct dwarf_expr_context_funcs) <dwarf_call>
6707 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6708 sect_offset.
6709 (struct dwarf_expr_context) <len>: Improve the comment.
6710 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6711 cu_offset and sect_offset.
6712 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6713 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6714 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6715 * dwarf2loc.h: Include dwarf2expr.h.
6716 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6717 and sect_offset.
6718 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6719 Improve the comment.
6720 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6721 (struct signatured_type, struct line_header, struct partial_die_info)
6722 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6723 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6724 (get_die_type_at_offset, create_cus_from_index)
6725 (create_signatured_type_table_from_index, dw2_get_file_names)
6726 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6727 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6728 (create_debug_types_hash_table, process_psymtab_comp_unit)
6729 (load_partial_comp_unit, create_all_comp_units)
6730 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6731 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6732 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6733 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6734 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6735 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6736 (find_partial_die, read_attribute_value, lookup_die_type)
6737 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6738 (is_ref_attr): New function comment.
6739 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6740 Use cu_offset and sect_offset.
6741 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6742 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6743 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6744 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6745 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6746 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6747 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6748 sect_offset.
6749
e97a38f7
JK
67502012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6751
6752 Code cleanup.
6753 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6754 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6755 with xfree.
6756 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6757
8320cc4f
JK
67582012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6759
6760 * NEWS: Describe new options --init-command=FILE, -ix and
6761 --init-eval-command=COMMAND, -iex.
6762 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6763 CMDARG_INIT_COMMAND.
6764 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6765 "init-command", "init-eval-command", "ix" and "iex" to the variable
6766 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6767 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6768 (print_gdb_help): Describe --init-command=FILE, -ix and
6769 --init-eval-command=COMMAND, -iex.
6770
26743505
JK
67712012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6772
6773 Code cleanup.
6774 * main.c (struct cmdarg): Move it here from main. Add more comments.
6775 (cmdarg_s, VEC (cmdarg_s)): New.
6776 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6777 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6778 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6779 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6780 of CMDARG.
6781
5ff5c7b4
TT
67822012-03-19 Tom Tromey <tromey@redhat.com>
6783
6784 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6785
ab260dad
JK
67862012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6787
6788 PR symtab/13777
6789 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6790 GCC >=4.5.
6791
c366c1f0
TT
67922012-03-16 Chris January <chris.january@allinea.com>
6793
6794 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6795 of clear.
6796
e16edb45
TT
67972012-03-16 Chris January <chris.january@allinea.com>
6798
6799 * source.c (add_path): Use memmove instead of strcpy because the
6800 strings overlap.
6801
53ba8333
JB
68022012-03-16 Joel Brobecker <brobecker@adacore.com>
6803
6804 * value.h (set_value_parent): Add declaration.
6805 * value.c (set_value_parent): New function.
6806 (value_address): If VALUE->PARENT is not NULL, then use it as
6807 the base address instead of VALUE->LOCATION.address.
6808 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6809 the same as OBJ's address. Adjust V's offset accordingly.
6810 Set V's parent.
6811
481860b3
GB
68122012-03-16 Gary Benson <gbenson@redhat.com>
6813
6814 PR breakpoints/10738
6815 * dwarf2read.c (use_deprecated_index_sections): New global.
6816 (struct partial_die_info): New member may_be_inlined.
6817 (read_partial_die): Set may_be_inlined where appropriate.
6818 (add_partial_subprogram): Add partial symbols for partial
6819 DIEs that may be inlined.
6820 (new_symbol_full): Add inlined subroutines to the current
6821 scope.
6822 (write_psymtabs_to_index): Bump version number.
6823 (dwarf2_read_index): Read only version 6 indices unless
6824 use_deprecated_index_sections is set.
6825 * linespec.c (symbol_and_data_callback): New structure.
6826 (iterate_inline_only): New function.
6827 (iterate_over_all_matching_symtabs): New argument
6828 "include_inline". If nonzero, also call the callback for
6829 symbols representing inlined subroutines.
6830 (lookup_prefix_sym): Pass extra argument to the above.
6831 (find_function_symbols): Likewise.
6832 (add_matching_symbols_to_info): Likewise.
6833 * NEWS: Mention that GDB can now set breakpoints on inlined
6834 functions.
6835
d0e7e15a
PM
68362012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6837
6838 * p-typeprint.c (pascal_type_print_method_args):
6839 Fix display of parameter of methods.
6840
3d354654
PM
68412012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6842
6843 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6844 Add missing prototype.
6845
cafe75b0
JK
68462012-03-16 Yao Qi <yao@codesourcery.com>
6847 Jan Kratochvil <jan.kratochvil@redhat.com>
6848
6849 Fix false compilation warning.
6850 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6851
25f8c692
JL
68522012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6853 Pedro Alves <pedro@codesourcery.com>
6854
6855 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6856 (arm_register_g_packet_guesses): New function.
6857 (arm_gdbarch_init): Don't force a target description with
6858 registers when the executable is detected as M-profile. Instead
6859 set gdbarch->tdep->is_m. Register `g' packet guesses.
6860 (_initialize_arm_tdep): Initialize the new target description.
6861 * features/arm-with-m-fpa-layout.xml: New description.
6862 * features/arm-with-m-fpa-layout.c: New, generated.
6863
35c63cd8
JB
68642012-03-15 Joel Brobecker <brobecker@adacore.com>
6865
6866 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6867 Update function description.
6868 (insert_bp_location): Do not wipe bl->target_info out.
6869 * mem-break.c: #include "gdb_string.h".
6870 (default_memory_insert_breakpoint): Do not call target_read_memory
6871 with a pointer to the breakpoint's shadow_contents buffer. Use
6872 a local buffer instead.
6873 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6874
57651221
TT
68752012-03-15 Tom Tromey <tromey@redhat.com>
6876
6877 * NEWS: Mention "info vtbl", not "info vtable".
6878 * cp-support.c (info_vtbl_command): Fix comment.
6879 (_initialize_cp_support): Fix text.
6880
410528f0
TT
68812012-03-15 Tom Tromey <tromey@redhat.com>
6882
6883 * cp-valprint.c (cp_print_value_fields): Use
6884 print_function_pointer_address for vtable slot.
6885
c4aeac85
TT
68862012-03-15 Tom Tromey <tromey@redhat.com>
6887
6888 * gnu-v3-abi.c (struct value_and_voffset): New.
6889 (hash_value_and_voffset, eq_value_and_voffset)
6890 (compare_value_and_voffset, compute_vtable_size)
6891 (print_one_vtable, gnuv3_print_vtable): New functions.
6892 (init_gnuv3_ops): Initialize 'print_vtable' field.
6893 * cp-support.c (info_vtbl_command): New function.
6894 (_initialize_cp_support): Add "info vtbl".
6895 * cp-abi.h (cplus_print_vtable): Declare.
6896 (struct cp_abi_ops) <print_vtable>: New field.
6897 * cp-abi.c (cplus_print_vtable): New function.
6898 * NEWS: Update.
6899
95cbceff
TT
69002012-03-15 Tom Tromey <tromey@redhat.com>
6901
6902 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6903 iterate_over_symbols.
6904
589b4a32
DE
69052012-03-14 Doug Evans <dje@google.com>
6906
6907 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6908 DW_OP_GNU_parameter_ref.
6909
e837f12a
JK
69102012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6911
6912 Fix double prompt of 'interpreter-exec mi'.
6913 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6914 (mi_interpreter_resume): use it.
6915 (mi_execute_command_input_handler): New function.
6916 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6917 mi_execute_command_input_handler.
6918
ff1e4526 69192012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
6920
6921 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6922 prototype.
6923 (darwin_debug_port_info): Make static.
6924 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6925 * machoread.c (_initialize_machoread): Add prototype.
6926 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6927 (i386_darwin_set_control, i386_darwin_get_control)
6928 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6929 i386_darwin_get_status, i386_darwin_get_control):
6930 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6931
d8a5d6ee
JB
69322012-03-13 Joel Brobecker <brobecker@adacore.com>
6933
6934 * ax-gdb.c (gen_usual_unary): Remove special handling of
6935 enum and bool types.
6936
af381b8c
JB
69372012-03-13 Joel Brobecker <brobecker@adacore.com>
6938
6939 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
6940
786c562f
JB
69412012-03-13 Joel Brobecker <brobecker@adacore.com>
6942
6943 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
6944
e3ebf1bb
JB
69452012-03-13 Chris January <chris.january@allinea.com>
6946
6947 * aix-thread.c (fill_sprs): Store the floating point registers
6948 at the correct offsets into vals.
6949
c5b7e1cb
DE
69502012-03-13 Doug Evans <dje@google.com>
6951
16899756
DE
6952 * NEWS: Mention symbol-reloading has been deleted.
6953 * symfile.c (symbol_reloading): Delete.
6954 (show_symbol_reloading): Delete.
6955 (_initialize_symfile): Delete set/show symbol-reloading.
6956
c5b7e1cb
DE
6957 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
6958 read_in_chain until we have successfully read it in.
6959 (load_full_comp_unit): Ditto.
6960 (read_signatured_type): Add comment.
6961
46cb6474
JB
69622012-03-13 Chris January <chris.january@allinea.com>
6963
6964 * stabsread.c (fix_common_block): Change type of valu argument
6965 to CORE_ADDR.
6966
76219d77
JB
69672012-03-13 Chris January <chris.january@allinea.com>
6968
6969 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
6970 instruction.
6971
87b0bb13
JK
69722012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6973
6974 * common/linux-procfs.c (linux_proc_get_int): New, from
6975 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
6976 field.
6977 (linux_proc_get_tgid): Only call linux_proc_get_int.
6978 (linux_proc_get_tracerpid): New.
6979 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
6980 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
6981 linux_proc_pid_has_state.
6982 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
6983 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
6984 (linux_ptrace_attach_warnings): New.
6985 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
6986 New declaration.
6987 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
6988 (linux_nat_attach): New variables ex, buffer, message and message_s.
6989 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
6990
5f572dec
JK
69912012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6992
6993 * Makefile.in (linux-ptrace.o): New.
6994 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
6995 from linux-nat.c.
6996 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
6997 * common/linux-ptrace.c: New file.
6998 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
6999 * config/arm/linux.mh: Likewise.
7000 * config/i386/linux.mh: Likewise.
7001 * config/i386/linux64.mh: Likewise.
7002 * config/ia64/linux.mh: Likewise.
7003 * config/m32r/linux.mh: Likewise.
7004 * config/m68k/linux.mh: Likewise.
7005 * config/mips/linux.mh: Likewise.
7006 * config/pa/linux.mh: Likewise.
7007 * config/powerpc/linux.mh: Likewise.
7008 * config/powerpc/ppc64-linux.mh: Likewise.
7009 * config/powerpc/spu-linux.mh: Likewise.
7010 * config/s390/s390.mh: Likewise.
7011 * config/sparc/linux.mh: Likewise.
7012 * config/sparc/linux64.mh: Likewise.
7013 * config/xtensa/linux.mh: Likewise.
7014 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7015 common/linux-procfs.c.
7016 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7017
44f238bb
PA
70182012-03-13 Hui Zhu <teawater@gmail.com>
7019 Pedro Alves <palves@redhat.com>
7020
7021 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7022 CREATE_BREAKPOINT_FLAGS_INSERTED.
7023 (create_breakpoint_sal, create_breakpoints_sal)
7024 (base_breakpoint_create_breakpoints_sal)
7025 (tracepoint_create_breakpoints_sal)
7026 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7027 down.
7028 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7029 (ftrace_command, strace_command): Adjust.
7030 (create_tracepoint_from_upload): Pass
7031 CREATE_BREAKPOINT_FLAGS_INSERTED.
7032 * breakpoint.h (enum breakpoint_create_flags): New.
7033 (create_breakpoint): New flags parameter.
7034 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7035 * python/py-breakpoint.c (bppy_init): Adjust.
7036 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7037 * spu-tdep.c (spu_catch_start): Adjust.
7038
1e51243a
PA
70392012-03-13 Pedro Alves <palves@redhat.com>
7040 Hui Zhu <teawater@gmail.com>
7041 Yao Qi <yao@codesourcery.com>
7042
7043 * remote.c (struct remote_state): New field `starting_up'.
7044 (remote_start_remote): Set and clear it.
7045 (remote_can_download_tracepoint): If starting up, return false.
7046
fa3064dd
YQ
70472012-03-13 Yao Qi <yao@codesourcery.com>
7048
7049 * inferior.h (struct inferior): Remove fields any_syscall_count,
7050 syscalls_counts and total_syscalls_count. Move them to new
7051 struct catch_syscall_inferior_data in breakpoint.c.
7052 * breakpoint.c: Call DEF_VEC_I(int).
7053 (struct catch_syscall_inferior_data): New.
7054 (get_catch_syscall_inferior_data): New.
7055 (catch_syscall_inferior_data_cleanup): New.
7056 (insert_catch_syscall): Update to access data in
7057 struct catch_syscall_inferior_data.
7058 (insert_catch_syscall): Likewise.
7059 (remove_catch_syscall): Likewise.
7060 (remove_catch_syscall): Likewise.
7061 (is_syscall_catchpoint_enabled): Likewise.
7062 (add_catch_command): Likewise.
7063 (_initialize_breakpoint): Register cleanup.
7064 * breakpoint.h: Removed DEF_VEC_I(int).
7065 * dwarf2loc.c: Call DEF_VEC_I(int).
7066 * mi/mi-main.c: Likewise.
7067
460fac3c
MK
70682012-03-12 Mark Kettenis <kettenis@gnu.org>
7069
7070 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7071
e1aca11e
JB
70722012-03-12 Chris January <chris.january@allinea.com>
7073
7074 * aix-thread.c (_initialize_aix_thread): Add prototype.
7075 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7076 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7077
649c7061
JB
70782012-03-12 Joel Brobecker <brobecker@adacore.com>
7079
7080 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7081 include of "amd64-nat.h".
7082
0b49e518
TT
70832012-03-12 Tom Tromey <tromey@redhat.com>
7084
7085 * buildsym.c (record_pending_block): Now static.
7086 * buildsym.h: (record_pending_block): Remove.
7087
fd24fa94
AT
70882012-03-12 Andreas Tobler <andreast@fgznet.ch>
7089
7090 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7091
ba919b58
TT
70922012-03-09 Tom Tromey <tromey@redhat.com>
7093
7094 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7095 producer_is_gxx_lt_4_6>: New fields.
7096 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7097
a48e046c
TT
70982012-03-09 Tom Tromey <tromey@redhat.com>
7099
7100 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7101
6f5e9362
JB
71022012-03-08 Joel Brobecker <brobecker@adacore.com>
7103
7104 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7105 prototype.
7106
8d037db9
JB
71072012-03-08 Joel Brobecker <brobecker@adacore.com>
7108
7109 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7110
4e841acf
JK
71112012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7112
7113 Fix -Wmissing-prototypes build.
7114 * arm-linux-nat.c (get_thread_id): Make it static.
7115 * xtensa-linux-nat.c (get_thread_id): Likewise.
7116
c6030312
JB
71172012-03-08 Joel Brobecker <brobecker@adacore.com>
7118
7119 * server.c (process_point_options): If a conditional expression
7120 is found, only print a message if remote_debug is nonzero.
7121
52323be9
LM
71222012-03-08 Luis Machado <lgustavo@codesourcery.com>
7123
7124 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7125 of internal error for unknown/unsupported types.
7126
7fe25d9b
JK
71272012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7128
7129 Fix CU relative vs. absolute DIE offsets.
7130 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7131 offset to offset_in_cu.
7132 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7133 TYPE_OFFSET.
7134 (dwarf2_fetch_die_location_block): Rename parameter offset to
7135 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7136
05e7c244
JK
71372012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7138
7139 * libunwind-frame.c: Rename to ...
7140 * ia64-libunwind-tdep.c: ... here.
7141 * libunwind-frame.h: Rename to ...
7142 * ia64-libunwind-tdep.h: ... here.
7143 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7144 ia64-libunwind-tdep.h.
7145 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7146 * README (--with-libunwind): Rename to ...
7147 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7148 * config.in: Regenerate.
7149 * configure: Regenerate.
7150 * configure.ac: New option --with-libunwind-ia64, make the
7151 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7152 Remove AC_DEFINE for HAVE_LIBUNWIND.
7153 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7154 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7155 Rename libunwind-frame in the general comment.
7156 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7157 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7158 Move forward declarations inside #ifndef. Rename libunwind-frame in
7159 the general comment.
7160 * ia64-tdep.c: Rename libunwind-frame.h #include to
7161 ia64-libunwind-tdep.h.
7162 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7163 (ia64_libunwind_descr): Rename libunwind-frame to
7164 ia64-libunwind-tdep in these function comments.
7165 * ia64-tdep.h: Rename libunwind-frame.h #include to
7166 ia64-libunwind-tdep.h.
7167 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7168 ia64-libunwind-tdep in that data comment.
7169
3755cbfd
JK
71702012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7171
7172 * libunwind-frame.h (struct frame_unwind): New declaration.
7173
d1cda5d9
JB
71742012-03-08 Joel Brobecker <brobecker@adacore.com>
7175
7176 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7177 "set breakpoint condition-evaluation" command.
7178
a0ba0aa2
TG
71792012-03-08 Tristan Gingold <gingold@adacore.com>
7180
7181 * sparc-stub.c: Move to stubs/
7182 * sh-stub.c: Likewise.
7183 * m68k-stub.c: Likewise.
7184 * m32r-stub.c: Likewise.
7185 * i386-stub.c: Likewise.
7186
7b8b6d6d
AS
71872012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7188
007cafee
AS
7189 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7190 linux_get_siginfo_type.
7191
7b8b6d6d
AS
7192 * m68klinux-nat.c: Include "gdb_proc_service.h".
7193 (PTRACE_GET_THREAD_AREA): Define.
7194 (ps_get_thread_area): New function.
7195
bba74b36
YQ
71962012-03-08 Yao Qi <yao@codesourcery.com>
7197
7198 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7199 `xsnprintf'.
7200 (remote_query_attached): Likewise.
7201 (remote_static_tracepoint_marker_at): Likewise.
7202 (remote_set_permissions): Likewise.
7203 (remote_detach_1, extended_remote_attach_1): Likewise.
7204 (send_g_packet, remote_vkill): Likewise.
7205 (extended_remote_disable_randomization): Likewise.
7206 (remote_add_target_side_condition): Likewise.
7207 (remote_insert_breakpoint): Likewise.
7208 (remote_remove_breakpoint): Likewise.
7209 (remote_insert_watchpoint): Likewise.
7210 (remote_remove_watchpoint): Likewise.
7211 (remote_insert_hw_breakpoint): Likewise.
7212 (remote_insert_hw_breakpoint): Likewise.
7213 (remote_remove_hw_breakpoint): Likewise.
7214 (remote_download_command_source): Likewise.
7215 (remote_download_tracepoint): Likewise.
7216 (remote_download_trace_state_variable): Likewise.
7217 (remote_disable_tracepoint): Likewise.
7218 (remote_trace_set_readonly_regions): Likewise.
7219 (remote_get_tracepoint_status): Likewise.
7220 (remote_trace_find): Likewise.
7221 (remote_get_trace_state_variable_value): Likewise.
7222 (remote_set_disconnected_tracing): Likewise.
7223 (remote_set_circular_trace_buffer): Likewise.
7224 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7225 (remote_use_agent): Likewise.
7226 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7227 Update callers.
7228
9b224c5e
PA
72292012-03-07 Pedro Alves <palves@redhat.com>
7230
7231 * NEWS: Mention QProgramSignals.
7232 * inferior.h (update_signals_program_target): Declare.
7233 * infrun.c: (update_signals_program_target): New.
7234 (handle_command): Update the target of the new program signals
7235 array changes.
7236 * remote.c (PACKET_QProgramSignals): New enum.
7237 (last_program_signals_packet): New global.
7238 (remote_program_signals): New.
7239 (remote_start_remote): Update the target with the program signals
7240 list.
7241 (remote_protocol_features): Add entry for QPassSignals.
7242 (remote_open_1): Free anc clear last_program_signals_packet.
7243 (init_remote_ops): Install remote_program_signals.
7244 * target.c (update_current_target): Adjust.
7245 (target_program_signals): New.
7246 * target.h (struct target_ops) <to_program_signals>: New field.
7247 (target_program_signals): Declare.
7248
74c48cbb
PA
72492012-03-07 Pedro Alves <palves@redhat.com>
7250
7251 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7252 extensions.
7253
0c13fc49
AS
72542012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7255
7256 * m68klinux-nat.c (getregs_supplies): Make static.
7257 (getfpregs_supplies): Likewise.
7258 (have_ptrace_getregs): Likewise.
7259
1281d2a3
JB
72602012-03-06 Joel Brobecker <brobecker@adacore.com>
7261
7262 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7263 in call to get_die_type_at_offset.
7264
2b03b41d
SS
72652012-03-06 Stan Shebs <stan@codesourcery.com>
7266
7267 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7268 * mi/mi-cmd-disas.c: Ditto.
7269 * mi/mi-cmd-env.c: Ditto.
7270 * mi/mi-cmd-file.c: Ditto.
7271 * mi/mi-cmd-stack.c: Ditto.
7272 * mi/mi-cmd-target.c: Ditto.
7273 * mi/mi-cmd-var.c: Ditto.
7274 * mi/mi-cmds.c: Ditto.
7275 * mi/mi-cmds.h: Ditto.
7276 * mi/mi-console.c: Ditto.
7277 * mi/mi-getopt.c: Ditto.
7278 * mi/mi-getopt.h: Ditto.
7279 * mi/mi-interp.c: Ditto.
7280 * mi/mi-main.c: Ditto.
7281 * mi/mi-out.c: Ditto.
7282 * mi/mi-parse.c: Ditto.
7283 * mi/mi-parse.h: Ditto.
7284 * mi/mi-symbol-cmds.c: Ditto.
7285
7286 * mi/mi-getopt.h: Move mi_opt struct up.
7287 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7288 return.
7289 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7290
c988ad87
TT
72912012-03-06 Tom Tromey <tromey@redhat.com>
7292
7293 * proc-service.c (ps_pglobal_lookup): Set the current program
7294 space.
7295
1b7c1b10
PA
72962012-03-06 Pedro Alves <palves@redhat.com>
7297
7298 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7299
3c182069
JB
73002012-03-05 Joel Brobecker <brobecker@adacore.com>
7301
7302 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7303
2e794194
JK
73042012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7305
7306 Code cleanup.
7307 * common/linux-osdata.c (linux_common_core_of_thread): New function
7308 comment.
7309 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7310 call by linux_common_core_of_thread.
7311 (linux_nat_core_of_thread_1): Remove.
7312 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7313 * linux-thread-db.c: Include linux-osdata.h.
7314 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7315 linux_common_core_of_thread.
7316
9f9f1f31
TT
73172012-03-05 Tom Tromey <tromey@redhat.com>
7318
7319 * value.c (value_primitive_field): Don't fetch contents for
7320 non-virtual bases.
7321
b7b189f3
TT
73222012-03-05 Tom Tromey <tromey@redhat.com>
7323
7324 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7325
05b8a789 73262012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 7327
5538f557
JB
7328 * s390-nat.c: Include "gregset.h".
7329
75528772
JK
73302012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7331
7332 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7333 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7334 (libunwind_load): New variable so_error, use it for dlerror. Try to
7335 load also LIBUNWIND_SO_7.
7336
275418ae
PA
73372012-03-05 Pedro Alves <palves@redhat.com>
7338
7339 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7340 is not NULL, and remove resulting dead code.
7341
5cbb9812
TS
73422012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7343
7344 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7345 prologue to sh_analyze_prologue.
7346 (sh_analyze_prologue): Make better use of such an upper limit, and
7347 generally be more cautious about accessing memory.
7348
541515ad
TT
73492012-03-05 Tom Tromey <tromey@redhat.com>
7350
7351 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7352 _initialize_ia64_hpux_tdep.
7353
b4d36fb8
PA
73542012-03-05 Pedro Alves <palves@redhat.com>
7355
24490249
PA
7356 PR gdb/13766
7357
b4d36fb8
PA
7358 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7359 the register state is clear, supply explicit zero, instead of
7360 marking the register unavailable.
7361
60c9a3c0
TG
73622012-03-05 Tristan Gingold <gingold@adacore.com>
7363
7364 * NEWS: Mention OpenVMS ia64 new target.
7365
696759ad
TG
73662012-03-05 Tristan Gingold <gingold@adacore.com>
7367
7368 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7369 (ia64_unw_accessors, ia64_unw_rse_accessors)
7370 (ia64_libunwind_descr): Declare.
7371 * ia64-vms-tdep.c: New file.
7372 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7373 (ia64_libunwind_descr): Make them public.
7374 * configure.tgt: Add ia64-*-*vms*.
7375 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7376 (ALLDEPFILES): Add ia64-vms-tdep.c
7377
34864976
TG
73782012-03-05 Tristan Gingold <gingold@adacore.com>
7379
169081d0
TG
7380 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7381 * remote.c (PACKET_qXfer_uib): New enum value.
7382 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7383 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7384 (_initialize_remote): Call add_packet_config_cmd for
7385 xfer:uib packet.
7386
73872012-03-05 Tristan Gingold <gingold@adacore.com>
7388
7389 * osabi.c (gdb_osabi_names): Add OpenVMS.
7390 (generic_elf_osabi_sniffer): Likewise.
7391 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 7392
6597b100
JK
73932012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7394
7395 Removed unused code.
7396 * libunwind-frame.c (libunwind_frame_unwind)
7397 (libunwind_frame_base_address): Remove.
7398 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7399
87399aa1
YQ
74002012-03-04 Yao Qi <yao@codesourcery.com>
7401
7402 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7403 remove trailing new line.
7404 (agent_run_command, agent_run_command): Add _ markup.
7405 (agent_capability_check): Likewise.
7406
abf1152a
JK
74072012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7408
7409 * breakpoint.c (set_condition_evaluation_mode): Set
7410 CONDITION_EVALUATION_MODE unconditionally.
7411
5808517f
YQ
74122012-03-03 Yao Qi <yao@codesourcery.com>
7413
7414 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7415 * common/agent.h: Update declaration.
7416 * inf-child.c (inf_child_use_agent): New.
7417 (inf_child_can_use_agent): New.
7418 (inf_child_target): Initialize fields `to_use_agent'
7419 and `to_can_use_agent'.
7420 * agent.c (agent_new_objfile): New.
89b7509a 7421 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
7422 observer.
7423
7424 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7425 New.
89b7509a 7426 (linux_target_install_ops): Initialize field
5808517f
YQ
7427 `to_static_tracepoint_markers_by_strid'.
7428 * remote.c (free_current_marker): Move it to ...
7429 * tracepoint.c (free_current_marker): ... here. New.
7430 (cleanup_target_stop): New.
7431 * tracepoint.h: Declare free_current_marker.
7432 * NEWS: Add one entry about `info static-tracepoint-marker'.
7433
58b4daa5
YQ
74342012-03-03 Yao Qi <yao@codesourcery.com>
7435
7436 * common/agent.c (agent_loaded_p): New.
89b7509a 7437 (agent_look_up_symbols): New global.
58b4daa5
YQ
7438 * common/agent.h: Declare agent_loaded_p.
7439
8ffcbaaf
YQ
74402012-03-03 Yao Qi <yao@codesourcery.com>
7441
7442 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7443 (agent_capability_check, agent_capability_invalidate): New.
7444 (symbol_list): New array element.
7445 * common/agent.h (enum agent_capa): New.
7446 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7447
d1feda86
YQ
74482012-03-03 Yao Qi <yao@codesourcery.com>
7449
7450 * target.h (struct target_ops) <to_use_agent>: New field.
7451 (struct target_ops) <to_can_use_agent>: New field.
7452 (target_use_agent, target_can_use_agent): New macro.
7453 * target.c (update_current_target): Update.
7454 * remote.c: New enum `PACKET_QAgent'.
7455 (remote_protocol_features): Add a new element.
7456 (remote_use_agent, remote_can_use_agent): New.
7457 (init_remote_ops): Initialize field `can_use_agent' with
7458 remote_can_use_agent. Intiailize field `use_agent' with
7459 remote_use_agent.
7460 * common/agent.c (use_agent): New global.
7461 * common/agent.h: Declare it.
7462 * tracepoint.c (info_static_tracepoint_markers_command): Add
7463 comment.
7464 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7465 (COMMON_OBS): Add common/agent.o and agent.o
7466 (common-agent.o): New rule.
7467 * agent.c: New.
7468
2fa291ac
YQ
74692012-03-03 Yao Qi <yao@codesourcery.com>
7470
7471 * common/agent.c: New.
7472 * common/agent.h: New.
7473 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7474 AC_CHECK_HEADERS.
7475 * configure, configh.in: Regenerated.
7476
9fc05685
KB
74772012-03-02 Kevin Buettner <kevinb@redhat.com>
7478
7479 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7480 unless it exists for this architecture.
7481
a5ee536b
JB
74822012-03-02 Joel Brobecker <brobecker@adacore.com>
7483
7484 * language.h (struct language_defn): New "method" la_read_var_value.
7485 * findvar.c: #include "language.h".
7486 (default_read_var_value): Renames read_var_value. Rewrite
7487 function description.
7488 (read_var_value): New function.
7489 * value.h (default_read_var_value): Add prototype.
7490 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7491 New functions.
7492 (ada_language_defn): Add entry for la_read_var_value.
7493 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7494 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7495 language_defn structures to add entry for new la_read_var_value
7496 field.
7497
f59f708a
PA
74982012-03-02 Tom Tromey <tromey@redhat.com>
7499 Pedro Alves <palves@redhat.com>
7500
7501 PR breakpoints/13776:
7502 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7503 breakpoints.
7504 (delete_longjmp_breakpoint_at_next_stop): New.
7505 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7506 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7507 before deleting the inferior. Add comments.
7508 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7509 breakpoints immediately, but only on next stop. Move that code
7510 next to where we mark other breakpoints for deletion.
7511
44099a67
JB
75122012-03-02 Joel Brobecker <brobecker@adacore.com>
7513
7514 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7515 marker.
7516 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7517 violation.
7518
2a2ef594
PA
75192012-03-02 Pedro Alves <palves@redhat.com>
7520
7521 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7522
b261e0c5
UW
75232012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7524
7525 Fix -Wmissing-prototypes build.
7526 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7527 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7528 (gdbsim_has_memory): Likewise.
7529
a95babbf
YQ
75302012-03-02 Yao Qi <yao@codesourcery.com>
7531
7532 Fix -Wmissing-prototypes build.
7533 * charset.c (phony_iconv_open): Make static.
7534 (phony_iconv_close, phony_iconv): Likewise.
7535 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7536 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7537 prototype.
7538 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7539 * ser-mingw.c (create_select_thread): Make static.
7540 * windows-termcap.c (tgetent): New prototype.
7541 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7542
d603d4b3
JK
75432012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7544
7545 Fix -Wmissing-prototypes build.
7546 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7547 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7548 (_initialize_loadable): New prototypes.
7549
7fb3ad1f
DE
75502012-03-02 Doug Evans <dje@google.com>
7551
7552 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7553 abbrev table, read_comp_unit will do it.
7554
693be288
JK
75552012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7556
7557 Fix -Wmissing-prototypes build.
7558 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7559 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7560 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7561 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7562 (_initialize_arm_symbian_tdep): New prototype.
7563 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7564 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7565 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7566 static.
7567 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7568 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7569 prototype.
7570 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7571 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7572 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7573 static.
7574 * moxie-tdep.c (moxie_process_record): Likewise.
7575 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7576 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7577 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7578 (_initialize_rl78_tdep): New prototype.
7579 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7580 (_initialize_rx_tdep): New prototype.
7581 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7582 (_initialize_darwin_solib): New prototype.
7583 * solib-spu.c: Include solib-spu.h.
7584 (_initialize_spu_solib): New prototype.
7585 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7586 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7587 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7588 (tic6x_software_single_step): Make it static.
7589 (_initialize_tic6x_tdep): New prototype.
7590
638234e5
JK
75912012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7592
7593 Fix -Wmissing-prototypes build.
7594 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7595 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7596
f4a6f16d
JK
75972012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7598
7599 Fix -Wmissing-prototypes build.
7600 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7601 (frv_have_stopped_data_address): Remove.
7602
04dcf5fa
JK
76032012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7604
7605 Fix -Wmissing-prototypes build.
7606 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7607 * sh-tdep.c: Include sh64-tdep.h.
7608 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7609 * sh64-tdep.c: Include sh64-tdep.h.
7610 * sh64-tdep.h: New file.
7611
19080931
MR
76122012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7613
7614 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7615
9aac7884
MR
76162012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7617
7618 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7619 sp_regnum once the gdbarch_init_osabi hook has been called.
7620
a385295e
MR
76212012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7622
7623 * mips-tdep.c (mips32_bc1_pc): New function.
7624 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7625 BPOSGE32 and BPOSGE64 instructions.
7626 (deal_with_atomic_sequence): Likewise.
7627 (mips32_instruction_has_delay_slot): Likewise.
7628
1faeff08 76292012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
7630 Chris Dearman <chris@mips.com>
7631 Maciej W. Rozycki <macro@codesourcery.com>
7632 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
7633
7634 * features/mips-dsp.xml: New file.
7635 * features/mips64-dsp.xml: New file.
7636 * features/mips-dsp-linux.xml: New file.
7637 * features/mips64-dsp-linux.xml: New file.
7638 * features/Makefile (WHICH): Add mips-dsp-linux and
7639 mips64-dsp-linux.
7640 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7641 * features/mips-dsp-linux.c: New file.
7642 * features/mips64-dsp-linux.c: New file.
7643 * regformats/mips-dsp-linux.dat: New file.
7644 * regformats/mips64-dsp-linux.dat: New file.
7645 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7646 registers.
7647 (mips64_linux_register_addr): Likewise.
7648 (mips64_linux_regsets_fetch_registers): Likewise.
7649 (mips64_linux_regsets_store_registers): Likewise.
7650 (mips64_linux_fetch_registers): Update call to
7651 mips64_linux_regsets_fetch_registers.
7652 (mips64_linux_store_registers): Update call to
7653 mips64_linux_regsets_store_registers.
7654 (mips_linux_read_description): Probe for DSP registers.
7655 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7656 and initialize_tdesc_mips64_dsp_linux.
7657 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7658 Remove padding of no longer used embedded register slots.
7659 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7660 (MIPS_RESTART_REGNUM): Redefine enum value.
7661 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7662 strings.
7663 (mips_tx39_reg_names): Likewise.
7664 (mips_linux_reg_names): New array of register names for Linux
7665 targets.
7666 (mips_register_name): Check for a null pointer in
7667 mips_processor_reg_names and return an empty string.
7668 (mips_register_type): Exclude embedded registers for the IRIX
7669 and Linux ABIs.
7670 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7671 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7672 DSP registers.
7673 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7674 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7675 (mips_gdbarch_init): Likewise. Initialize internal register
7676 indices for the Linux ABI. Use dynamic numbers to refer to
7677 registers, as applicable, while parsing the target description.
7678 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7679
263689d8
JB
76802012-03-01 Joel Brobecker <brobecker@adacore.com>
7681
7682 * frame.h (read_frame_register_unsigned): Fix typo in function
7683 description.
7684
f3b4f45c
PA
76852012-03-01 Pedro Alves <palves@redhat.com>
7686
7687 * jit-reader.in [!__cplusplus]
7688 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7689
b03a2011
PA
76902012-03-01 Pedro Alves <palves@redhat.com>
7691
7692 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7693 * configure: Regenerate.
7694
70221824
PA
76952012-03-01 Pedro Alves <palves@redhat.com>
7696
7697 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7698 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7699 (ftrace_command, strace_command): Make static.
7700 * d-lang.c (_initialize_d_language): Declare.
7701 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7702 * dwarf2loc.c (_initialize_dwarf2loc):
7703 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7704 * exec.c (exec_get_section_table): Make static.
7705 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7706 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7707 * inferior.c (remove_inferior_command, add_inferior_command)
7708 (clone_inferior_command): Make static.
7709 * linux-nat.c (linux_nat_thread_address_space)
7710 (linux_nat_core_of_thread): Make static.
7711 * linux-tdep.c (_initialize_linux_tdep): Declare.
7712 * objc-lang.c (_initialize_objc_lang): Declare.
7713 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7714 Make static.
7715 (_initialize_opencl_language): Declare.
7716 * record.c (_initialize_record): Declare.
7717 * remote.c (demand_private_info, remote_get_tib_address)
7718 (remote_supports_cond_tracepoints)
7719 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7720 Make static.
7721 * skip.c (_initialize_step_skip): Declare.
7722 * symtab.c (skip_prologue_using_lineinfo): Make static.
7723 * tracepoint.c (delete_trace_state_variable)
7724 (trace_variable_command, delete_trace_variable_command)
7725 (get_uploaded_tsv, find_matching_tracepoint_location)
7726 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7727 Make static.
7728 * value.c (pack_unsigned_long): Make static.
7729 * varobj.c (varobj_ensure_python_env): Make static.
7730 * windows-tdep.c (_initialize_windows_tdep): Declare.
7731 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7732
33fbcbee
PA
77332012-03-01 Pedro Alves <palves@redhat.com>
7734
7735 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7736 gdbarch parameter.
7737 (linux_init_abi): Install it as has_shared_address_space gdbarch
7738 callback.
7739
44d0cd3b
PA
77402012-03-01 Pedro Alves <palves@redhat.com>
7741
7742 * observer.c (observer_test_first_notification_function)
7743 (observer_test_second_notification_function)
7744 (observer_test_third_notification_function): Add declarations.
7745
ed01b82c
PA
77462012-03-01 Pedro Alves <palves@redhat.com>
7747
7748 * common/signals.c (default_target_signal_to_host)
7749 (default_target_signal_from_host): Move ...
7750 * arch-utils.c: ... here.
7751 * arch-utils.h (default_target_signal_to_host)
7752 (default_target_signal_from_host): Declare.
7753
7754 * common/signals.c (target_signal_from_command): Move ...
7755 * infrun.c: ... here.
7756 * inferior.h (target_signal_from_command): Declare.
7757 * target.h (target_signal_from_command)
7758 (default_target_signal_from_host, default_target_signal_to_host):
7759 Delete declarations.
7760
7761 * common/signals.c (_initialize_signals): Delete.
7762
c9b87335
PA
77632012-03-01 Pedro Alves <palves@redhat.com>
7764
7765 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7766 both __cplusplus and !__cplusplus.
7767
9340a6c0
PA
77682012-03-01 Pedro Alves <palves@redhat.com>
7769
7770 * psymtab.c (find_and_open_source): Delete declaration.
7771 * source.c (find_and_open_source): Move comment ...
7772 * source.h (find_and_open_source): ... to this new declaration.
7773
e451c4a1
PA
77742012-03-01 Pedro Alves <palves@redhat.com>
7775
7776 * inline-frame.c: Include inline-frame.h.
7777
983fb104
PA
77782012-03-01 Pedro Alves <palves@redhat.com>
7779
7780 * tui/tui-data.c (set_gen_win_origin): Delete.
7781 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7782 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7783
5fbce5df
PA
77842012-03-01 Pedro Alves <palves@redhat.com>
7785
7786 * remote.c (encode_actions): Delete declaration.
7787 * tracepoint.c (encode_actions): Make extern.
7788 * tracepoint.h (encode_actions): Declare.
7789
49a8461d
PA
77902012-03-01 Pedro Alves <palves@redhat.com>
7791
7792 * python/py-breakpoint.c: Include python.h.
7793 * python/py-continueevent.c (create_continue_event_object): Make
7794 static.
7795 * python/py-lazy-string.c (stpy_get_type): Make static.
7796 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7797 Make static.
7798 * python/py-utils.c (unicode_to_target_python_string): Make
7799 static.
7800 * python/py-value.c: Include python.h.
7801
9079102f
PA
78022012-03-01 Pedro Alves <palves@redhat.com>
7803
7804 * inferior.c (delete_threads_of_inferior): Delete.
7805
a298c5e8
PA
78062012-03-01 Pedro Alves <palves@redhat.com>
7807
7808 Import fallback definitions from glibc.
7809
7810 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7811 ps_prochandle): Forward declare.
7812 (ps_err_e): Use glibc's comments.
7813 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7814 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7815 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7816 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7817 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7818 (struct ps_prochandle): Adjust comment.
7819
e3084549
PA
78202012-03-01 Pedro Alves <palves@redhat.com>
7821
7822 * ada-lang.c (ada_modulus_from_name): Delete.
7823 * ada-lex.l (lexer_init): Make static.
7824
ad5f7d6e
PA
78252012-03-01 Pedro Alves <palves@redhat.com>
7826
7827 PR gdb/13767
7828
7829 * frame.c (read_frame_register_unsigned): New.
7830 * frame.h (read_frame_register_unsigned): Declare.
7831 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7832 Handle it.
7833 (print_i387_control_word): New parameter `control_p'. Handle it.
7834 (i387_print_float_info): Handle unavailable float registers.
7835
e0a4d108
KS
78362012-03-01 Keith Seitz <keiths@redhat.com>
7837
7838 * linespec.c (decode_line_2): Sort the list of methods
7839 alphabetically before presenting the user with a selection
7840 menu.
7841
122d1940
DE
78422012-03-01 Doug Evans <dje@google.com>
7843
7844 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7845 has_namespace_info.
7846 (dwarf2_read_abbrevs): Remove corresponding initialization.
7847
7d74f244
DE
78482012-03-01 Scott J. Goldman <scottjg@vmware.com>
7849
7850 * NEWS: Mention new python command class gdb.COMMAND_USER.
7851 * cli/cli-cmds.c (show_user): Print error when used on a python
7852 command.
7853 (init_cli_cmds): Update documentation strings for "show user" and
7854 "set/show max-user-call-depth" to clarify that it does not apply to
7855 python commands.
7856 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7857 error check.
7858 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7859 gdb python api.
7860 * top.c (execute_command): Only execute a user-defined command as a
7861 legacy macro if c->user_commands is set.
7862
e88acd96
TT
78632012-03-01 Tom Tromey <tromey@redhat.com>
7864
7865 * valprint.h (struct generic_val_print_decorations): New.
7866 (generic_val_print): Declare.
7867 * valprint.c (generic_val_print): New function.
7868 * p-valprint.c (p_decorations): New global.
7869 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7870 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7871 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7872 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7873 * m2-valprint.c (m2_decorations): New global.
7874 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7875 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7876 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7877 TYPE_CODE_ERROR>: Call generic_val_print.
7878 * f-valprint.c (f_decorations): New global.
7879 (f_val_print): Use print_function_pointer_address.
7880 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
7881 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
7882 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
7883 generic_val_print.
7884 * c-valprint.c (c_decorations): New global.
7885 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
7886 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
7887 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
7888 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7889 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7890 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7891 case.
7892
d3eab38a
TT
78932012-03-01 Tom Tromey <tromey@redhat.com>
7894
7895 * valprint.c (val_print): Update.
7896 * p-valprint (pascal_val_print): Return void.
7897 * p-lang.h (pascal_val_print): Return void.
7898 * m2-valprint.c (m2_val_print): Return void.
7899 * m2-lang.h (m2_val_print): Return void.
7900 * language.h (struct language_defn) <la_val_print>: Return void.
7901 * language.c (unk_lang_val_print): Return void.
7902 * jv-valprint.c (java_val_print): Return void.
7903 * jv-lang.h (java_val_print): Return void.
7904 * f-valprint.c (f_val_print): Return void.
7905 * f-lang.h (f_val_print): Return void.
7906 * d-valprint.c (d_val_print): Return void.
7907 (dynamic_array_type): Update.
7908 * d-lang.h (d_val_print): Return void.
7909 * c-valprint.c (c_val_print): Return void.
7910 * c-lang.h (c_val_print): Return void.
7911 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7912 void.
7913 * ada-lang.h (ada_val_print): Return void.
7914
35c0084b
TT
79152012-03-01 Tom Tromey <tromey@redhat.com>
7916
7917 * value.h (val_print): Return void.
7918 * valprint.c (val_print): Return void.
7919
a1f5dd1b
TT
79202012-03-01 Tom Tromey <tromey@redhat.com>
7921
7922 * value.h (common_val_print): Return void.
7923 * valprint.c (common_val_print): Return void.
7924
8e069a98
TT
79252012-03-01 Tom Tromey <tromey@redhat.com>
7926
7927 * value.h (value_print): Return void.
7928 * valprint.c (value_print): Return void.
7929 * p-valprint.c (pascal_value_print): Return void.
7930 * p-lang.h (pascal_value_print): Return void.
7931 * language.h (struct language_defn) <la_value_print>: Return
7932 void.
7933 * language.c (unk_lang_value_print): Return void.
7934 * jv-valprint.c (java_value_print): Return void.
7935 * jv-lang.h (java_value_print): Return void.
7936 * f-valprint.c (c_value_print): Don't declare.
7937 Include c-lang.h.
7938 * c-valprint.c (c_value_print): Return void.
7939 * c-lang.h (c_value_print): Return void.
7940 * ada-valprint.c (ada_value_print): Return void.
7941 * ada-lang.h (ada_value_print): Return void.
7942
be335936
TT
79432012-03-01 Tom Tromey <tromey@redhat.com>
7944
7945 * value.c (value_primitive_field): Handle virtual base classes.
7946
b0db66a7
TT
79472012-03-01 Tom Tromey <tromey@redhat.com>
7948
7949 * gdbtypes.h (struct vbase): Remove.
7950
132c57b4
TT
79512012-03-01 Tom Tromey <tromey@redhat.com>
7952
7953 * c-valprint.c (print_function_pointer_address): Move...
7954 * valprint.c: ... here. Make non-static.
7955 * m2-valprint.c (print_function_pointer_address): Remove.
7956 * valprint.h (print_function_pointer_address): Declare.
7957
e41eec66
JB
79582012-03-01 Joel Brobecker <brobecker@adacore.com>
7959
7960 * NEWS: Document the fact that one can provide a condition when
7961 creating an Ada exception catchpoint.
7962
19c37f24
TT
79632012-03-01 Tom Tromey <tromey@redhat.com>
7964
7965 * valprint.c (val_print_type_code_flags): Fix placement of
7966 trailing brace.
7967
f0fed3a3
JB
79682012-03-01 Joel Brobecker <brobecker@adacore.com>
7969
7970 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
7971 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
7972 environment variable before calling update-copyright.
7973
8ba85d85
JB
79742012-03-01 Joel Brobecker <brobecker@adacore.com>
7975
7976 * gnulib/extra/update-copyright: Update to the latest from
7977 gnulib's git repository.
7978 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
7979 variable to 2 instead of 1.
7980
8219b1e8
JB
79812012-02-29 Joel Brobecker <brobecker@adacore.com>
7982
7983 * varobj.c (c_value_of_variable): Remove dead code.
7984
718cb7da
JB
79852012-02-29 Joel Brobecker <brobecker@adacore.com>
7986
7987 * ada-lex.p (processId): Do not modify already encoded IDs.
7988 Update function documentation.
7989
739593e0
JB
79902012-02-29 Joel Brobecker <brobecker@adacore.com>
7991
7992 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
7993 "name" with "struct symbol *name_sym".
7994 * ada-exp.y (write_var_or_type): Update call to
7995 ada_find_renaming_symbol.
7996 "name" with "struct symbol *name_sym". Adjust Implementation
7997 accordingly. Adjust the function documentation.
7998
852dff6c
JB
79992012-02-29 Joel Brobecker <brobecker@adacore.com>
8000
8001 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8002 * ada-lang.c (ada_find_any_type): Add advance declaration.
8003 Make static. Replace ada_find_any_symbol by
8004 ada_find_any_type_symbol.
8005 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8006 Improve function description. Make static.
8007 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8008 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8009
1b611343
JB
80102012-02-29 Joel Brobecker <brobecker@adacore.com>
8011
8012 * ada-lang.c (struct tag_args): Delete.
8013 (ada_get_tsd_type): Function body moved up in source file.
8014 (ada_tag_name_1, ada_tag_name_2): Delete.
8015 (ada_get_tsd_from_tag): New function.
8016 (ada_tag_name_from_tsd): New function.
8017 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8018 to determine the tag name.
8019
41246937
JB
80202012-02-29 Joel Brobecker <brobecker@adacore.com>
8021
8022 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8023 declaration.
8024 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8025 function.
8026
ffde82bf
JB
80272012-02-29 Joel Brobecker <brobecker@adacore.com>
8028
8029 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8030
2ad01556
JB
80312012-02-29 Joel Brobecker <brobecker@adacore.com>
8032
8033 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8034 full searches.
8035
99b1c762
JB
80362012-02-29 Joel Brobecker <brobecker@adacore.com>
8037
8038 * ada-lang.c (constrained_packed_array_type): If there is a
8039 parallel XA type, use it to determine the array index type.
8040
2d4a02ee
JB
80412012-02-29 Joel Brobecker <brobecker@adacore.com>
8042
8043 * ada-valprint.c (ada_val_print_1): If our value is a reference
8044 to an array descriptor, dereference it before converting it
8045 to a simple array.
8046
c48db5ca
JB
80472012-02-29 Joel Brobecker <brobecker@adacore.com>
8048
8049 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8050 creating fixed value.
8051 (ada_value_ind, ada_coerce_ref, assign_component)
8052 (ada_evaluate_subexp): Remove call to unwrap_value before
8053 call to ada_to_fixed_value.
8054
2e6fda7d
JB
80552012-02-29 Joel Brobecker <brobecker@adacore.com>
8056
8057 * ada-lang.c (to_fixed_array_type): Set result's type name.
8058
5845583d
JB
80592012-02-29 Joel Brobecker <brobecker@adacore.com>
8060
8061 * ada-lang.c (catch_ada_exception_command_split): Add new
8062 argument cond_string. Add support for condition at end of
8063 "catch exception" commands.
8064 (ada_decode_exception_location): Add new argument cond_string.
8065 Update call to catch_ada_exception_command_split.
8066 (create_ada_exception_catchpoint): Add new argument cond_string.
8067 Set the breakpoint condition if needed.
8068 (catch_ada_exception_command): Update call to
8069 ada_decode_exception_location.
8070 (ada_decode_assert_location): Add function documentation.
8071 Add support for condition at end of "catch assert" command.
8072 (catch_assert_command): Update calls to ada_decode_assert_location
8073 and create_ada_exception_catchpoint.
8074
9a7f938f
JK
80752012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8076
8077 Fix disp-step-syscall.exp: fork: single step over fork.
8078 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8079 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8080 comment, change parameters gdbarch and ptid to regcache. Remove
8081 parameter regcache, initialize gdbarch from regcache here.
8082 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8083 New functions.
8084 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8085 instead.
8086 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8087 'syscall'. Make the 'int' check more strict.
8088
ffdf6de5
JK
80892012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8090
8091 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8092 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8093 (i386_linux_intx80_sysenter_syscall_record): ... here.
8094 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8095 Use the renamed function name.
8096
c70a6932
JK
80972012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8098
8099 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8100 * breakpoint.c (until_break_command): Likewise.
8101 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8102 * infcall.c (call_function_by_hand): Likewise.
8103 * infcmd.c (finish_forward): Likewise.
8104 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8105
05b8a789 81062012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8107
d4cd3da9
JB
8108 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8109 avoid variable assignments inside condition.
8110
6425366c
JK
81112012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8112
8113 Fix static analysis issue found by cppcheck.
8114 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8115 uninitialized BUF for size 2.
8116
c8cef75f 81172012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8118 Nathan Froyd <froydnj@codesourcery.com>
8119 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8120
8121 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8122 (mips16_instruction_has_delay_slot): Likewise.
8123 (mips_segment_boundary): Likewise.
8124 (mips_adjust_breakpoint_address): Likewise.
8125 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8126
473347ad 81272012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8128 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8129
8130 * infrun.c (handle_inferior_event): Don't proceed through
8131 shared library trampolines if stepping at the machine
8132 instruction level.
8133
cf233303
MR
81342012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8135
8136 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8137 too.
8138
cb2cf4ce
TS
81392012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8140
8141 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8142 (sh_stub_unwind_sniffer): New functions.
8143 (sh_stub_unwind): New variable.
8144 (sh_gdbarch_init): Wire everything.
8145
644cebc9
PA
81462012-02-27 Pedro Alves <palves@redhat.com>
8147
8148 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8149 (linux_nat_post_attach_wait): Adjust to use
8150 linux_proc_pid_is_stopped.
8151 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8152 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8153 based on pid_is_stopped from both linux-nat.c and
8154 gdbserver/linux-low.c, and renamed.
8155
283002cf
MR
81562012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8157
8158 * remote.c (remote_watchpoint_addr_within_range): New function.
8159 (init_remote_ops): Use it.
8160
9b3e86b1
MR
81612012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8162
8163 * target.h (target_watchpoint_addr_within_range): Document macro.
8164
e36930bb
PA
81652012-02-24 Pedro Alves <palves@redhat.com>
8166
8167 * stack.c (set_last_displayed_sal): Issue internal_error instead
8168 of warning, and issue it after clearing the last displayed sal.
8169
883bc8d1
PA
81702012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8171 Pedro Alves <palves@redhat.com>
8172
8173 * breakpoint.c (until_break_command): Install breakpoints after
8174 all frame manipulations.
8175
b775012e
LM
81762012-02-24 Luis Machado <lgustavo@codesourcery.com>
8177
8178 * remote.c (remote_supports_cond_breakpoints): New forward
8179 declaration.
8180 (remote_add_target_side_condition): New function.
8181 (remote_insert_breakpoint): Add target-side breakpoint
8182 conditional if supported.
8183 (remote_insert_hw_breakpoint): Likewise.
8184 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8185 hook.
8186
8187 * target.c (update_current_target): Inherit
8188 to_supports_evaluation_of_breakpoint_conditions.
8189 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8190
8191 * target.h (struct target_ops)
8192 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8193 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8194
8195 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8196 (condition_evaluation_both, condition_evaluation_auto,
8197 condition_evaluation_host, condition_evaluation_target,
8198 condition_evaluation_enums, condition_evaluation_mode_1,
8199 condition_evaluation_mode): New static globals.
8200 (translate_condition_evaluation_mode): New function.
8201 (breakpoint_condition_evaluation_mode): New function.
8202 (gdb_evaluates_breakpoint_condition_p): New function.
8203 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8204 (mark_breakpoint_modified): New function.
8205 (mark_breakpoint_location_modified): New function.
8206 (set_condition_evaluation_mode): New function.
8207 (show_condition_evaluation_mode): New function.
8208 (bp_location_compare_addrs): New function.
8209 (get_first_location_gte_addr): New helper function.
8210 (set_breakpoint_condition): Free condition bytecode if locations
8211 has become unconditional. Call mark_breakpoint_modified (...).
8212 (condition_command): Call update_global_location_list (1) for
8213 breakpoints.
8214 (breakpoint_xfer_memory): Use is_breakpoint (...).
8215 (is_breakpoint): New function.
8216 (parse_cond_to_aexpr): New function.
8217 (build_target_condition_list): New function.
8218 (insert_bp_location): Handle target-side conditional
8219 breakpoints and call build_target_condition_list (...).
8220 (update_inserted_breakpoint_locations): New function.
8221 (insert_breakpoint_locations): Handle target-side conditional
8222 breakpoints.
8223 (bpstat_check_breakpoint_conditions): Add comment.
8224 (bp_condition_evaluator): New function.
8225 (bp_location_condition_evaluator): New function.
8226 (print_breakpoint_location): Print information on where the condition
8227 will be evaluated.
8228 (print_one_breakpoint_location): Likewise.
8229 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8230 breakpoint location.
8231 (force_breakpoint_reinsertion): New functions.
8232 (update_global_location_list): Handle target-side breakpoint
8233 conditions.
8234 Reinsert locations that are already inserted if conditions have
8235 changed.
8236 (bp_location_dtor): Free agent expression bytecode.
8237 (disable_breakpoint): Call mark_breakpoint_modified (...).
8238 Call update_global_location_list (...) with parameter 1 for breakpoints.
8239 (disable_command): Call mark_breakpoint_location_modified (...).
8240 Call update_global_location_list (...) with parameter 1 for breakpoints.
8241 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8242 (enable_command): mark_breakpoint_location_modified (...).
8243 (_initialize_breakpoint): Update documentation and add
8244 condition-evaluation breakpoint subcommand.
8245
8246 * breakpoint.h: Include ax.h.
8247 (condition_list): New data structure.
8248 (condition_status): New enum.
8249 (bp_target_info) <cond_list>: New field.
8250 (bp_location) <condition_changed, cond_bytecode>: New fields.
8251 (is_breakpoint): New prototype.
8252
3788aec7
LM
82532012-02-24 Luis Machado <lgustavo@codesourcery.com>
8254
8255 * remote.c (remote_state) <cond_breakpoints>: New field.
8256 (PACKET_ConditionalBreakpoints): New enum.
8257 (remote_cond_breakpoint_feature): New function.
8258 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8259 (remote_supports_cond_breakpoints): New function.
8260 (_initialize_remote): Add new packet configuration for
8261 target-side conditional breakpoints.
8262
72895ff6
LM
82632012-02-24 Luis Machado <lgustavo@codesourcery.com>
8264
8265 * NEWS: Mention target-side conditional breakpoint support,
8266 new condition-evaluation breakpoint subcommand and remote
8267 packet extensions.
8268
dea2aa5f
LM
82692012-02-24 Luis Machado <lgustavo@codesourcery.com>
8270
8271 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8272 number.
8273
8a8bc27f
TS
82742012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8275
8276 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8277 (after_prologue): Remove.
8278
6b446fdf
TT
82792012-02-23 Tom Tromey <tromey@redhat.com>
8280
8281 * jv-valprint.c (java_val_print): Remove dead code.
8282
ef59abfb
TG
82832012-02-23 Tristan Gingold <gingold@adacore.com>
8284
a09130f9
PA
8285 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8286 known_tasks_element and known_tasks_length fields.
8287 (read_known_tasks_array): Change argument type. Use pointer type
8288 and number of elements from DATA. Adjust.
8289 (read_known_tasks_list): Likewise.
8290 (get_known_tasks_addr): Remove.
8291 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8292 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8293 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8294
def166f6
JK
82952012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8296
8297 PR backtrace/13716
8298 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8299 it after set_momentary_breakpoint.
8300
aeaa2474
SA
83012012-02-22 Sterling Augustine <saugustine@google.com>
8302
8303 PR 13689:
8304 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8305
feea76c2
GB
83062012-02-22 Gary Benson <gbenson@redhat.com>
8307
8308 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8309 (find_slot_in_mapped_hash): Likewise.
8310
f06e05e0
JK
83112012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8312
8313 PR build/13638
8314 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8315 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8316 * configure: Regenerate.
8317
b54a8fd7
PA
83182012-02-21 Tristan Gingold <gingold@adacore.com>
8319 Pedro Alves <palves@redhat.com>
8320
8321 * ia64-tdep.c: Do not include libunwind-ia64.h.
8322 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8323 Include libunwind-ia64.h instead of libunwind.h.
8324 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8325 for libunwind.h existence.
8326 * configure, config.in: Regenerate.
8327
dfcee124
AG
83282012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8329
8330 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8331 instead of value_rtti_target_type.
8332 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8333 instead of value_rtti_target_type.
8334 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8335 value_rtti_target_type.
8336 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8337 (value_rtti_target_type): Rename to ...
8338 (value_rtti_indirect_type): ... here and make it indirect. Update
8339 function comment.
8340 * value.c (readjust_indirect_value_type): New function.
8341 (coerce_ref): Support for enclosing type setting for references
8342 with readjust_indirect_value_type.
8343 * value.h (readjust_value_type): New declaration.
8344 (value_rtti_target_type): Rename to ...
8345 (value_rtti_indirect_type): ... here.
8346
02568277
AG
83472012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8348
8349 * MAINTAINERS (Write After Approval): Add myself to the list.
8350
10c07b7e 83512012-02-20 Doug Evans <dje@google.com>
28ee876a 8352
d82ea6a8
DE
8353 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8354 Rename objfile_p_char parameter to objfilep.
8355 (build_objfile_section_table): Result is now void. All callers
8356 updated.
8357 * objfiles.h (struct objfile): Tweak comments, whitespace.
8358 (build_objfile_section_table): Update.
8359
28ee876a
DE
8360 * elfread.c (elf_symfile_segments): Fix warning text.
8361
24c79950
TT
83622012-02-20 Tom Tromey <tromey@redhat.com>
8363
8364 PR gdb/13498:
8365 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8366 particular set of file names once.
8367 (dw2_map_symbol_filenames): Likewise.
8368
3a9b40b6
JK
83692012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8370
8371 Code cleanup.
8372 * main.c (write_files): Remove the declaration.
8373 (external_editor_command): Move the declaration ...
8374 [GDBTK] (external_editor_command): ... here. Fix the comment.
8375
4d0795ca
TT
83762012-02-20 Tom Tromey <tromey@redhat.com>
8377
8378 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8379 extraneous block.
8380
637fd620
TG
83812012-02-20 Tristan Gingold <gingold@adacore.com>
8382
8383 * darwin-nat.h (enum darwin_msg_state): Add comments.
8384
6f124894
TG
83852012-02-20 Tristan Gingold <gingold@adacore.com>
8386
8387 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8388 value.
8389
2e6e3d9c
JB
83902012-20-18 Joel Brobecker <brobecker@adacore.com>
8391
8392 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8393 between function description and implementation.
8394
2e8265fd
TT
83952012-02-17 Tom Tromey <tromey@redhat.com>
8396
8397 PR python/12070:
8398 * python/py-event.c (event_object_getset): New global.
8399 (event_object_type): Reference it.
8400 * python/py-type.c (field_object_getset): New global.
8401 (field_object_type): Reference it.
8402 * python/python-internal.h (gdb_py_generic_dict): Declare.
8403 * python/py-utils.c (gdb_py_generic_dict): New function.
8404
8544a150 84052012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 8406
8544a150 8407 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 8408
ca193e27
TS
84092012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8410
8411 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8412 TYPE_CALLING_CONVENTION annotation.
8413
e5586183
KB
84142012-02-16 Kevin Buettner <kevinb@redhat.com>
8415
8416 * MAINTAINERS: Add rx to target ISA section.
8417 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8418 (ALLDEPFILES): Add rx-tdep.c.
8419
7dcd53a0
TT
84202012-02-16 Tom Tromey <tromey@redhat.com>
8421
8422 * symfile.c (symbol_file_add_main_1): Use inferior's
8423 symfile_flags.
8424 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8425 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8426 inferior.
8427 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8428 inferior.
8429 (follow_exec): Use inferior's symfile_flags.
8430 * inferior.h (struct inferior) <symfile_flags>: New field.
8431
ddd60447
MF
84322012-02-16 Mike Frysinger <vapier@gentoo.org>
8433
8434 PR gdb/9734:
8435 * remote-sim.c (gdbsim_create_inferior): Call error() when
8436 sim_create_inferior() fails.
8437
b0d32fb6
TG
84382012-02-16 Josh Matthews <josh@joshmatthews.net>
8439
8440 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8441
9addecb9
TT
84422012-02-16 Tom Tromey <tromey@redhat.com>
8443
8444 PR c++/13653:
8445 * thread.c (struct current_thread_cleanup) <was_removable>: New
8446 field.
8447 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8448 (make_cleanup_restore_current_thread): Initialize new field.
8449
a58b110a
KB
84502012-02-15 Kevin Buettner <kevinb@redhat.com>
8451
8452 * MAINTAINERS: Add rl78 to target ISA section.
8453 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8454 (ALLDEPFILES): Add rl78-tdep.c.
8455 * NEWS: Mention rl78 as a new target.
8456
4cb6da1c
AR
84572012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8458
8459 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8460 data.
8461 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8462
3af2590d
TT
84632012-02-15 Tom Tromey <tromey@redhat.com>
8464
8465 PR gdb/12659:
8466 * infcmd.c (registers_info): Print just the current register's
8467 name.
8468
c6910659
TT
84692012-02-15 Tom Tromey <tromey@redhat.com>
8470
8471 * python/py-symbol.c (sympy_value): Use _().
8472
7cee1e54
PA
84732012-02-15 Pedro Alves <palves@redhat.com>
8474
8475 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8476 output to be like native targets'.
8477 (remote_pid_to_str): Special case the null ptid.
8478
816338b5
SS
84792012-02-14 Stan Shebs <stan@codesourcery.com>
8480
8481 * NEWS: Mention enable count command.
8482 * breakpoint.h (struct breakpoint): New field enable_count.
8483 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8484 (enable_breakpoint): Add arg to call.
8485 (struct disp_data): New struct.
8486 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8487 (do_map_enable_once_breakpoint): Create a struct and pass it.
8488 (do_map_enable_delete_breakpoint): Ditto.
8489 (do_map_enable_count_breakpoint): New function.
8490 (enable_count_command): New function.
8491 (bpstat_stop_status): Decrement enable_count.
8492 (print_one_breakpoint_location): Report enable count.
8493 (_initialize_breakpoint): Add enable count command.
8494
c47a44f4
KB
84952012-02-14 Kevin Buettner <kevinb@redhat.com>
8496
8497 * rl78-tdep.c (reggroups.h): Include.
8498 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8499 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8500 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8501 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8502 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8503 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8504 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8505 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8506 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8507 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8508 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8509 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8510 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8511 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8512 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8513 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8514 beginning of register list.
8515 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8516 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8517 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8518 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8519 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8520 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8521 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8522 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8523 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8524 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8525 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8526 the pseudo registers. Rearrange other pseudo registers too so
8527 that the bank registers appear at the end.
8528 (rl78_register_type): Account for the fact that the byte sized
8529 bank registers are now pseudo-registers.
8530 (rl78_register_name): Rearrange the register name array. Make
8531 initial set of raw banked registers inaccessible.
8532 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8533 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8534 case for copying bytes back and forth between raw and pseudo
8535 versions of the banked registers. Update other cases to reflect
8536 the changed names.
8537 (rl78_return_value): Update to account for changed names of
8538 raw registers.
8539 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8540 rl78_register_sim_regno().
8541
e4569f1e
KB
85422012-02-14 Kevin Buettner <kevinb@redhat.com>
8543
8544 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8545 the name parameter being passed to find_pc_partial_function().
8546
7a05aae7
JK
85472012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8548
8549 * MAINTAINERS: Step down from being ia64 target maintainer.
8550
11fde611
JK
85512012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8552
8553 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8554 compilation warning.
8555
57008375
JK
85562012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8557
8558 Fix crash on loaded shlibs without loaded exec_bfd.
8559 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8560 (set_section_command): Replace exec_bfd by p->bfd.
8561
ff3c9849
TT
85622012-02-10 Tom Tromey <tromey@redhat.com>
8563
8564 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8565 when we have a C++ qualified name.
8566
db2b9fdd
PA
85672012-02-10 Pedro Alves <palves@redhat.com>
8568
8569 * inferior.c (inferior_pid_to_str): New.
8570 (print_inferior, inferior_command): Use it.
8571
12cd34f3
PA
85722012-02-10 Pedro Alves <palves@redhat.com>
8573
8574 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8575 the test CFLAGS.
8576 * configure: Regenerate.
8577
e871429d
JK
85782012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8579
8580 * linespec.c (decode_line_internal): Fix comment correctness.
8581
1916efaf
PA
85822012-02-09 Valery Khromov <valery.khromov@gmail.com>
8583
8584 PR gdb/12953
8585 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8586 * amd64bsd-nat.c: Add support for debug registers (adapted from
8587 i386bsd-nat.c).
8588 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8589 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8590 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8591 (amd64bsd_dr_get_control): New functions.
8592 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8593 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8594 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8595 watchpoints initialization.
8596 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8597
f4859d94
JK
85982012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8599
8600 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8601 flds_bnds.fields.
8602 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8603
c56a97f9
JK
86042012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8605
8606 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8607
1a119f36
JB
86082012-02-08 Joel Brobecker <brobecker@adacore.com>
8609
8610 * language.h (symbol_name_cmp_ftype): Renames
8611 symbol_name_match_p_ftype.
8612 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8613 la_get_symbol_name_match_p.
8614 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8615 ada_get_symbol_name_match_p. Update comment.
8616 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8617 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8618 Renames symbol_name_match_p. Update field type.
8619 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8620 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8621 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8622 "la_get_symbol_name_cmp" in comments.
8623 * language.c: Likewise.
8624
c71bb1cf
RO
86252012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8626
8627 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8628 %eflags offset.
8629 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8630 (amd64_sol2_gregset32_reg_offs): Likewise.
8631
4b2d20a5
TG
86322012-02-08 Joel Brobecker <brobecker@adacore.com>
8633
8634 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8635 of the returned BFD is allocated by GDB.
8636
f0823d2c
TT
86372012-02-07 Tom Tromey <tromey@redhat.com>
8638
8639 PR python/12027:
8640 * python/python-internal.h (frame_object_type): Declare.
8641 * python/py-symbol.c (sympy_needs_frame): New function.
8642 (sympy_value): New function.
8643 (symbol_object_getset): Add "needs_frame".
8644 (symbol_object_methods): Add "value".
8645 * python/py-frame.c (frame_object_type): No longer static.
8646
64e7d9dd
TT
86472012-02-07 Tom Tromey <tromey@redhat.com>
8648
8649 PR python/13599:
8650 * python/py-symbol.c (sympy_line): New function.
8651 (symbol_object_getset): Add "line".
8652
1d6b2d2b
TT
86532012-02-07 Tom Tromey <tromey@redhat.com>
8654
8655 * charset.c (find_charset_names): Check 'in' against NULL.
8656
0d5cff50
DE
86572012-02-06 Doug Evans <dje@google.com>
8658
8659 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8660 and fields.name members from char * to const char *. All uses updated.
8661 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8662 from char * to const char *. All uses updated.
8663 (type_name_no_tag): Update.
8664 (lookup_unsigned_typename, lookup_signed_typename): Update.
8665 * gdbtypes.c (type_name_no_tag): Change result type
8666 from char * to const char *. All callers updated.
8667 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8668 name parameter from char * to const char *.
8669 * symtab.h (struct cplus_specific): Change type of demangled_name
8670 member from char * to const char *. All uses updated.
8671 (struct general_symbol_info): Change type of name and
8672 mangled_lang.demangled_name members from char * to const char *.
8673 All uses updated.
8674 (symbol_get_demangled_name, symbol_natural_name): Update.
8675 (symbol_demangled_name, symbol_search_name): Update.
8676 * symtab.c (symbol_get_demangled_name): Change result type
8677 from char * to const char *. All callers updated.
8678 (symbol_natural_name, symbol_demangled_name): Ditto.
8679 (symbol_search_name): Ditto.
8680 (completion_list_add_name): Change type of symname,sym_text,
8681 text,word parameters from char * to const char *.
8682 (completion_list_objc_symbol): Change type of sym_text,
8683 text,word parameters from char * to const char *.
8684 * ada-lang.c (find_struct_field): Change type of name parameter
8685 from char * to const char *.
8686 (encoded_ordered_before): Similarly for N0,N1 parameters.
8687 (old_renaming_is_invisible): Similarly for function_name parameter.
8688 (ada_type_name): Change result type from char * to const char *.
8689 All callers updated.
8690 * ada-lang.h (ada_type_name): Update.
8691 * buildsym.c (hashname): Change type of name parameter
8692 from char * to const char *.
8693 * buildsym.h (hashname): Update.
8694 * dbxread.c (end_psymtab): Change type of include_list parameter
8695 from char ** to const char **.
8696 * dwarf2read.c (determine_prefix): Change result type
8697 from char * to const char *. All callers updated.
8698 * f-lang.c (find_common_for_function): Change type of name, funcname
8699 parameters from char * to const char *.
8700 * f-lang.c (find_common_for_function): Update.
8701 * f-valprint.c (list_all_visible_commons): Change type of funcname
8702 parameters from char * to const char *.
8703 * gdbarch.sh (static_transform_name): Change type of name parameter
8704 and result from char * to const char *.
8705 * gdbarch.c: Regenerate.
8706 * gdbarch.h: Regenerate.
8707 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8708 of name parameter from char * to const char *.
8709 * jv-lang.c (java_primitive_type_from_name): Ditto.
8710 (java_demangled_signature_length): Similarly for signature parameter.
8711 (java_demangled_signature_copy): Ditto.
8712 (java_demangle_type_signature): Ditto.
8713 * jv-lang.h (java_primitive_type_from_name): Update.
8714 (java_demangle_type_signature): Update.
8715 * objc-lang.c (specialcmp): Change type of a,b parameters
8716 from char * to const char *.
8717 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8718 from char * to const char *. All callers updated.
8719 * p-lang.h (is_pascal_string_type): Update.
8720 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8721 of name parameter from char * to const char *.
8722 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8723 * utils.c (fprintf_symbol_filtered): Ditto.
8724 * defs.h (fprintf_symbol_filtered): Update.
8725 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8726 * stabsread.h (end_psymtab): Update.
8727 * stack.c (find_frame_funname): Change type of funname parameter
8728 from char ** to const char **.
8729 * stack.h (find_frame_funname): Update.
8730 * typeprint.c (type_print): Change type of varstring parameter
8731 from char * to const char *.
8732 * value.h (type_print): Update.
8733 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8734 from char * to const char *. All callers updated.
8735 (xcoff_end_psymtab): Change type of include_list parameter
8736 from char ** to const char **. All callers updated.
8737 (swap_sym): Similarly for name parameter. All callers updated.
8738 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8739 Use xstrdup.
8740 (process_coff_symbol): Use xstrdup.
8741 * stabsread.c (stabs_method_name_from_physname): Renamed from
8742 update_method_name_from_physname. Change result type from void
8743 to char *. All callers updated.
8744 (read_member_functions): In has_destructor case, store name in objfile
8745 obstack instead of malloc space. In !has_stub case, fix mem leak.
8746
5579a92e
TT
87472012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8748
8749 * configure: Rebuild.
8750 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8751 LDFLAGS.
8752
9058f767
KB
87532012-02-03 Kevin Buettner <kevinb@redhat.com>
8754
8755 * configure.tgt (rl78-*-elf): New target.
8756 * rl78-tdep.c: New file.
8757
5b37825d
PW
87582012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8759
8760 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8761 and continue the loop. Add QUIT statement.
8762
e009ee71
TT
87632012-02-03 Tom Tromey <tromey@redhat.com>
8764
8765 PR gdb/13596:
8766 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8767 bfd_lookup_symbol_from_symtab.
8768 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8769 gdb_bfd_lookup_symbol_from_symtab.
8770
f7e44f65
JB
87712012-02-03 Joel Brobecker <brobecker@adacore.com>
8772
8773 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8774 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8775 symbol. Add assertion that sym2 is never NULL.
8776
2c02bd72
DE
87772012-02-02 Doug Evans <dje@google.com>
8778
8779 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8780 "name" parameter to const char ** from char **. All callers updated.
8781 (find_pc_partial_function): Ditto.
8782 (cache_pc_function_name): Change type to const char * from char *.
8783 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8784 (find_pc_partial_function): Update.
8785 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8786 type of "name" parameter to const char * from char *.
8787 All uses updated.
8788 * arch-utils.c (generic_in_solib_return_trampoline): Change
8789 type of "name" parameter to const char * from char *.
8790 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8791 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8792 type of "name" parameter to const char * from char *.
8793 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8794 * gdbarch.c: Regenerate.
8795 * gdbarch.h: Regenerate.
8796 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8797 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8798 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8799 type of "name" parameter to const char * from char *.
8800 * skip.c (skip_function_pc): Ditto.
8801 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8802 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8803 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8804 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8805 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8806 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8807 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8808 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8809 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8810
e886a173
PA
88112012-02-02 Pedro Alves <palves@redhat.com>
8812
8813 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8814 the current inferior has no execution. Make sure the current
8815 remote process matches gdb's current inferior.
8816
c709a7c2
TT
88172012-02-02 Tom Tromey <tromey@redhat.com>
8818
8819 PR gdb/13405:
8820 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8821 read-only memory.
8822
f149aabd
TT
88232012-02-02 Tom Tromey <tromey@redhat.com>
8824
8825 PR gdb/9307:
8826 * symtab.c (lookup_language_this): Set block_found.
8827
03bef283
TT
88282012-02-01 Tom Tromey <tromey@redhat.com>
8829
8830 PR gdb/13431:
8831 * jit.c (struct jit_inferior_data): Rewrite.
8832 (struct jit_objfile_data): New.
8833 (get_jit_objfile_data): New function.
8834 (add_objfile_entry): Update.
8835 (jit_read_descriptor): Return int. Replace descriptor_addr
8836 argument with inf_data. Update. Don't call error.
8837 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8838 descriptor here.
8839 (jit_inferior_init): Don't look up descriptor. Don't call error.
8840 (jit_reset_inferior_data_and_breakpoints)
8841 (jit_inferior_created_observer): Remove.
8842 (jit_inferior_exit_hook): Update.
8843 (jit_executable_changed_observer): Remove.
8844 (jit_event_handler): Update.
8845 (free_objfile_data): Reset inferior data if needed.
8846 (_initialize_jit): Update.
8847
f0bbc364
TT
88482012-02-01 Tom Tromey <tromey@redhat.com>
8849
8850 * jit.c (bfd_open_from_target_memory): Move higher in file.
8851
47c1316c
TG
88522012-02-01 Tristan Gingold <gingold@adacore.com>
8853
8854 * libunwind-frame.c (libunwind_load): Display message if dlopen
8855 failed.
8856
8e704927
GB
88572012-02-01 Gary Benson <gbenson@redhat.com>
8858
09c7a31f 8859 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
8860 (iterate_over_symbols): Use the above.
8861 * symtab.c (iterate_over_symbols): Likewise.
8862 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8863 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8864 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8865 (iterate_name_matcher): Document return values.
8866 (collect_one_symbol): Likewise.
8867 (collect_function_symbols): Likewise.
8868 (collect_symbols): Likewise.
8869
d9680e73
TT
88702012-02-01 Tom Tromey <tromey@redhat.com>
8871
8872 * ada-lang.c (resolve_subexp): Update.
8873 (ada_lookup_symbol_list): Add 'full_search' argument.
8874 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8875 ada_lookup_symbol_list.
8876 (ada_lookup_encoded_symbol): Update.
8877 (get_var_value): Update.
8878 * ada-exp.y (block_lookup): Update.
8879 (write_var_or_type): Update.
8880 (write_name_assoc): Update.
8881 * ada-lang.h (ada_lookup_symbol_list): Update.
8882
72e1143f
TT
88832012-01-31 Tom Tromey <tromey@redhat.com>
8884
8885 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
8886 comment.
8887
ab2d2ad3
DE
88882012-01-31 Doug Evans <dje@google.com>
8889
8890 * symtab.h: Remove outdated comment.
e9111bf7 8891 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 8892
bc884eba
JB
88932012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8894
8895 Fix build error in Darwin port.
8896 * i386-darwin-nat.c: Include i386-nat.h.
8897
8fc3fc34
TT
88982012-01-30 Tom Tromey <tromey@redhat.com>
8899
8900 PR breakpoints/13568:
8901 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8902 argument. Check for recursive includes.
8903 (dwarf_decode_macros): Create an include hash.
8904
5d853008
ME
89052012-01-30 Michael Eager <eager@eagercon.com>
8906
8907 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8908 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 8909 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
8910 (powerpc_linux_in_plt_stub): New function.
8911 (powerpc_linux_in_dynsym_resolve_code): New function.
8912 (ppc_skip_trampoline_code): New function.
8913 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8914 Use glibc_skip_solib_resolver.
8915
40478521
JK
89162012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8917
8918 Code cleanup: Make 1440 bytes of data segment read-only.
8919 * arch-utils.c (endian_enum): Make it const char *const [].
8920 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8921 Likewise.
8922 * breakpoint.c (always_inserted_enums): Likewise.
8923 * cli/cli-cmds.c (script_ext_enums): Likewise.
8924 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8925 enumlist parameter const char *const *.
8926 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8927 const char *const *.
8928 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8929 parameter const char *const *.
8930 * cris-tdep.c (cris_modes): Make it const char *const [].
8931 * filesystem.c (target_file_system_kinds): Likewise.
8932 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8933 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8934 (can_use_displaced_stepping_enum, scheduler_enums)
8935 (exec_direction_names): Likewise.
8936 * language.c (_initialize_language): Make the type_or_range_names and
8937 case_sensitive_names variables const char *const [].
8938 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
8939 * python/python.c (python_excp_enums): Likewise.
8940 * remote.c (interrupt_sequence_modes): Likewise.
8941 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
8942 * serial.c (logbase_enums): Likewise.
8943 * sh-tdep.c (sh_cc_enum): Likewise.
8944 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
8945 Likewise.
8946 * symtab.c (multiple_symbols_modes): Likewise.
8947 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
8948 Likewise.
8949 * utils.c (internal_problem_modes): Likewise.
8950
b3b8b934
JK
89512012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8952
8953 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
8954 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
8955 result.
8956
8c85a4e2
DE
89572012-01-27 Doug Evans <dje@google.com>
8958
8959 * configure.ac (with_python): Fix absolute path handling for win32.
8960 * configure: Regenerate.
8961
78d8b4d7
DE
89622012-01-26 Doug Evans <dje@google.com>
8963
eca864fe
DE
8964 * symtab.c: Whitespace cleanup, no code changes.
8965
7e082072
DE
8966 * symtab.c (lookup_symbol_in_language): Improve comment.
8967 (lookup_symbol_aux): Fix comment.
8968
7dc25483
DE
8969 * psymtab.c (add_psymbol_to_list): Result is now "void".
8970 * psympriv.h (add_psymbol_to_list): Update.
8971
78d8b4d7
DE
8972 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8973
4c63965b
JK
89742012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8975
8976 Do not open script filenames twice.
8977 * cli/cli-cmds.c (source_script_from_stream): Pass to
8978 source_python_script also STREAM.
8979 * python/py-auto-load.c (source_section_scripts): Pass to
8980 source_python_script_for_objfile also STREAM.
8981 (auto_load_objfile_script): Pass to source_python_script_for_objfile
8982 also INPUT.
8983 * python/python-internal.h (source_python_script_for_objfile): New
8984 parameter file, rename parameter file to filename.
8985 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
8986 instead if !_WIN32. Update the function comment.
8987 (source_python_script, source_python_script_for_objfile)
8988 (source_python_script): New parameter file, rename parameter file to
8989 filename. Pass FILENAME to python_run_simple_file.
8990 * python/python.h (source_python_script): New parameter file, rename
8991 parameter file to filename.
8992
88f38a04
PA
89932012-01-26 Pedro Alves <palves@redhat.com>
8994
8995 * corelow.c (core_has_fake_pid): Delete.
8996 (core_close): Delete references to `core_has_fake_pid'.
8997 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
8998 (core_open): Delete references to `core_has_fake_pid'.
8999 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9000 the removed global.
9001
e078317b
JB
90022012-01-26 Joel Brobecker <brobecker@adacore.com>
9003
9004 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9005 Remove language parameter from name_matcher. Adjust the comment.
9006 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9007 Remove language parameter.
9008 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9009 * linespec.c (iterate_name_matcher): Likewise.
9010 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9011 name_matcher. Adjust call accordingly.
9012 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9013 (maintenance_check_symtabs): Adjust type of parameter "fun".
9014 * psymtab.h (maintenance_check_symtabs): Likewise.
9015
74ccd7f5
JB
90162012-01-26 Joel Brobecker <brobecker@adacore.com>
9017
9018 * language.h (symbol_name_match_p_ftype): New typedef.
9019 (struct language_defn): Replace field la_symbol_name_compare
9020 by la_get_symbol_name_match_p.
9021 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9022 (ada_language_defn): Use it.
9023 * linespec.c (struct symbol_matcher_data): New type.
9024 (iterate_name_matcher): Rewrite.
9025 (iterate_over_all_matching_symtabs): Pass a pointer to
9026 a symbol_matcher_data struct to expand_symtabs_matching
9027 instead of just the lookup name.
9028 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9029 opencl-lang.c, p-lang.c, language.c: Delete field
9030 la_symbol_name_compare, and replace by NULL for new field
9031 la_get_symbol_name_match_p.
9032 * symfile.h (struct quick_symbol_functions): Update comment.
9033
5d268276
TT
90342012-01-25 Tom Tromey <tromey@redhat.com>
9035
9036 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9037 dereferencing.
9038
edcc5120
TT
90392012-01-24 Tom Tromey <tromey@redhat.com>
9040
9041 PR symtab/12406:
9042 * solib.c (update_solib_list): Update the program space's
9043 added_solibs and deleted_solibs fields.
9044 * progspace.h (struct program_space) <added_solibs,
9045 deleted_solibs>: New fields.
9046 (clear_program_space_solib_cache): Declare.
9047 * progspace.c (release_program_space): Call
9048 clear_program_space_solib_cache.
9049 (clear_program_space_solib_cache): New function.
9050 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9051 bpstat_stop_status. Use handle_solib_event.
9052 * breakpoint.c: Include gdb_regex.h.
9053 (print_solib_event): New function.
9054 (bpstat_print): Use print_solib_event.
9055 (bpstat_stop_status): Add special case for bp_shlib_event.
9056 (handle_solib_event): New function.
9057 (bpstat_what): Use handle_solib_event.
9058 (struct solib_catchpoint): New.
9059 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9060 (breakpoint_hit_catch_solib, check_status_catch_solib)
9061 (print_it_catch_solib, print_one_catch_solib)
9062 (print_mention_catch_solib, print_recreate_catch_solib): New
9063 functions.
9064 (catch_solib_breakpoint_ops): New global.
9065 (catch_load_or_unload, catch_load_command_1)
9066 (catch_unload_command_1): New functions.
9067 (internal_bkpt_check_status): Add special case for
9068 bp_shlib_event.
9069 (internal_bkpt_print_it): Use print_solib_event.
9070 (initialize_breakpoint_ops): Initialize
9071 catch_solib_breakpoint_ops.
9072 (_initialize_breakpoint): Register "catch load" and "catch
9073 unload".
9074 * breakpoint.h (handle_solib_event): Declare.
9075 * NEWS: Add entry for "catch load" and "catch unload".
9076
fa864999
TT
90772012-01-24 Tom Tromey <tromey@redhat.com>
9078
9079 * ada-lang.c: Include gdb_vecs.h.
9080 * charset.c: Include gdb_vecs.h.
9081 * tracepoint.h: Include gdb_vecs.h.
9082 * gdb_vecs.h: New file.
9083
f90263c1
TT
90842012-01-24 Pedro Alves <pedro@codesourcery.com>
9085
9086 * breakpoint.c (breakpoint_hit_catch_fork)
9087 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9088 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9089 * infrun.c (inferior_has_forked, inferior_has_vforked)
9090 (inferior_has_execd, inferior_has_called_syscall): Delete.
9091 (handle_syscall_event): Get syscall_number from the execution
9092 control state's wait status.
9093 (wait_for_inferior): Don't clear syscall_number.
9094
09ac7c10
TT
90952012-01-24 Pedro Alves <palves@redhat.com>
9096
9097 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9098 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9099 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9100 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9101 `ws' parameter.
9102 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9103 false for events other than TARGET_SIGNAL_TRAP.
9104 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9105 Add `ws' parameter.
9106 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9107 events other than TARGET_SIGNAL_TRAP.
9108 (tracepoint_breakpoint_hit): Add `ws' parameter.
9109 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9110 parameter.
9111 (bpstat_stop_status): Same.
9112 (pc_at_non_inline_function): Same.
9113 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9114 to pass the current event's waitstatus to bpstat_stop_status
9115 and pc_at_non_inline_function.
9116
86eb7e95
JK
91172012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9118
9119 Code cleanup.
9120 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9121 Update the function comment for it.
9122 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9123 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9124 for STREAM.
9125
a9b3a50f
PA
91262012-01-24 Pedro Alves <palves@redhat.com>
9127
9128 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9129 outside `bs->stop' block.
9130 (bpstat_what): Rework bp_shlib_event handling.
9131 (internal_bkpt_check_status): If the breakpoint is a
9132 bp_shlib_event, then set bs->stop and bs->print if
9133 stop_on_solib_events is set.
9134
53fe1783
GB
91352012-01-24 Gary Benson <gbenson@redhat.com>
9136
9137 Delete #if 0'd out code.
9138 * stack.c (print_frame_label_vars): Remove.
9139 (catch_info): Likewise.
9140 (_initialize_stack): Remove "info catch" command.
9141 * NEWS: Mention the above.
9142
49c62f2e
PA
91432012-01-24 Pedro Alves <palves@redhat.com>
9144
9145 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9146 it.
9147 (remote_notice_new_inferior): If the remote end doesn't support
9148 the multiprocess extensions, then the PID is fake.
9149 (add_current_inferior_and_thread): New.
9150 (remote_start_remote): Use it.
9151 (extended_remote_attach_1): Adjust.
9152 (extended_remote_create_inferior_1): Use
9153 add_current_inferior_and_thread.
9154
d0d8b0c6
JK
91552012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9156
9157 Fix watchpoints to be specific for each inferior.
9158 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9159 current_program_space.
9160 * i386-nat.c (i386_inferior_data_cleanup): New.
9161 (i386_inferior_data_get): Replace variable inf_data_local by an
9162 inferior_data call.
9163 (i386_use_watchpoints): Initialize i386_inferior_data.
9164 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9165 specific iterate_over_lwps.
9166
4403d8e9
JK
91672012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9168
9169 Fix watchpoints across inferior fork.
9170 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9171 comment for linux_nat_iterate_watchpoint_lwps.
9172 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9173 linux_nat_iterate_watchpoint_lwps.
9174 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9175 * i386-linux-nat.c (update_debug_registers_callback): Update the
9176 comment for linux_nat_iterate_watchpoint_lwps.
9177 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9178 linux_nat_iterate_watchpoint_lwps.
9179 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9180 * i386-nat.c: Include inferior.h.
9181 (dr_mirror): Remove.
9182 (i386_inferior_data, struct i386_inferior_data)
9183 (i386_inferior_data_get): New.
9184 (i386_debug_reg_state): Use i386_inferior_data_get.
9185 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9186 (i386_insert_watchpoint, i386_remove_watchpoint)
9187 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9188 (i386_remove_hw_breakpoint): New variable state, use
9189 i386_debug_reg_state instead of DR_MIRROR.
9190 * linux-nat.c (delete_lwp): New declaration.
9191 (num_lwps): Move here from downwards.
9192 (delete_lwp_cleanup): New.
9193 (linux_child_follow_fork): Create new child_lp, call
9194 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9195 PTRACE_DETACH.
9196 (num_lwps): Move upwards.
9197 (linux_nat_iterate_watchpoint_lwps): New.
9198 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9199 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9200
2992c9a7 92012012-01-24 Joel Brobecker <brobecker@adacore.com>
9202
9203 GDB 7.4 released.
9204
e360902b
PA
92052012-01-23 Pedro Alves <palves@redhat.com>
9206
9207 * top.c (caution): Rename to ...
9208 (confirm): ... this.
9209 (show_caution): Rename to ...
9210 (show_confirm): ... this.
9211 (quit_cover): Adjust.
9212 (init_main): Adjust.
9213 * top.h (caution): Rename to ...
9214 (confirm): ... this.
9215 * utils.c (internal_vproblem, defaulted_query): Adjust.
9216
050a2e1d
PA
92172012-01-23 Pedro Alves <palves@redhat.com>
9218
9219 * top.c (caution): Update comment.
9220 (execute_command): Don't consider the current value of `caution'.
9221
77a35dd8
JK
92222012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9223
9224 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9225
a71b5a38
UW
92262012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9227
9228 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9229 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9230 * target.c (target_fileio_pwrite): Remove buffer address from
9231 debug output.
9232 (target_fileio_pread): Likewise.
9233
d99bd577
UW
92342012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9235
9236 * NEWS: Document remote "info proc" and "generate-core-file".
9237
35c2fab7
UW
92382012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9239
9240 * gdbarch.sh (find_memory_regions): New callback.
9241 * gdbarch.c, gdbarch.h: Regenerate.
9242
9243 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9244 callback before falling back to target method.
9245
9246 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9247 (linux_target_install_ops): No longer install it.
9248
9249 * linux-tdep.c (linux_find_memory_regions): New function.
9250 (linux_init_abi): Install it.
9251
6432734d
UW
92522012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9253
9254 * gdbarch.sh (make_corefile_notes): New architecture callback.
9255 * gdbarch.c: Regenerate.
9256 * gdbarch.h: Likewise.
9257
9258 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9259 before target_make_corefile_notes. If NULL is returned, the
9260 target does not support core file generation.
9261
9262 * linux-nat.c: Include "linux-tdep.h".
9263 (find_signalled_thread, find_stop_signal): Remove.
9264 (linux_nat_do_thread_registers): Likewise.
9265 (struct linux_nat_corefile_thread_data): Likewise.
9266 (linux_nat_corefile_thread_callback): Likewise.
9267 (iterate_over_spus): Likewise.
9268 (struct linux_spu_corefile_data): Likewise.
9269 (linux_spu_corefile_callback): Likewise.
9270 (linux_spu_make_corefile_notes): Likewise.
9271 (linux_nat_collect_thread_registers): New function.
9272 (linux_nat_make_corefile_notes): Replace contents by call to
9273 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9274 as native-only callback.
9275
9276 * linux-tdep.h: Include "bfd.h".
9277 (struct regcache): Add forward declaration.
9278 (linux_collect_thread_registers_ftype): New typedef.
9279 (linux_make_corefile_notes): Add prototype.
9280 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9281 "regset.h", and "elf-bfd.h".
9282 (find_signalled_thread, find_stop_signal): New functions.
9283 (linux_spu_make_corefile_notes): Likewise.
9284 (linux_collect_thread_registers): Likewise.
9285 (struct linux_corefile_thread_data): New data structure.
9286 (linux_corefile_thread_callback): New funcion.
9287 (linux_make_corefile_notes): Likewise.
9288 (linux_make_corefile_notes_1): Likewise.
9289 (linux_init_abi): Install it.
9290
3030c96e
UW
92912012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9292
9293 * gdbarch.sh (info_proc): New callback.
9294 * gdbarch.c, gdbarch.h: Regenerate.
9295
9296 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9297 before falling back to the target info_proc callback.
9298
9299 * linux-nat.c: Do not include "cli/cli-utils.h".
9300 (linux_nat_info_proc): Remove.
9301 (linux_target_install_ops): No longer install it.
9302
9303 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9304 (read_mapping): New function.
9305 (linux_info_proc): Likewise.
9306 (linux_init_abi): Install it.
9307
145b16a9
UW
93082012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9309
9310 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9311 * infcmd.c: (info_proc_cmd_1): New function.
9312 (info_proc_cmd): New function, moved here from equivalent routine
9313 orignally in linux-nat.c.
9314 (info_proc_cmd_mappings): Likewise.
9315 (info_proc_cmd_stat): Likewise.
9316 (info_proc_cmd_status): Likewise.
9317 (info_proc_cmd_cwd): Likewise.
9318 (info_proc_cmd_cmdline): Likewise.
9319 (info_proc_cmd_exe): Likewise.
9320 (info_proc_cmd_all): Likewise.
9321 (_initialize_infcmd): Install "info proc" command and subcommands.
9322
9323 * target.h (struct target_ops): Add to_info_proc.
9324 (target_info_proc): Add prototype.
9325 * target.c (target_info_proc): New function.
9326
9327 * procfs.c (procfs_info_proc): Add prototype.
9328 (info_proc_cmd): Rename into ...
9329 (procfs_info_proc): ... this. Update argument types as appropriate
9330 for a to_info_proc implementation. Handle "what" argument.
9331 (procfs_target): Install procfs_info_proc.
9332 (_initialize_procfs): No longer install "info proc" command.
9333
9334 * linux-nat.c: (enum info_proc_what): Remove.
9335 (linux_nat_info_proc_cmd_1): Rename into ...
9336 (linux_nat_info_proc): ... this. Update argument types as appropriate
9337 for a to_info_proc implementation.
9338 (linux_nat_info_proc_cmd): Remove.
9339 (linux_nat_info_proc_cmd_mappings): Likewise.
9340 (linux_nat_info_proc_cmd_stat): Likewise.
9341 (linux_nat_info_proc_cmd_status): Likewise.
9342 (linux_nat_info_proc_cmd_cwd): Likewise.
9343 (linux_nat_info_proc_cmd_cmdline): Likewise.
9344 (linux_nat_info_proc_cmd_exe): Likewise.
9345 (linux_nat_info_proc_cmd_all): Likewise.
9346 (linux_target_install_ops): Install linux_nat_info_proc.
9347 (_initialize_linux_nat): No longer install "info proc" command
9348 and subcommands.
9349
b9e7b9c3
UW
93502012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9351
9352 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9353 * config.in, configure: Regenerate.
9354
9355 * target.h (struct target_ops): Add to_fileio_readlink.
9356 (target_fileio_readlink): Add prototype.
9357 * target.c (target_fileio_readlink): New function.
9358
9359 * inf-child.c: Conditionally include <sys/param.h>.
9360 (inf_child_fileio_readlink): New function.
9361 (inf_child_target): Install it.
9362
9363 * remote.c (PACKET_vFile_readlink): New enum value.
9364 (remote_hostio_readlink): New function.
9365 (init_remote_ops): Install it.
9366 (_initialize_remote): Handle vFile:readlink packet type.
9367
7313baad
UW
93682012-01-20 Pedro Alves <palves@redhat.com>
9369 Ulrich Weigand <ulrich.weigand@linaro.org>
9370
9371 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9372 * config.in, configure: Regenerate.
9373
9374 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9375 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9376 (target_fileio_open): Add prototype.
9377 (target_fileio_pwrite): Likewise.
9378 (target_fileio_pread): Likewise.
9379 (target_fileio_close): Likewise.
9380 (target_fileio_unlink): Likewise.
9381 (target_fileio_read_alloc): Likewise.
9382 (target_fileio_read_stralloc): Likewise.
9383
9384 * target.c: Include "gdb/fileio.h".
9385 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9386 (default_fileio_target): New function.
9387 (target_fileio_open): Likewise.
9388 (target_fileio_pwrite): Likewise.
9389 (target_fileio_pread): Likewise.
9390 (target_fileio_close): Likewise.
9391 (target_fileio_unlink): Likewise.
9392 (target_fileio_close_cleanup): Likewise.
9393 (target_fileio_read_alloc_1): Likewise.
9394 (target_fileio_read_alloc): Likewise.
9395 (target_fileio_read_stralloc): Likewise.
9396
9397 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9398 <fcntl.h>, and <unistd.h>.
9399 (inf_child_fileio_open_flags_to_host): New function.
9400 (inf_child_errno_to_fileio_error): Likewise.
9401 (inf_child_fileio_open): Likewise.
9402 (inf_child_fileio_pwrite): Likewise.
9403 (inf_child_fileio_pread): Likewise.
9404 (inf_child_fileio_close): Likewise.
9405 (inf_child_fileio_unlink): Likewise.
9406 (inf_child_target): Install to_fileio routines.
9407
9408 * remote.c (init_remote_ops): Install to_fileio routines.
9409
901f9912
UW
94102012-01-20 Pedro Alves <palves@redhat.com>
9411 Ulrich Weigand <ulrich.weigand@linaro.org>
9412
9413 * remote.c (remote_multi_process_p): Only check for multi-process
9414 protocol feature, do not check for extended protocol.
9415 (remote_supports_multi_process): Check for extended protocol here.
9416 (set_general_process): Likewise.
9417 (extended_remote_kill): Likewise.
9418 (remote_pid_to_str): Likewise.
9419 (remote_query_supported): Always query multiprocess mode.
9420
e714e1bf
UW
94212012-01-20 Pedro Alves <palves@redhat.com>
9422 Ulrich Weigand <ulrich.weigand@linaro.org>
9423
9424 * inferior.h (struct inferior): Add fake_pid_p.
9425 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9426 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9427 magic_null_ptid since the remote side doesn't provide a real PID.
9428
50897289
TT
94292012-01-19 Tom Tromey <tromey@redhat.com>
9430
9431 * NEWS: Combine the two Python sections.
9432
1afc2033
JK
94332012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9434
9435 * target.h (target_close): Update comment on the target's unpush state.
9436
305436e0
PA
94372012-01-19 Pedro Alves <palves@redhat.com>
9438
9439 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9440 linux_nat_async directly instead of going through the target
9441 vector.
9442 * target.c (unpush_target): Close target after unpushing it, not
9443 before.
9444
49323895
GB
94452012-01-19 Gary Benson <gbenson@redhat.com>
9446
9447 * mdebugread.c (sort_blocks): Replace integer constants with ones
9448 derived from FIRST_LOCAL_BLOCK.
9449
1db33378
PP
94502012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9451 Jan Kratochvil <jan.kratochvil@redhat.com>
9452
9453 PR gdb/9538
9454 * symfile.c (find_separate_debug_file): New function.
9455 (terminate_after_last_dir_separator): Likewise.
9456 (find_separate_debug_file_by_debuglink): Also try realpath.
9457 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9458 * configure: Regenerate.
9459 * config.in: Regenerate.
9460
f83d8a90
DE
94612012-01-18 Doug Evans <dje@google.com>
9462
9463 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9464 (main.o): Remove rule.
9465 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9466 (--with-sysroot): Rewrite.
9467 * configure: Regenerate.
9468 * config.in: Regenerate.
9469
2dbca4d6
SDJ
94702012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9471
9472 * parse.c (initialize_expout): New function.
9473 (reallocate_expout): Likewise.
9474 (parse_exp_in_context): Use `initialize_expout' and
9475 `reallocate_expout' when appropriate.
9476
0695b514
PA
94772012-01-18 Pedro Alves <palves@redhat.com>
9478
9479 * record.c (struct record_breakpoint, record_breakpoint_p)
9480 (record_breakpoints): New.
9481 (record_insert_breakpoint, record_remove_breakpoint): Manage
9482 record breakpoints list. Only remove breakpoints from the
9483 inferior if they had been inserted there in the first place.
9484
136e1c30
DE
94852012-01-17 Doug Evans <dje@google.com>
9486
9487 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9488 if we know we don't have a file name to look for.
9489
c0bf857d
PA
94902012-01-17 Pedro Alves <palves@redhat.com>
9491
9492 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9493 the frame's stop reason is UNWIND_UNAVAILABLE.
9494
b486de60
JK
94952012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9496
9497 Fix compilation error.
9498 * m2-exp.y (yyerror): Use ANSI C prototype.
9499
d04550a6
SDJ
95002012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9501
9502 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9503 (growbuf_by_size): Likewise.
9504 (yyerror): Likewise.
9505 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9506 (modblock): Remove variable (was #if 0'ed).
9507 (parse_number): Convert prototype from K&R to ANSI C.
9508 (yyerror): Likewise.
9509 * objc-exp.y (parse_number): Likewise.
9510 (yyerror): Likewise.
9511 (yylex): Remove #if 0'ed code.
9512 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9513 (yyerror): Likewise.
9514
4aac40c8
TT
95152012-01-16 Tom Tromey <tromey@redhat.com>
9516
9517 * NEWS: Add item.
9518 * symtab.h (compare_filenames_for_search): Declare.
9519 * symtab.c (compare_filenames_for_search): New function.
9520 (iterate_over_some_symtabs): Use it.
9521 * symfile.h (struct quick_symbol_functions)
9522 <map_symtabs_matching_filename>: Change spec.
9523 * psymtab.c (partial_map_symtabs_matching_filename): Use
9524 compare_filenames_for_search. Update for new spec.
9525 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9526 compare_filenames_for_search. Update for new spec.
9527 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9528
cafec441
TT
95292012-01-16 Tom Tromey <tromey@redhat.com>
9530
9531 PR python/13281:
9532 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9533 (struct main_type) <flag_flag_enum>: New field.
9534 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9535 * NEWS: Add entries.
9536 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9537 enums.
9538 * python/lib/gdb/printing.py (_EnumInstance): New class.
9539 (FlagEnumerationPrinter): Likewise.
9540
983af33b
SDJ
95412012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9542
9543 * breakpoint.c (create_sals_from_address_default): New function.
9544 (create_breakpoints_sal_default): Likewise.
9545 (decode_linespec_default): Likewise.
9546 (is_marker_spec): Removed.
9547 (strace_marker_p): New function.
9548 (init_breakpoint_sal): Using `strace_marker_p' instead of
9549 `is_marker_spec'.
9550 (create_breakpoint): Call method `create_sals_from_address' from
9551 breakpoint_ops, replacing code that created SALs conditionally
9552 on the type of the breakpoint. Call method `create_breakpoints_sal',
9553 replacing code that created breakpoints conditionally on the type
9554 wanted.
9555 (base_breakpoint_create_sals_from_address): New function.
9556 (base_breakpoint_create_breakpoints_sal): Likewise.
9557 (base_breakpoint_decode_linespec): Likewise.
9558 (base_breakpoint_ops): Add methods
9559 `base_breakpoint_create_sals_from_address',
9560 `base_breakpoint_create_breakpoints_sal' and
9561 `base_breakpoint_decode_linespec'.
9562 (bkpt_create_sals_from_address): New function.
9563 (bkpt_create_breakpoints_sal): Likewise.
9564 (bkpt_decode_linespec): Likewise.
9565 (tracepoint_create_sals_from_address): Likewise.
9566 (tracepoint_create_breakpoints_sal): Likewise.
9567 (tracepoint_decode_linespec): Likewise.
9568 (strace_marker_create_sals_from_address): Likewise.
9569 (strace_marker_create_breakpoints_sal): Likewise.
9570 (strace_marker_decode_linespec): Likewise.
9571 (strace_marker_breakpoint_ops): New variable.
9572 (addr_string_to_sals): Remove `marker_spec'. Call method
9573 `decode_linespec' from breakpoint_ops, replacing code that decoded
9574 an address string into a SAL. Use `strace_marker_p' instead of
9575 `marker_spec'.
9576 (strace_command): Decide whether we are dealing with a static
9577 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9578 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9579 * breakpoint.h (linespec_result, linespec_sals): New forward
9580 declarations.
9581 (breakpoint_ops) <create_sals_from_address>,
9582 <create_breakpoints_sal>, <decode_linespec>: New methods.
9583
4795f398
DE
95842012-01-14 Doug Evans <dje@google.com>
9585
9586 * NEWS: Update text for "maint set python print-stack".
9587 It is deprecated in gdb 7.4 and deleted in 7.5.
9588
ee5106fe
EZ
95892012-01-13 Eli Zaretskii <eliz@gnu.org>
9590
9591 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9592 including curses.h.
9593
b161e06f
JK
95942012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9595
9596 * configure: Regenerate.
9597 * config.in: Regenerate.
9598
85254831
KS
95992012-01-12 Keith Seitz <keiths@redhat.com>
9600
9601 PR mi/10586
9602 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9603 (ANONYMOUS_UNION_NAME): Define.
9604 (is_path_expr_parent): New function.
9605 (get_path_expr_parent): New function.
9606 (is_anonymous_child): New function.
9607 (create_child_with_value): If the child is anonymous and without
9608 a name, assign an object name to it.
9609 (c_describe_child): Use get_path_expr_parent to determine
9610 the parent expression.
9611 If there field represents an anonymous struct or union and
9612 has no name, set an appropriate display name and expression.
9613 (cplus_describe_child): Likewise.
9614
620fa63a
PA
96152012-01-12 Pedro Alves <palves@redhat.com>
9616
9617 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9618 available when %ebp is found to be zero (outermost).
9619
2efa2c79
AT
96202012-01-11 Andreas Tobler <andreast@fgznet.ch>
9621
9622 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9623 an internal gdb_static_assert.
9624 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9625
88e7d25d
TT
96262012-01-11 Tom Tromey <tromey@redhat.com>
9627
9628 PR gdb/9598:
9629 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9630 catch" and "catch throw".
9631
72384ba3
PH
96322012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9633
9634 * blockframe.c (block_innermost_frame): Start search from selected
9635 frame, if present, or otherwise the current frame.
9636
9637 * c-exp.y (variable): Update innermost_block for
9638 'block COLONCOLON NAME' clause.
9639 * m2-exp.y (variable): Ditto.
9640 * objc-exp.y (variable): Ditto.
9641
065a711f
TT
96422012-01-10 Tom Tromey <tromey@redhat.com>
9643
9644 PR python/13199:
9645 * python/python.c (finish_python_initialization): Set sys.argv.
9646
f3f5162e
DE
96472012-01-10 Doug Evans <dje@google.com>
9648
9649 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9650 "want_line_info". All callers updated.
9651 (dwarf_decode_lines_1): New function.
9652 (handle_DW_AT_stmt_list): Add function comment.
9653 New arg "want_line_info". All callers updated.
9654 (read_file_scope,read_type_unit_scope): Move comment from
9655 handle_DW_AT_stmt_list to here.
9656
9934703b
JK
96572012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9658
9659 Fix regression after libiberty/ update for GCC PR 6057 and others.
9660 * c-exp.y (operator) <OPERATOR DELETE>
9661 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9662 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9663 (make_builtin_type, make_name): New variable i, add gdb_assert.
9664 (operator) <OPERATOR NEW>: Update ARGS to 3.
9665 (operator) <OPERATOR DELETE>: Add trailing space.
9666 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9667 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9668 * cp-support.c (cp_canonicalize_string): Check NULL from
9669 cp_comp_to_string, call warning and return.
9670
06b9f45f
JK
96712012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9672
9673 Fix duplicate .o files after omitting libbfd.a.
9674 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9675 (SFILES): Add corelow.c.
9676 (COMMON_OBS): Add corelow.o.
9677 (ALLDEPFILES): Remove corelow.c.
9678 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9679 * config/alpha/alpha-osf3.mh: Likewise.
9680 * config/alpha/fbsd.mh: Likewise.
9681 * config/arm/nbsdaout.mh: Likewise.
9682 * config/arm/nbsdelf.mh: Likewise.
9683 * config/i386/i386gnu.mh: Likewise.
9684 * config/ia64/hpux.mh: Likewise.
9685 * config/ia64/linux.mh: Likewise.
9686 * config/m32r/linux.mh: Likewise.
9687 * config/m68k/linux.mh: Likewise.
9688 * config/mips/irix5.mh: Likewise.
9689 * config/mips/irix6.mh: Likewise.
9690 * config/pa/hpux.mh: Likewise.
9691 * config/pa/linux.mh: Likewise.
9692 * config/powerpc/aix.mh: Likewise.
9693 * config/sparc/linux.mh: Likewise.
9694 * config/sparc/linux64.mh: Likewise.
9695 * config/sparc/sol2.mh: Likewise.
9696 * config/vax/vax.mh: Likewise.
9697 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9698 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9699 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9700 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9701 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9702 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9703 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9704 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9705 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9706 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9707 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9708 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9709 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9710 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9711 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9712 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9713 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9714 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9715 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9716 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9717 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9718 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9719 corelow.o from gdb_target_obs.
9720 * corefile.c (core_target): Update the comment on NULL value.
9721 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9722 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9723 MATCHES. Drop YUMMY set on NULL.
9724 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9725 reclaim CORE_DATA if it is already NULL.
9726
34365054
DE
97272012-01-09 Doug Evans <dje@google.com>
9728
9729 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9730 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9731
696166a3
KS
97322012-01-09 Keith Seitz <keiths@redhat.com>
9733
9734 * breakpoint.c (wrapper.h): Don't include.
9735
8e7b59a5
KS
97362012-01-09 Keith Seitz <keiths@redhat.com>
9737
9738 * Makefile.in (SFILES): Remove wrapper.c.
9739 (HFILES_NO_SRCDIR): Remove wrapper.h.
9740 (COMMON_OBS): Remove wrapper.o.
9741 * cli/cli-interp.c: Don't inlude wrapper.h.
9742 * corelow.c: Likewise.
9743 (core_open): Replace gdb_target_find_new_threads with
9744 TRY_CATCH around target_find_new_threads.
9745 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9746 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9747 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9748 evaluate_expression.
9749 (varobj_set_value): Likewise for evaluate_expression and
9750 value_assign.
9751 (install_new_variable): Likewise for value_fetch_lazy.
9752 (adjust_value_for_child_access): Likewise for value_ind.
9753 (c_describe_child): Likewise for value_subscript and
9754 value_ind.
9755 (c_value_of_root): Likewise for evaluate_expression.
9756 * wrapper.c: Remove.
9757 * wrapper.h: Remove.
9758
1a4eeb98
DE
97592012-01-09 Doug Evans <dje@google.com>
9760
9ff913ba
DE
9761 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9762 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9763 "abfd" args with "section". All callers updated.
9764 Error checking code moved ...
9765 (error_check_comp_unit_head): ... here. New function.
9766 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9767 Delete arg "abfd". New arg "type_offset". All callers updated.
9768 (create_debug_types_hash_table): Simplify by using
9769 read_and_check_type_unit_head.
9770
1a4eeb98
DE
9771 * parser-defs.h (namecopy): Delete.
9772 * parse.c (namecopy, namecopy_size): Move into copy_name.
9773
2e6af8c0
JK
97742012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9775
9776 Partially fix duplicate .o files after omitting libbfd.a.
9777 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9778 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9779 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9780 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9781 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9782 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9783 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9784
9f2f828a
PA
97852012-01-09 Pedro Alves <palves@redhat.com>
9786
9787 * MAINTAINERS: Update my email address.
9788
4d72c0bc
DE
97892012-01-08 Doug Evans <dje@google.com>
9790
d467dd73
DE
9791 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9792 n_type_units. Rename type_comp_units to all_type_units.
9793 All uses updated.
9794 (add_signatured_type_cu_to_table): Renamed from
9795 add_signatured_type_cu_to_list. All callers updated.
9796
4d72c0bc
DE
9797 * gdbtypes.h (struct cplus_struct_type): Delete member
9798 nfn_fields_total. All uses removed.
9799
21b2bd31
DE
98002012-01-06 Doug Evans <dje@google.com>
9801
9802 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9803 to top of file.
9804 (dwarf2_find_comp_unit): Delete.
9805 (process_psymtab_comp_unit): Make result "void".
9806 Delete args buffer, info_ptr, buffer_size, and replace with
9807 "section". All callers updated.
9808 (dwarf2_build_psymtabs_hard): Simplify.
9809
bfd189b1
SDJ
98102012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9811 Thiago Jung Bauermann <bauerman@br.ibm.com>
9812
9813 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9814 before `struct gdb_exception'.
9815 * breakpoint.c (update_global_location_list_nothrow)
9816 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9817 * cp-abi.c (value_rtti_type): Likewise.
9818 * cp-support.c (cp_validate_operator): Likewise.
9819 * infrun.c (insert_exception_resume_breakpoint)
9820 (check_exception_resume, keep_going): Likewise.
9821 * mi-interp.c (mi_breakpoint_created)
9822 (mi_breakpoint_modified): Likewise.
9823 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9824 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9825 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9826
6b07635f
DE
98272012-01-05 Doug Evans <dje@google.com>
9828
0b30b85c
DE
9829 * dwarf2read.c (statement_prologue): Delete, unused.
9830
98714339
DE
9831 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9832 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9833
6b07635f
DE
9834 * dwarf2read.c (comp_unit_header): Delete, unused.
9835
761f4555
UW
98362012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9837
9838 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9839 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9840
2ca0b532
PA
98412012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9842
9843 * infrun.c (normal_stop): Don't skip calling the normal_stop
9844 observers if the thread was doing a multi-step, but stopped for
9845 some reason other than stepping.
9846
50aeff07
PA
98472012-01-05 Pedro Alves <alves.ped@gmail.com>
9848
9849 * cli/cli-decode.h: Add comments.
9850 (CMD_LIST_AMBIGUOUS): Moved to command.h
9851 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9852 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9853 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9854 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9855 (add_com, add_com_alias, add_info, add_info_alias)
9856 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9857 declarations.
9858 * command.h: Add and adjust comments.
9859 (CMD_LIST_AMBIGUOUS): Moved here.
9860 (help_cmd, help_cmd_list): Delete declarations.
9861
5953832c
DE
98622012-01-04 Doug Evans <dje@google.com>
9863
e5fe5e75
DE
9864 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9865 All callers updated.
9866 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9867 Replace all arguments with "per_cu". All callers updated.
9868
28dee7f5
DE
9869 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9870
23745b47
DE
9871 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9872 New arg "per_cu". All callers updated.
9873
5953832c
DE
9874 Delete #if 0'd out code.
9875 * language.c (binop_result_type): Delete.
9876 (simple_type, ordered_type, same_type, integral_type): Delete.
9877 (numeric_type, character_type, string_type, boolean_type): Delete.
9878 (float_type, structured_type): Delete.
9879 * language.h: Update.
9880
0f5b7562
TT
98812012-01-04 Tom Tromey <tromey@redhat.com>
9882
9883 * python/py-value.c (valpy_binop): Initialize 'res_val'.
9884
78218f56
JB
98852012-01-04 Joel Brobecker <brobecker@adacore.com>
9886
9887 * corefile.c (close_exec_file): Delete.
9888 (reopen_exec_file): Remove commented out code that seems related
9889 to close_exec_file, which is being deleted here.
9890 * inferior.h (close_exec_file): Delete.
9891 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9892
0fcd72ba
JB
98932012-01-04 Joel Brobecker <brobecker@adacore.com>
9894
9895 * ada-lang.c: #include "cli/cli-utils.h".
9896 (get_selections): Use skip_spaces.
9897 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9898 (catch_ada_exception_command_split): Use skip_spaces.
9899 (ada_decode_assert_location): Likewise.
9900
1dabb4c4
JB
99012012-01-04 Joel Brobecker <brobecker@adacore.com>
9902
9903 * linespec.c (decode_line_internal): Check for C++ or Java
9904 compound constructs only if the current language is C, C++
9905 or Java.
9906
5931a2fa
JK
99072012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 Revert:
9910 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9911 Joel Brobecker <brobecker@adacore.com>
9912 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9913 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9914 3 times.
9915 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9916 fall through into AT_ENTRY_POINT.
9917 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9918 DUMMY_ADDR with it.
9919 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9920 PPC_INSN_SIZE skip to 3 times.
9921
1a2da5ee
JB
99222012-01-04 Joel Brobecker <brobecker@adacore.com>
9923
9924 * linespec.c (add_minsym): Preserve function descriptors.
9925
8645ff69
UW
99262012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9927
9928 * breakpoint.c (all_locations_are_pending): Consider locations
9929 in program spaces executing during startup pending as well.
9930
0b302171
JB
99312012-01-04 Joel Brobecker <brobecker@adacore.com>
9932
9933 Copyright year update in most files of the GDB Project.
9934
8ba098ad
JB
99352012-01-04 Joel Brobecker <brobecker@adacore.com>
9936
9937 * copyright.sh: Delete.
9938 * copyright.py: Rewrite.
9939
09c01c30
JB
99402012-01-04 Joel Brobecker <brobecker@adacore.com>
9941
9942 * gnulib/extra/update-copyright: New file, imported from gnulib.
9943
3c36c0af
JB
99442012-01-04 Joel Brobecker <brobecker@adacore.com>
9945
9946 * README (Copyright and License Notices): New section.
9947
888fe1e1
TT
99482012-01-03 Tom Tromey <tromey@redhat.com>
9949
9950 PR python/12533:
9951 * python/py-value.c (valpy_dereference, valpy_get_address
9952 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
9953 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
9954 (valpy_absolute, valpy_richcompare): Free intermediate values.
9955
6e681866
JB
99562011-01-03 Joel Brobecker <brobecker@adacore.com>
9957
9958 * ada-lang.c: Reformat the copyright notice.
9959
0cd09acb
JK
99602012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9961
9962 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
9963 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
9964 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9965 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
9966 Revert this part of:
9967 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9968 Build gdb directly from *.o files not using libgdb.a.
9969 * Makefile.in (COMMON_OBS): Remove solib-target.o.
9970
12c3e59c
JB
99712012-01-02 Joel Brobecker <brobecker@adacore.com>
9972
9973 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
9974 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
9975 Reformat the copyright header.
9976
11bf1490
JK
99772012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9978
9979 Revert this part of:
9980 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9981 Remove the gdbtui binary.
9982 * gdb.c (main): Remove args.interpreter_p initialization.
9983 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9984 * main.h (struct captured_main_args): Remove interpreter_p.
9985
1fef196f
JB
99862012-01-02 Joel Brobecker <brobecker@adacore.com>
9987
9988 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
9989
67827812
JB
99902012-01-02 Joel Brobecker <brobecker@adacore.com>
9991
9992 * top.c (print_gdb_version): Update copyright year.
9993
a4d0b831
YQ
99942012-01-02 Yao Qi <yao@codesourcery.com>
9995
9996 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
9997
b5914469
JK
99982012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9999 Joel Brobecker <brobecker@adacore.com>
10000
10001 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10002 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10003 3 times.
10004 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10005 fall through into AT_ENTRY_POINT.
10006 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10007 DUMMY_ADDR with it.
10008 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10009 PPC_INSN_SIZE skip to 3 times.
10010
8da828f7
JK
100112012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10012
10013 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10014 the return value.
10015 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10016
8574e74b
JK
100172012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10018
10019 Build gdb directly from *.o files not using libgdb.a.
10020 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10021 (COMMON_OBS): Remove solib-target.o.
10022 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10023 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10024 (LIBGDB_OBS, libgdb.a): Move it above.
10025 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10026 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10027 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10028 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10029 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10030 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10031 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10032 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10033 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10034 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10035 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10036 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10037 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10038 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10039 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10040 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10041 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10042 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10043 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10044 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10045 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10046 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10047 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10048 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10049 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10050 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10051 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10052
217bff3e
JK
100532012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10054
10055 Remove the gdbtui binary.
10056 * .gitignore (/gdbtui): Remove.
10057 * Makefile.in (TUI): Remove.
10058 (SUBDIR_TUI_OBS): Remove tui-main.o.
10059 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10060 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10061 (tui-main.o): Remove.
10062 (all_object_files): Remove tui-main.o.
10063 * NEWS: New note for the gdbtui removal.
10064 * configure: Rebuilt.
10065 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10066 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10067 CONFIG_UNINSTALL respectively.
10068 * gdb.c (main): Remove args.interpreter_p initialization.
10069 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10070 * main.h (struct captured_main_args): Remove interpreter_p.
10071 * tui/tui-main.c: Remove.
10072
9cdd5dbd
DE
100732012-01-01 Doug Evans <dje@google.com>
10074
bb5ed363
DE
10075 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10076 (dwarf2_physname, read_import_statement): Ditto.
10077 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10078 (process_structure_scope read_subroutine_type): Ditto.
10079 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10080 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10081 (dwarf2_fetch_die_location_block): Ditto.
10082 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10083
a0f42c21
DE
10084 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10085 All callers updated.
10086 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10087 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10088 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10089
2dc860c0
DE
10090 * dwarf2read.c (load_cu): Move assert to more useful location.
10091
68dc6402
DE
10092 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10093 All callers updated.
10094
9cdd5dbd
DE
10095 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10096 (dwarf2_elf_names): Minor reformat.
10097 (dwarf2_per_cu_data): Tweak comment.
10098 (dwarf2_read_section): Fix comment.
10099 (create_all_comp_units): Fix comment.
10100 (load_full_comp_unit): Fix comment.
10101 (process_full_comp_unit): Fix comment.
10102 (read_signatured_type): Fix comment.
10103
0c10e53e 10104For older changes see ChangeLog-2011.
c906108c
SS
10105\f
10106Local Variables:
10107mode: change-log
10108left-margin: 8
10109fill-column: 74
10110version-control: never
57da7796 10111coding: utf-8
c906108c 10112End:
This page took 1.815255 seconds and 4 git commands to generate.