PR gdb/15102:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-18 Tom Tromey <tromey@redhat.com>
2
3 PR gdb/15102:
4 * dwarf2read.c (read_subrange_type): Use result of
5 'check_typedef'.
6
7 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
8
9 * frame.c: Remove one extra white space after #include
10 directive.
11
12 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13
14 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
15
16 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17
18 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
19 and dir commands into an if block.
20
21 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
22
23 * python/py-breakpoint (struct pybp_code): Use int instead of
24 enum type_code.
25
26 2013-02-15 Pedro Alves <pedro@codesourcery.com>
27 Hafiz Abid Qadeer <abidh@codesourcery.com>
28
29 * NEWS: Mention new field "trace-file".
30 * tracepoint.c (trace_status_mi): Output "trace-file" field.
31 (tfile_open): Record the trace file's filename in the trace
32 status.
33 (tfile_files_info): Mention the name of the trace file.
34 Check the "filename" field explicitely.
35 (trace_status_command): Explicitely check "filename" field.
36 (trace_find_command): Ditto.
37 (trace_find_pc_command): Ditto.
38 (trace_find_tracepoint_command): Ditto.
39 (trace_find_line_command): Ditto.
40 (trace_find_range_command): Ditto.
41 (trace_find_outside_command): Ditto.
42 * tracepoint.h (struct trace_status) <from_file>: Rename it
43 to "filename" and make it hold the trace file's filename
44 instead of a boolean.
45 * remote.c (remote_get_trace_status): Initialize "filename"
46 field with NULL instead of 0.
47
48 2013-02-15 Yao Qi <yao@codesourcery.com>
49
50 * remote.c: Fix a typo.
51
52 2013-02-14 Pierre Muller <muller@sourceware.org>
53
54 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
55
56 2013-02-14 Pedro Alves <palves@redhat.com>
57
58 * utils.c (savestring): Don't #undef it. Move function to
59 common/common-utils.c.
60 * common/common-utils.c: Include gdb_string.h.
61 (savestring): Move here from utils.c.
62 * common/common-utils.h (savestring): Declare.
63
64 2013-02-14 Pedro Alves <palves@redhat.com>
65
66 * utils.c (savestring): Rename parameter 'size' to 'len'.
67
68 2013-02-14 Pedro Alves <palves@redhat.com>
69 Yufeng Zhang <yufeng.zhang@arm.com>
70
71 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
72 (aarch64_inferior_data, struct aarch64_inferior_data):
73 Delete.
74 (struct aarch64_process_info): New.
75 (aarch64_process_list): New global.
76 (aarch64_find_process_pid, aarch64_add_process)
77 (aarch64_process_info_get): New functions.
78 (aarch64_inferior_data_get): Delete.
79 (aarch64_process_info_get): New function.
80 (aarch64_forget_process): New function.
81 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
82 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
83 aarch64_get_debug_reg_state.
84 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
85 instead of linux_nat_iterate_watchpoint_lwps.
86 (aarch64_linux_new_fork): New function.
87 (aarch64_linux_child_post_startup_inferior): Use
88 aarch64_forget_process instead of aarch64_init_debug_reg_state.
89 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
90 (aarch64_linux_remove_hw_breakpoint)
91 (aarch64_handle_aligned_watchpoint)
92 (aarch64_handle_unaligned_watchpoint)
93 (aarch64_linux_insert_watchpoint)
94 (aarch64_linux_remove_watchpoint)
95 (aarch64_linux_stopped_data_address): Adjust to pass the current
96 process id to aarch64_debug_reg_state.
97 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
98 linux_nat_new_fork hook, and aarch64_forget_process as
99 linux_nat_forget_process hook; remove the call to
100 register_inferior_data_with_cleanup.
101
102 2013-02-14 Pedro Alves <palves@redhat.com>
103
104 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
105 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
106 lval_memory.
107
108 2013-02-14 Pedro Alves <pedro@codesourcery.com>
109 Hafiz Abid Qadeer <abidh@codesourcery.com>
110
111 * tracepoint.h (validate_trace_state_variable_name): Declare.
112 * tracepoint.c (validate_trace_state_variable_name): New.
113 (trace_variable_command): Parse the trace state variable's name
114 without using parse_expression. Do several validations.
115 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
116 trace state variable's name with parse_expression. Validate it.
117
118 2013-02-14 Yao Qi <yao@codesourcery.com>
119
120 * infcmd.c (breakpoint_proceeded): Remove it.
121
122 2013-02-14 Yao Qi <yao@codesourcery.com>
123
124 * tracepoint.c (end_actions_pseudocommand): Make it static.
125 (while_stepping_pseudocommand): Likewise.
126 * tracepoint.h (end_actions_pseudocommand): Remove the
127 declaration.
128 (while_stepping_pseudocommand): Likewise.
129
130 2013-02-14 Yao Qi <yao@codesourcery.com>
131
132 * cli/cli-decode.c (help_cmd): Remove the declaration of
133 "cmdlist".
134 (help_all): Likewise.
135
136 2013-02-13 Pedro Alves <palves@redhat.com>
137
138 * amd64-linux-nat.c (update_debug_registers_callback):
139 Update comment.
140 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
141 iterate_over_lwps.
142 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
143 i386_debug_reg_state.
144 (amd64_linux_new_fork): New function.
145 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
146 linux_nat_new_fork hook, and i386_forget_process as
147 linux_nat_forget_process hook.
148 * i386-linux-nat.c (update_debug_registers_callback):
149 Update comment.
150 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
151 iterate_over_lwps.
152 (i386_linux_prepare_to_resume): Pass the lwp's pid to
153 i386_debug_reg_state.
154 (i386_linux_new_fork): New function.
155 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
156 linux_nat_new_fork hook, and i386_forget_process as
157 linux_nat_forget_process hook.
158 * i386-nat.c (i386_init_dregs): Delete.
159 (i386_inferior_data, struct i386_inferior_data):
160 Delete.
161 (struct i386_process_info): New.
162 (i386_process_list): New global.
163 (i386_find_process_pid, i386_add_process, i386_process_info_get):
164 New functions.
165 (i386_inferior_data_get): Delete.
166 (i386_process_info_get): New function.
167 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
168 (i386_forget_process): New function.
169 (i386_cleanup_dregs): Rewrite.
170 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
171 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
172 (i386_stopped_data_address, i386_insert_hw_breakpoint)
173 (i386_remove_hw_breakpoint): Adjust to pass the current process id
174 to i386_debug_reg_state.
175 (i386_use_watchpoints): Don't register inferior data.
176 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
177 adjust comment.
178 (i386_forget_process): Declare.
179 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
180 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
181 New static globals.
182 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
183 (add_initial_lwp): New, factored out from ...
184 (add_lwp): ... this. Don't check the number of lwps before
185 calling linux_nat_new_thread.
186 (linux_nat_iterate_watchpoint_lwps): Delete.
187 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
188 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
189 forks and vforks.
190 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
191 initial lwp.
192 (linux_nat_kill, linux_nat_mourn_inferior): Call
193 linux_nat_forget_process.
194 (linux_nat_set_new_fork, linux_nat_set_forget_process)
195 (linux_nat_forget_process): New functions.
196 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
197 type.
198 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
199 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
200 types.
201 (linux_nat_set_new_fork, linux_nat_set_forget_process)
202 (linux_nat_forget_process): New declarations.
203
204 * amd64fbsd-nat.c (super_mourn_inferior): New global.
205 (amd64fbsd_mourn_inferior): New function.
206 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
207 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
208
209 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
210
211 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
212 Adding _().
213
214 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
215
216 * aarch64-linux-nat.c (debug_reg_change_callback)
217 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
218 %s and phex().
219
220 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
221
222 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
223 with LONGEST.
224
225 2013-02-13 Pedro Alves <palves@redhat.com>
226 Hafiz Abid Qadeer <abidh@codesourcery.com>
227
228 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
229
230 2013-02-12 Tom Tromey <tromey@redhat.com>
231
232 PR symtab/11464:
233 * c-exp.y (lex_one_token): Initialize other fields of yylval on
234 NAME return.
235 (classify_inner_name): Remove 'first_name' argument, add
236 'context'. Remove unused variable.
237 (yylex): Explicitly maintain the context type. Exit loop earlier
238 if NAME result is seen.
239
240 2013-02-12 Pedro Alves <palves@redhat.com>
241
242 * amd64-darwin-tdep.c: Add (C) after Copyright.
243 * cli/cli-cmds.h: Ditto.
244 * cli/cli-decode.c: Ditto.
245 * cli/cli-decode.h: Ditto.
246 * cli/cli-dump.c: Ditto.
247 * cli/cli-dump.h: Ditto.
248 * cli/cli-interp.c: Ditto.
249 * cli/cli-logging.c: Ditto.
250 * cli/cli-script.c: Ditto.
251 * cli/cli-script.h: Ditto.
252 * cli/cli-setshow.c: Ditto.
253 * cli/cli-setshow.h: Ditto.
254 * cli/cli-utils.c: Ditto.
255 * cli/cli-utils.h: Ditto.
256 * config/alpha/nm-osf3.h: Ditto.
257 * config/djgpp/djconfig.sh: Ditto.
258 * config/i386/nm-fbsd.h: Ditto.
259 * config/i386/nm-i386gnu.h: Ditto.
260 * config/nm-linux.h: Ditto.
261 * config/nm-nto.h: Ditto.
262 * config/rs6000/nm-rs6000.h: Ditto.
263 * config/sparc/nm-sol2.h: Ditto.
264 * darwin-nat-info.c: Ditto.
265 * dfp.c: Ditto.
266 * dfp.h: Ditto.
267 * gdb-demangle.h: Ditto.
268 * i386-darwin-nat.c: Ditto.
269 * i386-darwin-tdep.c: Ditto.
270 * linux-fork.h: Ditto.
271 * m32c-tdep.c: Ditto.
272 * microblaze-linux-tdep.c: Ditto.
273 * microblaze-rom.c: Ditto.
274 * microblaze-tdep.c: Ditto.
275 * microblaze-tdep.h: Ditto.
276 * mips-linux-tdep.h: Ditto.
277 * ppc-ravenscar-thread.c: Ditto.
278 * ppc-ravenscar-thread.h: Ditto.
279 * prologue-value.c: Ditto.
280 * prologue-value.h: Ditto.
281 * ravenscar-thread.c: Ditto.
282 * ravenscar-thread.h: Ditto.
283 * sparc-ravenscar-thread.c: Ditto.
284 * sparc-ravenscar-thread.h: Ditto.
285 * tilegx-linux-tdep.c: Ditto.
286 * unwind_stop_reasons.def: Ditto.
287 * windows-nat.h: Ditto.
288 * xtensa-linux-tdep.c: Ditto.
289 * xtensa-xtregs.c: Ditto.
290 * regformats/regdat.sh: Ditto.
291 * regformats/regdef.h: Ditto.
292
293 2013-02-12 Pedro Alves <palves@redhat.com>
294
295 * break-catch-sig.c: Update copyright years.
296
297 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
298
299 Add support for a destructor for ui_out data and use it to
300 provide a ui_out destructor.
301 * ui-out.h: Declare the new ui_out destructor.
302 (ui_out_impl): Add a field for data destructor in ui_out_impl.
303 * ui-out.c (default_data_destroy): Add a default data destructor
304 which does nothing.
305 (default_ui_out_impl): Set the new data_destroy field to
306 default_data_destroy
307 (uo_data_destroy): Local function which invokes the data
308 destructor if present.
309 (clear_table): Local function which clears the table data of a
310 ui_out object.
311 (ui_out_destroy): Public function which frees a ui_out object.
312 (ui_out_table_end): Use the new clear_table function.
313 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
314 NULL.
315 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
316 to NULL.
317
318 2013-02-11 Doug Evans <dje@google.com>
319
320 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
321 (printf_decfloat): New function. Broken out from ui_printf.
322 Remove unnecessary code to shift the entire format string down.
323 (printf_pointer): New function.
324 (ui_printf): Code to print C strings, wide C strings, decfloats,
325 and pointers moved to separate functions.
326
327 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
328
329 * valops.c (value_assign): Handling bitfield offset in
330 `lval_internalvar_component' case.
331
332 2013-02-08 Doug Evans <dje@google.com>
333
334 * common/format.c (parse_format_string): Fix whitespace.
335
336 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
337
338 * stack.c (return_command): Work around uninitialized variable
339 warning.
340
341 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
342
343 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
344 number of the registers from 36 to 34.
345
346 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
347
348 * NEWS: Mention new AArch64 native and target support.
349
350 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
351
352 * MAINTAINERS (Write After Approval): Add myself.
353
354 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
355 Marcus Shawcroft <marcus.shawcroft@arm.com>
356 Nigel Stephens <nigel.stephens@arm.com>
357 Yufeng Zhang <yufeng.zhang@arm.com>
358
359 * aarch64-linux-nat.c: New file.
360 * config/aarch64/linux.mh: New file.
361 * configure.host: Add AArch64.
362 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
363
364 2013-02-07 Doug Evans <dje@google.com>
365
366 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
367 disassemble command.
368
369 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
370
371 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
372 set_gdbarch_fetch_tls_load_module_address.
373
374 2013-02-06 David S. Miller <davem@davemloft.net>
375
376 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
377 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
378 * value.c (struct_return_convention): New function.
379 (using_struct_return): Implement in terms of struct_return_convention.
380 * value.h (struct_return_convention): Declare.
381 * stack.c (return_command): Allow successful overriding of the return
382 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
383
384 2013-02-06 Tom Tromey <tromey@redhat.com>
385
386 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
387 outside of TRY_CATCH.
388
389 2013-02-06 Yao Qi <yao@codesourcery.com>
390
391 * mi/mi-interp.c: Include "tracepoint.h".
392 (mi_tsv_modified): Declare.
393 (mi_tsv_created, mi_tsv_deleted): Update declaration.
394 (mi_interpreter_init): Call observer_attach_tsv_modified.
395 (mi_tsv_modified): New.
396 (mi_tsv_created, mi_tsv_deleted): Update.
397 * tracepoint.c (trace_variable_command): Call
398 observer_notify_tsv_modified if the initial value of tsv is
399 changed.
400 (delete_trace_state_variable): Call
401 observer_notify_tsv_deleted earlier.
402 (trace_variable_command): Caller update.
403 (create_tsv_from_upload): Likewise.
404 * observer.sh: Declare "struct trace_state_variable".
405
406 * NEWS: Mention the new MI notification "=tsv-modified".
407
408 2013-02-05 Doug Evans <dje@google.com>
409
410 * completer.c (location_completer): Fix typo in comment.
411
412 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
413
414 * breakpoint.c (add_location_to_breakpoint): Insert the location with
415 ADDRESS sorted.
416
417 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
418
419 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
420 Refactor if statement to avoid trailing || operator.
421
422 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
423
424 * NEWS: Add PowerPC FreeBSD as a new native configuration.
425
426 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
427
428 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
429 * configure.host: Add powerpc*-*-freebsd* target.
430 * configure.tgt: Add target info for powerpc*-*-freebsd*.
431 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
432 * config/powerpc/fbsd.mh: New file.
433
434 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
435 Denys Vlasenko <dvlasenk@redhat.com>
436 Pedro Alves <palves@redhat.com>
437
438 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
439 (struct elf_internal_linux_prpsinfo): Forward declare.
440 * gdbarch.h, gdbarch.c: Regenerate.
441 * linux-tdep.c: Include `cli/cli-utils.h'.
442 (linux_fill_prpsinfo): New function.
443 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
444 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
445 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
446 depending on gdbarch pointer bitness.
447 * ppc-linux-tdep.c: Include elf-bfd.h.
448 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
449 on 32-bit.
450
451 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
452 Marcus Shawcroft <marcus.shawcroft@arm.com>
453 Nigel Stephens <nigel.stephens@arm.com>
454 Yufeng Zhang <yufeng.zhang@arm.com>
455
456 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
457
458 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
459 Marcus Shawcroft <marcus.shawcroft@arm.com>
460 Nigel Stephens <nigel.stephens@arm.com>
461 Yufeng Zhang <yufeng.zhang@arm.com>
462
463 * aarch64-newlib-tdep.c: New file.
464 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
465 aarch64*-*-elf.
466 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
467 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
468 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
469 * osabi.c (gdb_osabi_names): Add "Newlib".
470
471 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
472 Marcus Shawcroft <marcus.shawcroft@arm.com>
473 Nigel Stephens <nigel.stephens@arm.com>
474 Yufeng Zhang <yufeng.zhang@arm.com>
475
476 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
477 (ALLDEPFILES): Add aarch64-linux-tdep.c.
478 * aarch64-linux-tdep.c: New file.
479 * aarch64-linux-tdep.h: New file.
480 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
481 * configure.tgt: Add aarch64-none-linux-gnu.
482
483 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
484 Marcus Shawcroft <marcus.shawcroft@arm.com>
485 Nigel Stephens <nigel.stephens@arm.com>
486 Yufeng Zhang <yufeng.zhang@arm.com>
487
488 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
489 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
490 (ALLDEPFILES): Add aarch64-tdep.c.
491 * aarch64-tdep.c: New file.
492 * aarch64-tdep.h: New file.
493 * configure.tgt: Add AArch64.
494 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
495 (aarch64-expedite): New definition.
496 * features/aarch64-core.xml: New file.
497 * features/aarch64-fpu.xml: New file.
498 * features/aarch64-without-fpu.c: New file (generated).
499 * features/aarch64-without-fpu.xml: New file.
500 * features/aarch64.c: New file (generated).
501 * features/aarch64.xml: New file.
502 * regformats/aarch64-without-fpu.dat: New file (generated).
503 * regformats/aarch64.dat: New file (generated).
504
505 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
506
507 * contrib/expect-read1.c: New file.
508 * contrib/expect-read1.sh: New file.
509
510 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
511
512 * dwarf2read.c (file_file_name): New function with code from
513 file_full_name.
514 (file_full_name): Move most of the code to file_file_name.
515 (macro_start_file): Rename variable full_name to file_name and use
516 file_file_name for it. Add comp_dir parameter to new_macro_table.
517 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
518 macro_source_file->filename access by macro_source_fullname call.
519 * macroscope.c (_initialize_macroscope): Update the new_macro_table
520 caller.
521 * macrotab.c (struct macro_table): New field comp_dir.
522 (macro_include): New variables link_fullname and source_fullname.
523 Replace any macro_source_file->filename access by macro_source_fullname
524 call.
525 (macro_lookup_inclusion): Remove the partial filenames checking code.
526 (check_for_redefinition): New variables source_fullname and
527 found_key_fullname. Replace any macro_source_file->filename access by
528 macro_source_fullname call.
529 (macro_undef): New variables source_fullname and key_fullname. Replace
530 any macro_source_file->filename access by macro_source_fullname call.
531 (macro_lookup_definition): New variables retval and source_fullname.
532 Replace any macro_source_file->filename access by macro_source_fullname
533 call.
534 (foreach_macro): New variable key_fullname. Replace any
535 macro_source_file->filename access by macro_source_fullname call.
536 (foreach_macro_in_scope): New variable datum_fullname. Replace any
537 macro_source_file->filename access by macro_source_fullname call.
538 (new_macro_table): Add parameter comp_dir. Initialize T with it.
539 (macro_source_fullname): New function.
540 * macrotab.h (struct macro_source_file): Extent the filename field
541 comment.
542 (new_macro_table): New parameter comp_dir, add a comment for it.
543 (macro_source_fullname): new declaration.
544
545 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
546
547 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
548 this_real_name to outer block. Use it also for
549 compare_filenames_for_search.
550 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
551 with dw2_get_real_path for file_matcher, considering also
552 BASENAMES_MAY_DIFFER.
553 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
554
555 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
558 to the file_matcher parameter. Pass 0 to it.
559 (dwarf2_create_include_psymtab): Copy also DIRNAME.
560 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
561 NULL psymtab_to_fullname result.
562 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
563 an expected filename instead.
564 (expand_symtabs_matching_via_partial): Add basenames parameter to the
565 file_matcher parameter. Call also psymtab_to_fullname, after newly
566 considering BASENAMES_MAY_DIFFER.
567 * source.c (rewrite_source_path): Remove static.
568 * source.h (rewrite_source_path): New declaration.
569 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
570 the expand_symtabs_matching field. Comment it.
571 * symtab.c (file_matches): New function comment. Add parameter
572 basenames, implement it.
573 (search_symbols_file_matches): Add basenames parameter. Update the
574 file_matches caller.
575 (search_symbols): Match FILES also against symtab_to_fullname.
576 Optimize it for BASENAMES_MAY_DIFFER.
577
578 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
579
580 * source.c (print_source_lines_base): Print for TUI also "fullname".
581 * tui/tui-data.c (init_content_element): Change tui_locator_element
582 field to full_name.
583 * tui/tui-data.h (struct tui_locator_element): Likewise.
584 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
585 tui_update_locator_filename calls to tui_update_locator_fullname.
586 Replace symtab->filename refererence by symtab_to_fullname call.
587 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
588 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
589 field to full_name. Replace symtab->filename refererence by
590 symtab_to_fullname call.
591 (tui_show_symtab_source): Rename parameter to fullname. Change
592 tui_locator_element field to full_name.
593 * tui/tui-stack.c: Include source.h.
594 (tui_set_locator_filename): Rename the declaration to ...
595 (tui_set_locator_fullname): ... here. Rename its parameter to
596 fullname, updates its comment.
597 (tui_set_locator_info): Rename its parameter to fullname.
598 (tui_set_locator_filename): Rename the definition to ...
599 (tui_set_locator_fullname): ... here. Rename its parameter to
600 fullname, updates its comment. Change tui_locator_element field to
601 full_name.
602 (tui_set_locator_info): Rename its parameter to fullname.
603 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
604 (tui_update_locator_filename): Rename to ...
605 (tui_update_locator_fullname): ... here. Rename callee to
606 tui_set_locator_fullname.
607 (tui_show_frame_info): Replace symtab->filename refererence by
608 symtab_to_fullname call.
609 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
610 (tui_update_locator_fullname): ... here.
611 * tui/tui-winsource.c (tui_display_main): Rename the callee to
612 tui_update_locator_fullname. Replace symtab->filename refererence by
613 symtab_to_fullname call.
614 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
615 Rename the callee to tui_update_locator_fullname.
616 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
617
618 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
619
620 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
621 by symtab_to_filename_for_display calls.
622 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
623 (clear_command): New variable sal_fullname, initialize it. Replace
624 compare_filenames_for_search by filename_cmp with sal_fullname.
625 (say_where, update_static_tracepoint): Replace symtab->filename
626 refererences by symtab_to_filename_for_display calls.
627 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
628 Likewise.
629 * dwarf2read.c: Include source.h.
630 (fixup_go_packaging): Replace symtab->filename refererences by
631 symtab_to_filename_for_display calls.
632 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
633 Replace symtab->filename refererences by symtab_to_filename_for_display
634 calls.
635 (create_sals_line_offset, convert_linespec_to_sals): New variable
636 fullname, initialize it, replace symtab->filename reference by the
637 variable.
638 * linux-fork.c: Include source.h.
639 (info_checkpoints_command): Replace symtab->filename refererences by
640 symtab_to_filename_for_display calls.
641 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
642 by symtab_to_filename_for_display calls.
643 * mdebugread.c: Include source.h.
644 (psymtab_to_symtab_1): Replace symtab->filename refererences by
645 symtab_to_filename_for_display calls.
646 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
647 (mi_cmd_file_list_exec_source_files): Likewise.
648 * printcmd.c: Include source.h.
649 (build_address_symbolic): Replace symtab->filename refererences by
650 symtab_to_filename_for_display calls.
651 * psymtab.c (partial_map_symtabs_matching_filename)
652 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
653 with psymtab_to_fullname.
654 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
655 by symtab_to_filename_for_display calls.
656 (stpy_get_filename): New variable filename, initialize it, use instead
657 of symtab->filename refererences.
658 (salpy_str): Make variable filename const char *. Replace
659 symtab->filename refererences by symtab_to_filename_for_display calls.
660 * skip.c: Include source.h and filenames.h.
661 (skip_file_command): Remove const from the symtab variable. Replace
662 symtab->filename refererences by symtab_to_fullname call.
663 (function_name_is_marked_for_skip): New variables searched_for_fullname
664 and fullname. Use them to search also with symtab's fullname.
665 * source.c (find_source_lines): Replace symtab->filename refererences
666 by symtab_to_filename_for_display calls.
667 (print_source_lines_base): New variable filename, use it instead of
668 symtab->filename. Replace symtab->filename refererences by
669 symtab_to_filename_for_display calls.
670 (line_info, forward_search_command): Replace symtab->filename
671 refererences by symtab_to_filename_for_display calls.
672 (reverse_search_command): Replace symtab->filename refererences by
673 symtab_to_filename_for_display calls. New variable filename for it.
674 * stack.c (frame_info): Likewise.
675 * symmisc.c: Include source.h.
676 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
677 (maintenance_info_symtabs): Replace symtab->filename refererences by
678 symtab_to_filename_for_display calls.
679 * symtab.c (iterate_over_some_symtabs): Call
680 compare_filenames_for_search also with symtab_to_fullname.
681 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
682 symtab->filename refererences by symtab_to_filename_for_display calls.
683 (find_line_symtab): Replace symtab->filename refererences by
684 symtab_to_filename_for_display calls.
685 (file_matches): Replace filename_cmp by compare_filenames_for_search.
686 (print_symbol_info): Make the last parameter const char *. New
687 variable s_filename. Use it in the function.
688 (symtab_symbol_info): Make the last_filename variable const char *.
689 Replace symtab->filename refererences by symtab_to_filename_for_display
690 calls.
691 (rbreak_command): New variable fullname. Use it. Replace
692 symtab->filename refererence by symtab_to_filename_for_display call.
693 * tracepoint.c (set_traceframe_context, trace_find_line_command)
694 (print_one_static_tracepoint_marker): Replace symtab->filename
695 refererences by symtab_to_filename_for_display calls.
696 * tui/tui-source.c (tui_set_source_content): New variables filename and
697 s_filename. Replace symtab->filename refererences by this variable.
698 Replace other symtab->filename refererences by
699 symtab_to_filename_for_display calls.
700
701 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
702 Jan Kratochvil <jan.kratochvil@redhat.com>
703
704 Add a new variable that controls a way in which filenames are
705 displayed.
706 * NEWS (set filename-display): New entry.
707 * source.c (filename_display_basename, filename_display_relative)
708 (filename_display_absolute, filename_display_kind_names)
709 (filename_display_string, show_filename_display_string)
710 (symtab_to_filename_for_display): New.
711 (_initialize_source): Added initialization of 'filename-display'
712 variable.
713 * source.h (symtab_to_filename_for_display): Added declaration.
714 * stack.c (print_frame): Added new variable and calling of a new
715 function and condition with this variable. Changed third argument of
716 calling of a function.
717
718 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
719
720 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
721 Rename field reference filename to fullname.
722 * tui/tui-data.h (struct tui_source_info): Rename field filename to
723 fullname. New comment for it.
724 * tui/tui-source.c (tui_set_source_content): Rename field reference
725 filename to fullname. Initialize field by symtab_to_fullname now.
726 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
727 reference filename to fullname. Use symtab_to_fullname during
728 comparison.
729
730 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
731
732 Code cleanup.
733 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
734 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
735 filename to fullname. Rename variable this_name to this_fullname.
736 Lowercase FILENAME_CMP call.
737 (dw2_find_symbol_file): New comment for the returned string.
738 (dwarf2_gdb_index_functions): Rename the function to
739 dw2_expand_symtabs_with_fullname.
740 * psymtab.c (read_psymtabs_with_filename): Rename to ...
741 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
742 fullname.
743 (psym_functions): Rename the function to read_psymtabs_with_fullname.
744 * symfile.h (struct quick_symbol_functions): Rename field
745 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
746 parameter filename to fullname. Document returned string meaning for
747 find_symbol_file.
748 * symtab.c (find_line_symtab): Rename the called function to
749 expand_symtabs_with_fullname.
750
751 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
752
753 Code cleanup.
754 * breakpoint.c (clear_command): Remove variable is_abs, unify the
755 call of filename_cmp with compare_filenames_for_search.
756 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
757 is_abs, unify the call of FILENAME_CMP with
758 compare_filenames_for_search. New gdb_asserts for real_path and name.
759 Unify the call of compare_filenames_for_search with FILENAME_CMP.
760 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
761 * symfile.h (struct quick_symbol_functions): Extend the comment for
762 map_symtabs_matching_filename.
763 * symtab.c (compare_filenames_for_search): Remove the function comment
764 relative path requirement. Handle absolute filenames, with a comment.
765 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
766 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
767 real_path and name. Unify the call of compare_filenames_for_search
768 with FILENAME_CMP.
769 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
770
771 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
772
773 Code cleanup.
774 * breakpoint.c (print_breakpoint_location): Replace bp_location field
775 source_file references by symtab field references. Remove variables
776 sal and fullname.
777 (momentary_breakpoint_from_master, add_location_to_breakpoint):
778 (clear_command, say_where): Replace bp_location field source_file
779 references by symtab field references.
780 (bp_location_dtor): Remove the source_file reference.
781 (update_static_tracepoint): Replace bp_location field source_file
782 references by symtab field references.
783 (breakpoint_free_objfile): New function.
784 * breakpoint.h (struct bp_location): Extend the comment for line_number.
785 Replace the field source_file by field symtab, extend its comment.
786 (breakpoint_free_objfile): New declaration.
787 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
788 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
789 field source_file references by symtab field references.
790
791 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
792
793 Replace xfullpath calls by gdb_realpath calls.
794 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
795 function comment.
796 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
797 Remove it from the iterate_over_some_symtabs call.
798 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
799 Remove it from the dw2_map_expand_apply calls, remove a block handling
800 it.
801 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
802 Remove it from the iterate_over_some_symtabs call.
803 (partial_map_symtabs_matching_filename): Remove parameter full_path.
804 Remove it from the partial_map_expand_apply calls, remove a block
805 handling it. Drop gdb_realpath call and cleanups from the real_path
806 handling.
807 * source.c (openp): Drop the comment part about xfullpath. Replace
808 xfullpath calls by gdb_realpath calls.
809 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
810 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
811 from method map_symtabs_matching_filename and its comment.
812 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
813 gdb_realpath call.
814 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
815 remove it also from the function comment, remove a block handling it.
816 Drop gdb_realpath call and cleanups from the real_path handling.
817 (iterate_over_symtabs): Drop variable full_path and its use.
818 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
819 * utils.c (xfullpath): Remove.
820 * utils.h (xfullpath): Remove.
821
822 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
823
824 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
825 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
826 (ALLDEPFILES): Add ppc64-tdep.c.
827 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
828 ppc64-tdep.o to gdb_target_obs.
829 * ppc64-tdep.h: New file.
830 * ppc64-tdep.c: New file.
831 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
832 ppc-linux-tdep.c to here.
833 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
834 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
835 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
836 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
837 from ppc-linux-tdep.c to here.
838 (ppc64_convert_from_func_ptr_addr): Rename from
839 ppc64_linux_convert_from_func_ptr_addr to
840 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
841 here.
842 * rs6000-tdep.c:
843 (read_insn): Move from ppc-linux-tdep.c to here.
844 (insns_match_pattern, insn_d_field, insn_ds_field): Move
845 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
846 * ppc-linux-tdep.c: Include ppc64-tdep.h.
847 Removed above functions.
848 (ppc_linux_init_abi): Adjust.
849
850 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
851
852 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
853
854 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
855
856 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
857
858 2013-02-01 Pedro Alves <palves@redhat.com>
859
860 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
861 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
862
863 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
864
865 * elfread.c (elf_symfile_read): Limit separate debug info additions to
866 files with no separate debug info.
867 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
868 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
869 only for files with no separate debug info.
870
871 2013-01-31 Tom Tromey <tromey@redhat.com>
872
873 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
874 change type.
875 (struct jit_program_space_data): Rename from jit_inferior_data.
876 Update comments.
877 (get_jit_program_space_data): Rename from get_jit_inferior_data.
878 Change return type. Attach data to program space.
879 (jit_program_space_data_cleanup): Rename from
880 jit_inferior_data_cleanup; change argument type.
881 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
882 change type.
883 (jit_register_code): Update.
884 (jit_update_inferior_cache): Remove.
885 (jit_breakpoint_deleted): Get jit data from the location's program
886 space.
887 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
888 'ps_data', change type.
889 (jit_inferior_init, jit_breakpoint_re_set_internal)
890 (jit_event_handler): Update.
891 (free_objfile_data): Get data from objfile's program space.
892 (_initialize_jit): Update.
893
894 2013-01-31 Tom Tromey <tromey@redhat.com>
895
896 PR gdb/13987:
897 * jit.c (struct jit_inferior_data) <cached_code_address,
898 jit_breakpoint>: New fields.
899 (jit_breakpoint_re_set_internal): Fix logging. Only create
900 breakpoint if cached address has changed.
901 (jit_update_inferior_cache, jit_breakpoint_deleted): New
902 functions.
903 (_initialize_jit): Register breakpoint deleted observer.
904
905 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
906
907 * infrun.c (handle_syscall_event): Remove unused gdbarch.
908 (save_infcall_suspend_state): Ifdef out unused inf.
909 (restore_infcall_suspend_state): Ifdef out unused inf.
910 * jit.c (jit_register_code): Remove unused i, b, inf_data.
911 (jit_frame_sniffer): Remove unused inf_data.
912
913 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
914
915 * c-exp.y (classify_inner_name): Remove unused type.
916 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
917 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
918 need_escape.
919 (c_get_string): Remove unused kind.
920 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
921
922 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
923
924 * charset.c (intermediate_encoding): Remove unused i.
925 * completer.c (signal_completer): Remove unused i.
926 * continuations.c (discard_my_continuations_1): Remove unused
927 continuation_ptr.
928 * corelow.c (core_close): Remove unuseD name.
929 (get_core_siginfo): Remove unused pid.
930 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
931 i, cps.
932 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
933 (loclist_describe_location): Remove unused first.
934 * event-top.c (command_line_handler): Remove unused got_eof.
935 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
936 (resize_section_table): Remove unused old_value.
937 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
938 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
939 * i386-tdep.c (i386_process_record): Remove unused rex.
940 * infcmd.c (get_return_value): Remove unused uiout.
941 * jv-lang.c (type_from_class): Remove unused is_array.
942 * jv-valprint.c (java_val_print): Remove unused i.
943 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
944 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
945 * m2-typeprint.c (m2_print_type): Remove unused code.
946 * macroexp.c (get_character_constant): Remove unused body_start.
947 (macro_stringify): Remove unused result.
948 * objc-lang.c (find_methods): Remove unused gdbarch.
949 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
950 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
951 * stack.c (print_frame_args): Remove unused summary.
952 * thread.c (thread_apply_command): Remove unused p.
953 * valarith.c (value_x_unop): Remove unused mangle_ptr.
954 * valops.c (search_struct_method): Remove unused skip.
955 * valprint.c (generic_val_print): Remove unused byte_order.
956 * varobj.c (varobj_update): Remove unused changed.
957 * cli/cli-cmds.c (complete_command): Remove unused next_item.
958 (alias_command): Remove unused c.
959 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
960 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
961 format.
962 (mi_cmd_data_write_memory): Remove unused word_format.
963 (mi_cmd_data_write_memory_bytes): Remove unused r.
964 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
965 p_start, p_end.
966 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
967 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
968 line_width.
969
970 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
971
972 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
973 * symtab.c (iterate_over_symtabs): Remove unused s.
974 (find_pc_sect_symtab): Remove unused pspAce.
975 (find_pc_sect_line): Remove unused alt_symtab.
976 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
977 (completion_list_add_name): Remove unused newsize.
978
979 2013-01-31 Tom Tromey <tromey@redhat.com>
980
981 PR c++/14998:
982 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
983 TYPE_CODE_FUNC.
984
985 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
986
987 * target.c (target_read_string): Remove unused origlen.
988
989 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
990
991 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
992 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
993 * ax-general.c (ax_print): Remove unused is_float.
994 * blockframe.c (block_innermost_frame): Remove unused start, end.
995 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
996
997 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
998
999 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1000 (svr4_read_so_list): Remove unused lmo.
1001 * solib-target.c (solib_target_relocate_section_addresses): Remove
1002 unused flags.
1003
1004 2013-01-30 Tom Tromey <tromey@redhat.com>
1005
1006 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1007
1008 2013-01-30 Tom Tromey <tromey@redhat.com>
1009
1010 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1011 * utils.c (gnu_debuglink_crc32): Remove.
1012 * utils.h (gnu_debuglink_crc32): Don't declare.
1013
1014 2013-01-30 Tom Tromey <tromey@redhat.com>
1015
1016 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1017 (read_structure_type, read_enumeration_type): Remove cast.
1018
1019 2013-01-30 Tom Tromey <tromey@redhat.com>
1020
1021 * dwarf2read.c (read_namespace_type): Remove cast.
1022 (read_typedef): Likewise.
1023
1024 2013-01-29 Tom Tromey <tromey@redhat.com>
1025
1026 * dwarf2read.c (free_dwo_file): Remove assert.
1027
1028 2013-01-29 Tom Tromey <tromey@redhat.com>
1029
1030 * value.c (deprecated_set_value_modifiable): Remove.
1031 * value.h (deprecated_set_value_modifiable): Remove.
1032
1033 2013-01-28 Doug Evans <dje@google.com>
1034
1035 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1036 to addresses from dwo files.
1037
1038 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1039
1040 * valops.c (find_overload_match): Remove unused argument 'lax'.
1041 * value.h: Remove unused argument 'lax' from the declaration of
1042 find_overload_match.
1043 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1044 to find_overload_match.
1045 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1046 argument to find_overload_match.
1047
1048 2013-01-25 Tom Tromey <tromey@redhat.com>
1049
1050 * dwarf2read.c (processing_has_namespace_info): Remove.
1051 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1052 (process_die, read_func_scope, dwarf2_start_symtab)
1053 (new_symbol_full): Update.
1054
1055 2013-01-25 Tom Tromey <tromey@redhat.com>
1056
1057 * cp-namespace.c (cp_set_block_scope): Remove.
1058 * cp-support.h (cp_set_block_scope): Remove.
1059 * dbxread.c: Include block.h.
1060 (cp_set_block_scope): New function.
1061 (process_one_symbol): Update.
1062 * dwarf2read.c (read_func_scope): Use block_set_scope.
1063
1064 2013-01-25 Pedro Alves <palves@redhat.com>
1065
1066 * remote.c (add_current_inferior_and_thread): Tweak comment.
1067
1068 2013-01-25 Tom Tromey <tromey@redhat.com>
1069
1070 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1071 (cp_add_using_directive): Add 'copy_names' argument.
1072 * cp-support.h (cp_add_using_directive): Update.
1073 (struct using_direct) <import_src, import_dest, alias,
1074 declaration>: Now const.
1075 * dwarf2read.c (read_import_statement): Use obconcat.
1076 Don't copy names passed to cp_add_using_directive.
1077
1078 2013-01-25 Tom Tromey <tromey@redhat.com>
1079
1080 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1081
1082 2013-01-25 Pedro Alves <palves@redhat.com>
1083
1084 * remote.c (stop_reply_extract_thread): New.
1085 (add_current_inferior_and_thread): New parameter 'wait_status'.
1086 Handle it.
1087 (remote_start_remote): Pass wait status to
1088 add_current_inferior_and_thread.
1089 (extended_remote_run): Update comment.
1090 (extended_remote_create_inferior_1): Pass wait status to
1091 add_current_inferior_and_thread.
1092
1093 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1094 Ulrich Weigand <uweigand@de.ibm.com>
1095
1096 * valarith.c (value_vector_widen): New function for replicating a
1097 scalar into a vector.
1098 (value_binop): Use value_vector_widen to widen scalar to vector
1099 rather than casting, this better matches gcc C behaviour.
1100 * valops.c (value_casst): Update logic for casting between vector
1101 types, and for casting from scalar to vector, try to match gcc C
1102 behaviour.
1103 * value.h (value_vector_widen): Declare.
1104 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1105 function, handle special case for casting scalar to vector.
1106 (opencl_relop): Use opencl_value_cast.
1107 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1108 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1109 in order to use opencl_value_cast.
1110
1111 2013-01-25 Yao Qi <yao@codesourcery.com>
1112
1113 * event-loop.c: Include "queue.h".
1114 (gdb_event_p): New typedef.
1115 (DECLARE_QUEUE_P): Use.
1116 (DEFINE_QUEUE_P): Use.
1117 (async_queue_event): Remove.
1118 (gdb_event_xfree): New.
1119 (initialize_event_loop): New.
1120 (process_event): Use QUEUE macros.
1121 (event_queue): Remove.
1122 (gdb_wait_for_event): Caller update.
1123 (check_async_event_handlers): Likewise.
1124 (poll_timers): Likewise.
1125 * event-loop.h (initialize_event_loop): Declare.
1126 * event-loop.c (gdb_event_xfree): New.
1127 * top.c (gdb_init): Call initialize_event_loop.
1128
1129 2013-01-25 Yao Qi <yao@codesourcery.com>
1130
1131 * event-loop.c (async_queue_event): Remove one parameter
1132 'position'. Remove code handling 'position' == TAIL.
1133 (gdb_wait_for_event): Caller update.
1134 (check_async_event_handlers): Caller update.
1135 (poll_timers): Caller update.
1136 * event-loop.h (enum queue_position): Remove.
1137
1138 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1139
1140 * MAINTAINERS: Update my email.
1141
1142 2013-01-25 Yao Qi <yao@codesourcery.com>
1143
1144 * main.c (print_gdb_help): Remove "--epoch" from the help
1145 message.
1146
1147 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1148
1149 * symtab.c (skip_prologue_using_sal): Consider a file
1150 change the same as an increased line number
1151
1152 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1153
1154 * MAINTAINERS (Write After Approval): Add myself to the list.
1155
1156 2013-01-24 Tom Tromey <tromey@redhat.com>
1157
1158 * ada-lang.h (ada_decode_symbol): Make return type const.
1159 * ada-lang.c (ada_decode_symbol): Likewise.
1160
1161 2013-01-23 Doug Evans <dje@google.com>
1162
1163 * linespec.c (find_linespec_symbols): Make static.
1164
1165 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1166
1167 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1168 type on float conversion for complex type.
1169
1170 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1171
1172 Add a new class gdb.Architecture which exposes GDB's
1173 internal representation of architecture via GDB Python API.
1174 * Makefile.in: Add entries corresponding to the new file
1175 python/py-arch.c.
1176 * NEWS (Python Scripting): Add entries for the new class
1177 gdb.Architecture and the new method gdb.Frame.architecture.
1178 * python/py-arch.c: Implement gdb.Architecture class.
1179 * python/py-frame.c (frapy_arch): Implement the method
1180 gdb.Frame.architecture().
1181 (frame_object_methods): Add 'architecture' to the method table.
1182 * python/python-internal.h: Add declarations of new utility
1183 functions.
1184 * python/python.c (_initialize_python): Initialize
1185 gdb.Architecture class.
1186
1187 2013-01-23 Doug Evans <dje@google.com>
1188
1189 Work around binutils/15021.
1190 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1191 type_unit_group out of union s. All uses updated.
1192 (read_index_from_section): Watch for index version 8.
1193 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1194 an imported symtab.
1195 (write_psymtabs_to_index): Increment version number to 8.
1196
1197 2013-01-22 Pedro Alves <palves@redhat.com>
1198
1199 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1200 user-visible.
1201
1202 2013-01-22 Pedro Alves <palves@redhat.com>
1203
1204 * annotate.c (annotate_breakpoints_changed): Rename to ...
1205 (annotate_breakpoints_invalid): ... this. Make static.
1206 (breakpoint_changed): Adjust.
1207 (_initialize_annotate): Always install the observers. Install a
1208 "breakpoint_created" observer.
1209 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1210 * breakpoint.c (set_breakpoint_condition)
1211 (breakpoint_set_commands, do_map_commands_command)
1212 (init_raw_breakpoint, clear_command, set_ignore_count)
1213 (enable_breakpoint_disp): No longer call
1214 annotate_breakpoints_changed.
1215
1216 2013-01-22 Pedro Alves <palves@redhat.com>
1217
1218 * annotate.c: Include "inferior.h".
1219 (frames_invalid_emitted)
1220 (breakpoints_invalid_emitted): New globals.
1221 (async_background_execution_p): New function.
1222 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1223 emitting the annotation if it has already been emitted.
1224 (annotate_display_prompt): New function.
1225 * annotate.h (annotate_display_prompt): New declaration.
1226 * event-top.c: Include annotate.h.
1227 (display_gdb_prompt): Call annotate_display_prompt.
1228
1229 2013-01-22 Pedro Alves <palves@redhat.com>
1230
1231 * annotate.c (ignore_count_changed): Delete.
1232 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1233 (annotate_ignore_count_change): Delete.
1234 (annotate_stopped): Don't emit a delayed breakpoints-changed
1235 annotation.
1236 * annotate.h (annotate_ignore_count_change): Delete.
1237 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1238 annotate_ignore_count_change.
1239
1240 2013-01-22 Tom Tromey <tromey@redhat.com>
1241
1242 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1243 require_rvalue for a register location.
1244
1245 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1246
1247 * breakpoint.c (print_one_breakpoint_location): Add MI
1248 field 'thread-groups' when printing a breakpoint.
1249 (output_thread_groups): New function.
1250
1251 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1252
1253 * python/lib/gdb/commands/explore.py
1254 (CompoundExplorer.explore_expr): Correct the name of a method
1255 being invoked.
1256 (ExploreTypeCommand.invoke): Add a missing 'return'.
1257
1258 2013-01-21 Tom Tromey <tromey@redhat.com>
1259
1260 * gdb_obstack.h (obconcat): Move declaration here, from...
1261 * symfile.h (obconcat): ... here.
1262 * gdb_obstack.c: New file.
1263 (obconcat): Move from...
1264 * symfile.c (obconcat): ... here.
1265 * Makefile.in (SFILES): Add gdb_obstack.c.
1266 (COMMON_OBS): Add gdb_obstack.o.
1267
1268 2013-01-21 Tom Tromey <tromey@redhat.com>
1269
1270 * symfile.h (obsavestring): Don't declare.
1271 * symfile.c (obsavestring): Remove.
1272 * ada-exp.y: Use obstack_copy0, not obsavestring.
1273 * ada-lang.c: Use obstack_copy0, not obsavestring.
1274 * coffread.c: Use obstack_copy0, not obsavestring.
1275 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1276 * dbxread.c: Use obstack_copy0, not obsavestring.
1277 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1278 * jit.c: Use obstack_copy0, not obsavestring.
1279 * mdebugread.c: Use obstack_copy0, not obsavestring.
1280 * psymtab.c: Use obstack_copy0, not obsavestring.
1281 * stabsread.c: Use obstack_copy0, not obsavestring.
1282 * xcoffread.c: Use obstack_copy0, not obsavestring.
1283
1284 2013-01-21 Tom Tromey <tromey@redhat.com>
1285
1286 * dwarf2read.c (fixup_go_packaging): Save package name
1287 on objfile obstack.
1288 * gdbtypes.c (init_type): Don't copy name.
1289
1290 2013-01-21 Tom Tromey <tromey@redhat.com>
1291
1292 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1293 const.
1294 (struct attribute) <u.str>: Now const.
1295 (struct fnfieldlist) <name>: Now const.
1296 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1297 (partial_die_parent_scope): Make return type const.
1298 (partial_die_full_name, add_partial_symbol): Update.
1299 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1300 'name' const.
1301 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1302 (read_file_scope, read_func_scope, dwarf2_add_field)
1303 (dwarf2_add_member_fn, read_structure_type)
1304 (process_enumeration_scope, read_array_type, read_module_type)
1305 (read_base_type, read_subrange_type): Update.
1306 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1307 (new_symbol_full, guess_full_die_structure_name): Update.
1308 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1309 (dwarf2_name): Return const type.
1310 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1311 const.
1312
1313 2013-01-21 Tom Tromey <tromey@redhat.com>
1314
1315 * gdbtypes.c (init_type): Make 'name' const.
1316 * gdbtypes.h (init_type): Update.
1317
1318 2013-01-21 Tom Tromey <tromey@redhat.com>
1319
1320 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1321 (start_symtab): Make 'name' and 'dirname' const. Use
1322 set_last_source_file.
1323 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1324 (last_source_file): Define. Now static.
1325 (set_last_source_file, get_last_source_file): New functions.
1326 * buildsym.h (last_source_file): Don't declare.
1327 (start_symtab): Update.
1328 (set_last_source_file, get_last_source_file): Declare.
1329 * coffread.c (complete_symtab): Use set_last_source_file.
1330 (coff_end_symtab): Likewise.
1331 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1332 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1333 set_last_source_file.
1334 (process_one_symbol): Use get_last_source_file.
1335 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1336 (psymtab_to_symtab_1): Use get_last_source_file.
1337 * xcoffread.c (process_linenos): Use get_last_source_file.
1338 (complete_symtab): Use set_last_source_file.
1339 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1340 (scan_xcoff_symtab): Use set_last_source_file.
1341
1342 2013-01-21 Tom Tromey <tromey@redhat.com>
1343
1344 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1345 (symbol_set_names): Remove casts. Handle field const-ness.
1346
1347 2013-01-21 Tom Tromey <tromey@redhat.com>
1348
1349 * dwarf2read.c (new_symbol_full): Remove cast.
1350 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1351 * symtab.h (symbol_set_demangled_name): Update.
1352
1353 2013-01-21 Tom Tromey <tromey@redhat.com>
1354
1355 * main.c (captured_main): Call bfd_init.
1356
1357 2013-01-21 Tom Tromey <tromey@redhat.com>
1358
1359 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1360 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1361 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1362 * NEWS: Update.
1363
1364 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1365
1366 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1367
1368 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1369
1370 Fix gdb.fortran/common-block.exp crash in PIE mode.
1371 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1372 LOC_COMMON_BLOCK.
1373 * f-valprint.c (info_common_command_for_block): Expect
1374 LOC_COMMON_BLOCK in gdb_assert.
1375 * symtab.h (struct general_symbol_info): Update comment for the
1376 common_block member.
1377 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1378 (enum address_class): New member LOC_COMMON_BLOCK.
1379
1380 2013-01-18 David Blaikie <dblaikie@gmail.com>
1381
1382 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1383
1384 2013-01-18 Tom Tromey <tromey@redhat.com>
1385
1386 PR c++/14999:
1387 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1388 Call require_rvalue.
1389
1390 2013-01-18 Yao Qi <yao@codesourcery.com>
1391
1392 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1393 (dbx_read_symtab): New declaration.
1394 (dbx_psymtab_to_symtab): Delete.
1395 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1396 Rename parameter PST to SELF. Exchanged two parameters.
1397 (start_psymtab): Caller update.
1398 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1399 (dwarf2_read_symtab): New declaration.
1400 (dwarf2_psymtab_to_symtab): Delete.
1401 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1402 Rename parameter PST to SELF. Exchanged two parameters.
1403 (create_partial_symtab): Caller update.
1404 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1405 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1406 Rename parameter PST to SELF. Exchanged two parameters.
1407 (parse_partial_symbols, new_psymtab): Caller update.
1408 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1409 two parameters.
1410 * psymtab.c (psymtab_to_symtab): Caller update.
1411 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1412 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1413 Rename parameter PST to SELF. Exchanged two parameters.
1414 (xcoff_start_psymtab): Caller update.
1415
1416 2013-01-18 Yao Qi <yao@codesourcery.com>
1417
1418 * infrun.c (proceed): Rename local variable 'oneproc' to
1419 'force_step'.
1420
1421 2013-01-17 Doug Evans <dje@google.com>
1422
1423 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1424 (dw2_build_type_unit_groups): Delete. All uses updated.
1425
1426 * symtab.h (struct symbol_search): Add comment.
1427
1428 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1429
1430 * symtab.c (compare_filenames_for_search): New comment for
1431 HAS_DRIVE_SPEC.
1432
1433 2013-01-17 Tom Tromey <tromey@redhat.com>
1434
1435 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1436
1437 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1438
1439 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1440 initialize it by existing make_cleanup. Call new do_cleanups.
1441
1442 2013-01-17 Tom Tromey <tromey@redhat.com>
1443
1444 * cp-abi.c (cp_abi_completer): New function.
1445 (_initialize_cp_abi): Set completer for "set cp-abi".
1446
1447 2013-01-17 Tom Tromey <tromey@redhat.com>
1448
1449 * mem-break.c: Remove obsolete comment.
1450 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1451
1452 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1453
1454 * jit.c (jit_reader_load_command): Interpret the jit reader name
1455 as an absolute path if it begins with a forward slash.
1456
1457 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1458
1459 PR gdb/14550
1460
1461 * jit.c (finalize_symtab): Ensure that only the global block has a
1462 NULL superblock.
1463
1464 2013-01-17 Pedro Alves <palves@redhat.com>
1465
1466 * acinclude.m4: Include ../config/plugins.m4,
1467 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1468 * Makefile.in (aclocal_m4_deps): Update.
1469 * aclocal.m4: Renegerate.
1470
1471 2013-01-16 Doug Evans <dje@google.com>
1472
1473 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1474
1475 2013-01-16 Pedro Alves <palves@redhat.com>
1476 Tom Tromey <tromey@redhat.com>
1477
1478 PR cli/7221:
1479 * NEWS: Add "catch signal".
1480 * breakpoint.c (base_breakpoint_ops): No longer static.
1481 (bpstat_explains_signal): New function.
1482 (init_catchpoint): No longer static.
1483 (base_breakpoint_explains_signal): New function.
1484 (base_breakpoint_ops): Initialize new field.
1485 * breakpoint.h (enum bpstat_signal_value): New.
1486 (struct breakpoint_ops) <explains_signal>: New field.
1487 (bpstat_explains_signal): Remove macro, declare as function.
1488 (base_breakpoint_ops, init_catchpoint): Declare.
1489 * break-catch-sig.c: New file.
1490 * inferior.h (signal_catch_update): Declare.
1491 * infrun.c (signal_catch): New global.
1492 (handle_syscall_event): Update for change to
1493 bpstat_explains_signal.
1494 (handle_inferior_event): Likewise. Always handle random signals
1495 via bpstats.
1496 (signal_cache_update): Check signal_catch.
1497 (signal_catch_update): New function.
1498 (_initialize_infrun): Initialize signal_catch.
1499 * Makefile.in (SFILES): Add break-catch-sig.c.
1500 (COMMON_OBS): Add break-catch-sig.o.
1501
1502 2013-01-16 Tom Tromey <tromey@redhat.com>
1503
1504 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1505 (print_one_catch_solib, print_one_catch_syscall)
1506 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1507 "catch-type".
1508
1509 2013-01-16 Yao Qi <yao@codesourcery.com>
1510
1511 * printcmd.c (current_display_number): Make it static.
1512
1513 2013-01-16 Yao Qi <yao@codesourcery.com>
1514
1515 * infcmd.c (step_once): Don't check '!single_inst' as it was
1516 checked before.
1517
1518 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1519
1520 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1521
1522 2013-01-14 Tom Tromey <tromey@redhat.com>
1523
1524 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1525 set command.
1526 * command.h (add_setshow_string_noescape_cmd): Update.
1527 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1528 (complete_set_gnutarget): New function.
1529 (_initialize_core): Set the "set gnutarget" completer.
1530
1531 2013-01-14 Tom Tromey <tromey@redhat.com>
1532
1533 PR symtab/14442:
1534 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1535 (c_type_print_modifier): Likewise.
1536 * dwarf2read.c (read_tag_restrict_type): New function.
1537 (read_type_die_1): Handle DW_TAG_restrict_type.
1538 * gdbtypes.c (make_restrict_type): New function.
1539 (recursive_dump_type): Handle TYPE_RESTRICT.
1540 * gdbtypes.h (enum type_flag_values): Renumber.
1541 (enum type_instance_flag_value): Add
1542 TYPE_INSTANCE_FLAG_RESTRICT.
1543 (TYPE_RESTRICT): New macro.
1544 (make_restrict_type): Declare.
1545
1546 2013-01-14 Tom Tromey <tromey@redhat.com>
1547
1548 PR symtab/14931:
1549 * psymtab.c (struct psymtab_state): New.
1550 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1551 functions.
1552 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1553 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1554
1555 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1556 Pedro Alves <palves@redhat.com>
1557
1558 PR remote/14786
1559
1560 * remote.c (remote_threads_info): Make a copy of the reply from
1561 qfThreadInfo and use that instead of rs->buf.
1562
1563 2013-01-14 Yao Qi <yao@codesourcery.com>
1564
1565 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1566 (dbx_psymtab_to_symtab): Likewise.
1567 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1568 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1569 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1570
1571 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1572
1573 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1574 make_cleanup_restore_current_language. Call set_language. Move
1575 OLD_CHAIN and INNER_CHAIN cleanups.
1576 * utils.c (do_restore_current_language)
1577 (make_cleanup_restore_current_language): New functions.
1578 * utils.h (make_cleanup_restore_current_language): New declaration.
1579
1580 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1581
1582 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1583 non-existing files.
1584
1585 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1586 non-existing files if FILENAME is already absolute.
1587
1588 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1589
1590 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1591 fputs_filtered. Append trailing newline.
1592
1593 2013-01-11 Yao Qi <yao@codesourcery.com>
1594 Stan Shebs <stan@codesourcery.com>
1595
1596 * psymtab.c (init_psymbol_list): Clarify the comment.
1597
1598 2013-01-11 Yao Qi <yao@codesourcery.com>
1599
1600 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1601 (update_dprintf_command_list): Assert that 'printf_line' is
1602 non-null. Remove condition check.
1603
1604 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1605
1606 Code cleanup.
1607 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1608 type const char *.
1609 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1610 const char *.
1611 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1612
1613 2013-01-09 Anthony Green <green@moxielogic.com>
1614
1615 * cp-abi.c (cplus_print_vtable): Don't return value from void
1616 function.
1617 * ada-lang.c (re_set_catch_assert): Ditto.
1618
1619 2013-01-09 Doug Evans <dje@google.com>
1620
1621 * symfile.h (quick_symbol_functions): Delete member
1622 pre_expand_symtabs_matching. All uses removed.
1623 * dwarf2read.c (dw2_lookup_symbol): Implement.
1624 (dw2_do_expand_symtabs_matching): Delete.
1625 (dw2_pre_expand_symtabs_matching): Delete.
1626 (struct dw2_symtab_iterator): New type.
1627 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1628 (dw2_expand_symtabs_for_function): Rewrite.
1629 (dwarf2_gdb_index_functions): Update.
1630 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1631 (psym_functions): Update.
1632
1633 2013-01-09 Tom Tromey <tromey@redhat.com>
1634
1635 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1636 * configure: Rebuild.
1637 * configure.ac: Add somread.o to the build if BFD has SOM
1638 support.
1639 * somread.c: Include som/aout.h, not syms.h.
1640 (som_symtab_read): Use som_external_symbol_dictionary_record.
1641 Unpack records manually.
1642 (_initialize_somread): Declare.
1643
1644 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1645
1646 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1647 Cast return_address to 64bits.
1648
1649 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1650
1651 * printcmd.c: Remove define of function output_command.
1652 * tracepoint.c: Remove extern of function output_command.
1653 * valprint.h: (output_command): New extern.
1654
1655 2013-01-07 Tom Tromey <tromey@redhat.com>
1656
1657 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1658 Remove.
1659 (objc_language_defn): Use c_printchar, c_printstr,
1660 c_emit_char.
1661
1662 2013-01-07 Tom Tromey <tromey@redhat.com>
1663
1664 PR cli/7719:
1665 * NEWS: Update.
1666 * ada-valprint.c (printstr, print_field_values): Remove
1667 "inspect_it" code.
1668 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1669 code.
1670 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1671 code.
1672 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1673 * main.c (captured_main): Remove "epoch" argument.
1674 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1675 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1676 * p-valprint.c (pascal_object_print_value_fields): Remove
1677 "inspect_it" code.
1678 * printcmd.c (print_command_1): Remove 'inspect' argument.
1679 (print_command, call_command): Update.
1680 (inspect_command): Remove.
1681 (_initialize_printcmd): Make "inspect" an alias for "print".
1682 * top.c (epoch_interface): Remove.
1683 * top.h (epoch_interface): Remove.
1684 * valprint.c (user_print_options): Update.
1685 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1686 * valprint.h (struct value_print_options) <inspect_it>: Remove
1687 field.
1688
1689 2013-01-04 Tom Tromey <tromey@redhat.com>
1690
1691 * valprint.h (read_string): Add 'extern'.
1692
1693 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1694
1695 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1696 used to decide whether to define darwin_read_dyld_info or not.
1697
1698 2013-01-03 Pierre Muller <muller@sourceware.org>
1699
1700 * main.c (relocate_gdb_directory): Avoid calling stat function
1701 if DIR is empty.
1702
1703 2013-01-03 Yao Qi <yao@codesourcery.com>
1704
1705 * psymtab.c (fixup_psymbol_section): Update declaration.
1706 (fixup_psymbol_section): Remove code returning value.
1707
1708 2013-01-03 Yao Qi <yao@codesourcery.com>
1709
1710 * symtab.h: Remove some out of date comments.
1711 (enum exception_event_kind): Move it ...
1712 * breakpoint.c: ... here.
1713
1714 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1715
1716 PR gdb/14405
1717 * darwin-nat.c (darwin_read_dyld_info): Only build if
1718 TASK_DYLD_INFO_COUNT is defined.
1719 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1720 TASK_DYLD_INFO_COUNT is defined.
1721
1722 2013-01-02 Tom Tromey <tromey@redhat.com>
1723
1724 * symfile.h (struct ecoff_debug_hack): Remove.
1725 * objfiles.c: Don't include mdebugread.h.
1726
1727 2013-01-02 Tom Tromey <tromey@redhat.com>
1728
1729 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1730 * configure.ac: Check for Mach-O support in BFD. Update
1731 CONFIG_OBS.
1732 * configure: Rebuild.
1733
1734 2013-01-02 Tom Tromey <tromey@redhat.com>
1735
1736 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1737 * configure.ac: Use GDB_AC_CHECK_BFD.
1738 * configure: Rebuild.
1739
1740 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1741
1742 * MAINTAINERS: Update my email.
1743
1744 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1745
1746 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1747
1748 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1749
1750 * rs6000-nat.c (bss_data_overlap): New function.
1751 (vmap_symtab): Use it to adjust the .bss section's offset.
1752
1753 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1754
1755 Update year range in copyright notice of all files.
1756
1757 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1758
1759 * top.c (print_gdb_version): Update copyright year.
1760
1761 For older changes see ChangeLog-2012.
1762 \f
1763 Local Variables:
1764 mode: change-log
1765 left-margin: 8
1766 fill-column: 74
1767 version-control: never
1768 coding: utf-8
1769 End:
This page took 0.066417 seconds and 5 git commands to generate.